51 #include "OpenFlipperQSettings.hh"
55 QVariant var = QSettings::value(key, defaultValue);
57 std::cerr <<
"Tried loading OpenFlipper settings value for " << key.toStdString() <<
", but it was not found and no default value given!" << std::endl;
60 #ifdef OPENFLIPPER_SETTINGS_DEBUG
61 std::cerr <<
"Settings: Read key " << key.toStdString() <<
" with value " << var.toString().toStdString() << std::endl;
70 #ifdef OPENFLIPPER_SETTINGS_DEBUG
71 std::cerr <<
"Settings: Set key " << key.toStdString() <<
" to value " << value.toString().toStdString() << std::endl;
74 QSettings::setValue(key,value);
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...