|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
23 return profile()->getSettings();
38 keys << mSettings->allKeys();
40 mSettings.reset(
new QSettings(filename, QSettings::IniFormat));
43 keys << mSettings->allKeys();
45 keys.removeDuplicates();
47 foreach (QString key, keys)
53 if (
value==defaultValue)
60 mSettings->setValue(key,
value);
68 return mSettings->value(key, defaultValue);
73 return mSettings->contains(key);
78 return mSettings->fileName();
void valueChangedFor(QString key)
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
Namespace for all CustusX production code.
void resetFile(QString filename)
internal use only: reset internal settings file.
void setValueIfNotDefault(const QString &key, const QVariant &value, const QVariant &defaultValue)
Customized interface for setting values in QSettings.
bool contains(const QString &key) const
cxResource_EXPORT ProfilePtr profile()
void setValue(const QString &key, const QVariant &value)
Settings * settings()
Shortcut for accessing the settings instance.