44 #include "OpenFlipperQSettings.hh" 48 QVariant var = QSettings::value(key, defaultValue);
50 std::cerr <<
"Tried loading OpenFlipper settings value for " << key.toStdString() <<
", but it was not found and no default value given!" << std::endl;
53 #ifdef OPENFLIPPER_SETTINGS_DEBUG 54 std::cerr <<
"Settings: Read key " << key.toStdString() <<
" with value " << var.toString().toStdString() << std::endl;
63 #ifdef OPENFLIPPER_SETTINGS_DEBUG 64 std::cerr <<
"Settings: Set key " << key.toStdString() <<
" to value " << value.toString().toStdString() << std::endl;
67 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...