Developer Documentation
|
Public Member Functions | |
OpenFlipperQSettings (const QString &organization, const QString &application=QString(), QObject *parent=0) | |
OpenFlipperQSettings (QSettings::Scope scope, const QString &organization, const QString &application=QString(), QObject *parent=0) | |
OpenFlipperQSettings (QSettings::Format format, QSettings::Scope scope, const QString &organization, const QString &application=QString(), QObject *parent=0) | |
OpenFlipperQSettings (const QString &fileName, QSettings::Format format, QObject *parent=0) | |
OpenFlipperQSettings (QObject *parent=0) | |
QVariant | value (const QString &key, const QVariant &defaultValue=QVariant()) const |
void | setValue (const QString &key, const QVariant &value) |
Wrapper function which makes it possible to enable Debugging output with -DOPENFLIPPER_SETTINGS_DEBUG. | |
Definition at line 56 of file OpenFlipperQSettings.hh.
QVariant OpenFlipperQSettings::value | ( | const QString & | key, |
const QVariant & | defaultValue = QVariant() |
||
) | const |
Wrapper function for QSettings::value() that outputs an error message to console if the key was not found and no default value given. This is supposed to prevent Plugin authors from forgetting to specify the defaultValue. ;) Additionally it is possible to enable Debugging output with -DOPENFLIPPER_SETTINGS_DEBUG
Definition at line 53 of file OpenFlipperQSettings.cc.