14 #include "cxResourceExport.h" 16 #include "boost/shared_ptr.hpp" 37 class cxResource_EXPORT
Settings :
public QObject
43 void setValueIfNotDefault(
const QString& key,
const QVariant& value,
const QVariant& defaultValue);
45 void setValue(
const QString& key,
const QVariant& value);
46 QVariant value(
const QString& key,
const QVariant& defaultValue = QVariant())
const;
48 bool contains(
const QString& key)
const;
49 QString fileName()
const;
53 void resetFile(QString filename);
63 this->setValue(name, value);
67 void valueChangedFor(QString key);
71 QSettingsPtr mSettings;
Customized interface for setting values in QSettings.
boost::shared_ptr< class QSettings > QSettingsPtr
Settings * settings()
Shortcut for accessing the settings instance.
bool contains(std::string const &s, std::string const &infix)
void fillDefault(QString name, T value)
Namespace for all CustusX production code.