aboutsummaryrefslogtreecommitdiff
path: root/src/qt/overviewpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/overviewpage.cpp')
-rw-r--r--src/qt/overviewpage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp
index d991f0d7ba..9515117c21 100644
--- a/src/qt/overviewpage.cpp
+++ b/src/qt/overviewpage.cpp
@@ -2,7 +2,7 @@
#include "ui_overviewpage.h"
#include "walletmodel.h"
-#include "guiutil.h"
+#include "bitcoinunits.h"
OverviewPage::OverviewPage(QWidget *parent) :
QWidget(parent),
@@ -34,8 +34,8 @@ OverviewPage::~OverviewPage()
void OverviewPage::setBalance(qint64 balance, qint64 unconfirmedBalance)
{
- ui->labelBalance->setText(GUIUtil::formatMoney(balance) + QString(" BTC"));
- ui->labelUnconfirmed->setText(GUIUtil::formatMoney(unconfirmedBalance) + QString(" BTC"));
+ ui->labelBalance->setText(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, balance));
+ ui->labelUnconfirmed->setText(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, unconfirmedBalance));
}
void OverviewPage::setNumTransactions(int count)