add the option to choose between usd,eur,btc as currency for mainwindow Pricecheck
This commit is contained in:
@@ -105,6 +105,12 @@ bool Settings::isSaplingActive() {
|
||||
double Settings::getZECPrice() {
|
||||
return ZECPrice;
|
||||
}
|
||||
double Settings::getEURPrice() {
|
||||
return EURPrice;
|
||||
}
|
||||
double Settings::getBTCPrice() {
|
||||
return BTCPrice;
|
||||
}
|
||||
|
||||
bool Settings::getCheckForUpdates() {
|
||||
return QSettings().value("options/allowcheckupdates", true).toBool();
|
||||
@@ -122,6 +128,19 @@ void Settings::setAllowFetchPrices(bool allow) {
|
||||
QSettings().setValue("options/allowfetchprices", allow);
|
||||
}
|
||||
|
||||
QString Settings::get_currency_name() {
|
||||
// Load from the QT Settings.
|
||||
return QSettings().value("options/currency_name", false).toString();
|
||||
}
|
||||
|
||||
void Settings::set_currency_name(QString currency_name) {
|
||||
QSettings().setValue("options/currency_name", currency_name);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
QString Settings::get_theme_name() {
|
||||
// Load from the QT Settings.
|
||||
return QSettings().value("options/theme_name", false).toString();
|
||||
|
||||
Reference in New Issue
Block a user