|
|
@ -14,6 +14,23 @@ Settings* Settings::getInstance() { |
|
|
|
return instance; |
|
|
|
} |
|
|
|
|
|
|
|
bool Settings::getCheckForUpdates() { |
|
|
|
return QSettings().value("options/allowcheckupdates", true).toBool(); |
|
|
|
} |
|
|
|
|
|
|
|
void Settings::setCheckForUpdates(bool allow) { |
|
|
|
QSettings().setValue("options/allowcheckupdates", allow); |
|
|
|
} |
|
|
|
|
|
|
|
bool Settings::getAllowFetchPrices() { |
|
|
|
return QSettings().value("options/allowfetchprices", true).toBool(); |
|
|
|
} |
|
|
|
|
|
|
|
void Settings::setAllowFetchPrices(bool allow) { |
|
|
|
QSettings().setValue("options/allowfetchprices", allow); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Config Settings::getSettings() { |
|
|
|
// Load from the QT Settings.
|
|
|
|
QSettings s; |
|
|
|