Fix sum of selected transactions being slighty off

due to floating point operations
This commit is contained in:
moneromooo.monero
2016-11-10 19:55:44 +00:00
parent 68736ab834
commit 69146567bf
6 changed files with 28 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ class TransactionInfo : public QObject
Q_PROPERTY(bool isPending READ isPending)
Q_PROPERTY(bool isFailed READ isFailed)
Q_PROPERTY(double amount READ amount)
Q_PROPERTY(quint64 atomicAmount READ atomicAmount)
Q_PROPERTY(QString displayAmount READ displayAmount)
Q_PROPERTY(QString fee READ fee)
Q_PROPERTY(quint64 blockHeight READ blockHeight)
@@ -42,6 +43,7 @@ public:
bool isPending() const;
bool isFailed() const;
double amount() const;
quint64 atomicAmount() const;
QString displayAmount() const;
QString fee() const;
quint64 blockHeight() const;