diff --git a/src/controller.cpp b/src/controller.cpp index 11fe339..66912c1 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -391,7 +391,7 @@ void Controller::getInfoThenRefresh(bool force) double volume = Settings::getInstance()->getUSDVolume(); double cap = Settings::getInstance()->getUSDCAP(); main->statusLabel->setText( - " DRAGONX/USD=$ " + (QLocale(QLocale::English).toString(price,'f', 2)) + " DRGX/USD=$ " + (QLocale(QLocale::English).toString(price,'f', 2)) ); ui->volumeExchange->setText( " $ " + (QLocale(QLocale::English).toString(volume,'f', 2)) @@ -407,7 +407,7 @@ void Controller::getInfoThenRefresh(bool force) double volume = Settings::getInstance()->getEURVolume(); double cap = Settings::getInstance()->getEURCAP(); main->statusLabel->setText( - "DRAGONX/EUR "+(QLocale(QLocale::German).toString(price,'f', 2))+ " €" + "DRGX/EUR "+(QLocale(QLocale::German).toString(price,'f', 2))+ " €" ); ui->volumeExchange->setText( QLocale(QLocale::German).toString(volume,'f', 2)+ " €" @@ -423,7 +423,7 @@ void Controller::getInfoThenRefresh(bool force) double volume = Settings::getInstance()->getBTCVolume(); double cap = Settings::getInstance()->getBTCCAP(); main->statusLabel->setText( - " DRAGONX/BTC=BTC " + (QLocale(QLocale::English).toString(price, 'f',8)) + " DRGX/BTC=BTC " + (QLocale(QLocale::English).toString(price, 'f',8)) ); ui->volumeExchange->setText( " BTC " + (QLocale(QLocale::English).toString(volume, 'f',8)) @@ -439,7 +439,7 @@ void Controller::getInfoThenRefresh(bool force) double volume = Settings::getInstance()->getCNYVolume(); double cap = Settings::getInstance()->getCNYCAP(); main->statusLabel->setText( - " DRAGONX/CNY=¥ /元 " + (QLocale(QLocale::Chinese).toString(price,'f', 2)) + " DRGX/CNY=¥ /元 " + (QLocale(QLocale::Chinese).toString(price,'f', 2)) ); ui->volumeExchange->setText( " ¥ /元 " + (QLocale(QLocale::Chinese).toString(volume,'f', 2)) @@ -455,7 +455,7 @@ void Controller::getInfoThenRefresh(bool force) double volume = Settings::getInstance()->getRUBVolume(); double cap = Settings::getInstance()->getRUBCAP(); main->statusLabel->setText( - " DRAGONX/RUB=₽ " + (QLocale(QLocale::German).toString(price,'f', 2)) + " DRGX/RUB=₽ " + (QLocale(QLocale::German).toString(price,'f', 2)) ); ui->volumeExchange->setText( " ₽ " + (QLocale(QLocale::German).toString(volume,'f', 2)) @@ -471,7 +471,7 @@ void Controller::getInfoThenRefresh(bool force) double volume = Settings::getInstance()->getCADVolume(); double cap = Settings::getInstance()->getCADCAP(); main->statusLabel->setText( - " DRAGONX/CAD=$ " + (QLocale(QLocale::English).toString(price,'f', 2)) + " DRGX/CAD=$ " + (QLocale(QLocale::English).toString(price,'f', 2)) ); ui->volumeExchange->setText( " $ " + (QLocale(QLocale::English).toString(volume,'f', 2)) @@ -487,7 +487,7 @@ void Controller::getInfoThenRefresh(bool force) double volume = Settings::getInstance()->getSGDVolume(); double cap = Settings::getInstance()->getSGDCAP(); main->statusLabel->setText( - " DRAGONX/SGD=$ " + (QLocale(QLocale::English).toString(price,'f', 2)) + " DRGX/SGD=$ " + (QLocale(QLocale::English).toString(price,'f', 2)) ); ui->volumeExchange->setText( " $ " + (QLocale(QLocale::English).toString(volume,'f', 2)) @@ -503,7 +503,7 @@ void Controller::getInfoThenRefresh(bool force) double volume = Settings::getInstance()->getCHFVolume(); double cap = Settings::getInstance()->getCHFCAP(); main->statusLabel->setText( - " DRAGONX/CHF= " + (QLocale(QLocale::German).toString(price,'f', 2))+ " CHF" + " DRGX/CHF= " + (QLocale(QLocale::German).toString(price,'f', 2))+ " CHF" ); ui->volumeExchange->setText( QLocale(QLocale::German).toString(volume,'f', 2)+ " CHF" @@ -519,7 +519,7 @@ void Controller::getInfoThenRefresh(bool force) double volume = Settings::getInstance()->getINRVolume(); double cap = Settings::getInstance()->getINRCAP(); main->statusLabel->setText( - " DRAGONX/INR=₹ " + (QLocale(QLocale::English).toString(price,'f', 2)) + " DRGX/INR=₹ " + (QLocale(QLocale::English).toString(price,'f', 2)) ); ui->volumeExchange->setText( " ₹ " + (QLocale(QLocale::English).toString(volume,'f', 2)) @@ -535,7 +535,7 @@ void Controller::getInfoThenRefresh(bool force) double volume = Settings::getInstance()->getGBPVolume(); double cap = Settings::getInstance()->getGBPCAP(); main->statusLabel->setText( - " DRAGONX/GBP=£ " + (QLocale(QLocale::English).toString(price,'f', 2)) + " DRGX/GBP=£ " + (QLocale(QLocale::English).toString(price,'f', 2)) ); ui->volumeExchange->setText( " £ " + (QLocale(QLocale::English).toString(volume,'f', 2)) @@ -551,7 +551,7 @@ void Controller::getInfoThenRefresh(bool force) double volume = Settings::getInstance()->getAUDVolume(); double cap = Settings::getInstance()->getAUDCAP(); main->statusLabel->setText( - " DRAGONX/AUD=$ " + (QLocale(QLocale::English).toString(price,'f', 2)) + " DRGX/AUD=$ " + (QLocale(QLocale::English).toString(price,'f', 2)) ); ui->volumeExchange->setText( " $ " + (QLocale(QLocale::English).toString(volume,'f', 2)) @@ -564,7 +564,7 @@ void Controller::getInfoThenRefresh(bool force) else { main->statusLabel->setText( - " DRAGONX/USD=$" + QString::number(Settings::getInstance()->getDRAGONXPrice(),'f',2 ) + " DRGX/USD=$" + QString::number(Settings::getInstance()->getDRAGONXPrice(),'f',2 ) ); ui->volumeExchange->setText( " $ " + QString::number((double) Settings::getInstance()->getUSDVolume() ,'f',2) @@ -703,14 +703,14 @@ void Controller::supplyUpdate() { Settings::getInstance()->get_currency_name() == "RUB" ) { // TODO: assuming German locale is incorrect - ui->supply_taddr->setText((QLocale(QLocale::German).toString(supply)+ " DRAGONX")); - ui->supply_zaddr->setText((QLocale(QLocale::German).toString(zfunds)+ " DRAGONX")); - ui->supply_total->setText((QLocale(QLocale::German).toString(total)+ " DRAGONX")); + ui->supply_taddr->setText((QLocale(QLocale::German).toString(supply)+ " DRGX")); + ui->supply_zaddr->setText((QLocale(QLocale::German).toString(zfunds)+ " DRGX")); + ui->supply_total->setText((QLocale(QLocale::German).toString(total)+ " DRGX")); } else { // TODO: assuming English locale is incorrect as well - ui->supply_taddr->setText("DRAGONX " + (QLocale(QLocale::English).toString(supply))); - ui->supply_zaddr->setText("DRAGONX " +(QLocale(QLocale::English).toString(zfunds))); - ui->supply_total->setText("DRAGONX " +(QLocale(QLocale::English).toString(total))); + ui->supply_taddr->setText("DRGX " + (QLocale(QLocale::English).toString(supply))); + ui->supply_zaddr->setText("DRGX " +(QLocale(QLocale::English).toString(zfunds))); + ui->supply_total->setText("DRGX " +(QLocale(QLocale::English).toString(total))); } //qDebug() << __func__ << ": supply=" << supply; });