diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-07-18 16:31:13 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-07-23 17:58:46 +0200 |
| commit | 91cce1732b73c4457e474c557aaa7f343c0dc8a2 (patch) | |
| tree | d1698a0f93194115581ff012a0ce3eae4c63faff /src/qt/bitcoinunits.h | |
| parent | Merge pull request #4571 (diff) | |
| download | discoin-91cce1732b73c4457e474c557aaa7f343c0dc8a2.tar.xz discoin-91cce1732b73c4457e474c557aaa7f343c0dc8a2.zip | |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/bitcoinunits.h b/src/qt/bitcoinunits.h index 7fa24c854..944b4ec53 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; }; |