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();
cxResource_EXPORT ProfilePtr profile()
bool contains(const QString &key) const
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
void setValueIfNotDefault(const QString &key, const QVariant &value, const QVariant &defaultValue)
void setValue(const QString &key, const QVariant &value)
Customized interface for setting values in QSettings.
void valueChangedFor(QString key)
void resetFile(QString filename)
internal use only: reset internal settings file.
Settings * settings()
Shortcut for accessing the settings instance.
Namespace for all CustusX production code.