NorMIT-nav
22.09
An IGT application
|
Customized interface for setting values in QSettings. More...
#include <cxSettings.h>
Signals | |
void | valueChangedFor (QString key) |
Public Member Functions | |
void | setValueIfNotDefault (const QString &key, const QVariant &value, const QVariant &defaultValue) |
void | setValue (const QString &key, const QVariant &value) |
QVariant | value (const QString &key, const QVariant &defaultValue=QVariant()) const |
bool | contains (const QString &key) const |
QString | fileName () const |
void | sync () |
void | resetFile (QString filename) |
internal use only: reset internal settings file. More... | |
Settings () | |
virtual | ~Settings () |
template<class T > | |
void | fillDefault (QString name, T value) |
Customized interface for setting values in QSettings.
Definition at line 37 of file cxSettings.h.
cx::Settings::Settings | ( | ) |
Definition at line 26 of file cxSettings.cpp.
|
virtual |
Definition at line 30 of file cxSettings.cpp.
bool cx::Settings::contains | ( | const QString & | key | ) | const |
Definition at line 71 of file cxSettings.cpp.
QString cx::Settings::fileName | ( | ) | const |
Definition at line 76 of file cxSettings.cpp.
|
inline |
Initialize a setting if undefined.
Definition at line 60 of file cxSettings.h.
void cx::Settings::resetFile | ( | QString | filename | ) |
internal use only: reset internal settings file.
Definition at line 34 of file cxSettings.cpp.
void cx::Settings::setValue | ( | const QString & | key, |
const QVariant & | value | ||
) |
Definition at line 58 of file cxSettings.cpp.
void cx::Settings::setValueIfNotDefault | ( | const QString & | key, |
const QVariant & | value, | ||
const QVariant & | defaultValue | ||
) |
Definition at line 51 of file cxSettings.cpp.
void cx::Settings::sync | ( | ) |
Definition at line 81 of file cxSettings.cpp.
QVariant cx::Settings::value | ( | const QString & | key, |
const QVariant & | defaultValue = QVariant() |
||
) | const |
Definition at line 66 of file cxSettings.cpp.
|
signal |