aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoinunits.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-07-18 16:31:13 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-07-23 17:58:46 +0200
commit91cce1732b73c4457e474c557aaa7f343c0dc8a2 (patch)
treed1698a0f93194115581ff012a0ce3eae4c63faff /src/qt/bitcoinunits.h
parentd5a3fd10e50ea8b2a43e307ed1f52d286663e551 (diff)
qt: Use fixed-point arithmetic in amount spinbox
Fixes various issues and cleans up code - Fixes issue #4500: Amount widget +/- has floating point rounding artifacts - Amount box can now be emptied again, without clearing to 0 Also aligns the amount to the right, as in other places.
Diffstat (limited to 'src/qt/bitcoinunits.h')
-rw-r--r--src/qt/bitcoinunits.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/bitcoinunits.h b/src/qt/bitcoinunits.h
index 7fa24c8542..944b4ec530 100644
--- a/src/qt/bitcoinunits.h
+++ b/src/qt/bitcoinunits.h
@@ -120,6 +120,9 @@ public:
return text;
}
+ //! Return maximum number of base units (Satoshis)
+ static qint64 maxMoney();
+
private:
QList<BitcoinUnits::Unit> unitlist;
};