From 46fee547d0fe9010baf4488326b42d32e81b8ff0 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 5 Oct 2011 18:01:14 +1000 Subject: [PATCH] More Preferences stuff --- SleepLib/preferences.h | 4 ++-- main.cpp | 2 +- newprofile.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SleepLib/preferences.h b/SleepLib/preferences.h index fef540a0..0d084fbc 100644 --- a/SleepLib/preferences.h +++ b/SleepLib/preferences.h @@ -91,8 +91,8 @@ protected: }; -extern Preferences pref; -extern Preferences laypref; +extern Preferences PREF; +extern Preferences LAYOUT; #endif // PREFERENCES_H diff --git a/main.cpp b/main.cpp index 4dc4edc0..0d62fd74 100644 --- a/main.cpp +++ b/main.cpp @@ -98,7 +98,7 @@ int main(int argc, char *argv[]) PREF["VersionString"]=Version; p_profile=Profiles::Get(PREF["Profile"].toString()); - //if (!pref.Exists("Profile")) pref["Profile"]=getUserName(); + //if (!PREF.Exists("Profile")) PREF["Profile"]=getUserName(); /*int id=QFontDatabase::addApplicationFont(":/fonts/FreeSans.ttf"); QStringList ffam=QFontDatabase::applicationFontFamilies(id); diff --git a/newprofile.cpp b/newprofile.cpp index 31c59af6..29e0a373 100644 --- a/newprofile.cpp +++ b/newprofile.cpp @@ -112,7 +112,7 @@ void NewProfile::on_nextButton_clicked() prof["DoctorPatientID"]=ui->doctorPatientIDEdit->text(); - pref["Profile"]=ui->userNameEdit->text(); + PREF["Profile"]=ui->userNameEdit->text(); this->accept();