44 return profile()->getSettings();
59 keys << mSettings->allKeys();
61 mSettings.reset(
new QSettings(filename, QSettings::IniFormat));
64 keys << mSettings->allKeys();
66 keys.removeDuplicates();
68 foreach (QString key, keys)
74 if (value==defaultValue)
81 mSettings->setValue(key, value);
89 return mSettings->value(key, defaultValue);
94 return mSettings->contains(key);
99 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.