aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactiontablemodel.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-25 21:35:45 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-25 21:38:54 +0200
commite285ffcd052a42a6e870f093e7663671a2a3b147 (patch)
treed9c5237ba0d2c6617d6202cbf1fda666a0b33d78 /src/qt/transactiontablemodel.cpp
parentbbae0fc9efa6eb7155d679a1cc3eeb451d594d14 (diff)
preparations for multiple unit (uBTC, mBTC, BTC) support, fix amount entry issue
Diffstat (limited to 'src/qt/transactiontablemodel.cpp')
-rw-r--r--src/qt/transactiontablemodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp
index 7062ceecbd..2b8fe0b471 100644
--- a/src/qt/transactiontablemodel.cpp
+++ b/src/qt/transactiontablemodel.cpp
@@ -5,6 +5,7 @@
#include "transactiondesc.h"
#include "walletmodel.h"
#include "addresstablemodel.h"
+#include "bitcoinunits.h"
#include "headers.h"
@@ -397,7 +398,7 @@ QVariant TransactionTableModel::formatTxToAddress(const TransactionRecord *wtx)
QVariant TransactionTableModel::formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed) const
{
- QString str = QString::fromStdString(FormatMoney(wtx->credit + wtx->debit));
+ QString str = BitcoinUnits::format(BitcoinUnits::BTC, wtx->credit + wtx->debit);
if(showUnconfirmed)
{
if(!wtx->status.confirmed || wtx->status.maturity != TransactionStatus::Mature)