forked from Public/monero-gui
Merge pull request #147
6914656 Fix sum of selected transactions being slighty off (moneromooo.monero)
This commit is contained in:
@@ -25,6 +25,11 @@ double TransactionInfo::amount() const
|
||||
return WalletManager::instance()->displayAmount(m_pimpl->amount()).toDouble();
|
||||
}
|
||||
|
||||
quint64 TransactionInfo::atomicAmount() const
|
||||
{
|
||||
return m_pimpl->amount();
|
||||
}
|
||||
|
||||
QString TransactionInfo::displayAmount() const
|
||||
{
|
||||
return WalletManager::instance()->displayAmount(m_pimpl->amount());
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -101,6 +101,11 @@ public:
|
||||
|
||||
void setLogLevel(int logLevel);
|
||||
|
||||
Q_INVOKABLE quint64 add(quint64 x, quint64 y) const { return x + y; }
|
||||
Q_INVOKABLE quint64 sub(quint64 x, quint64 y) const { return x - y; }
|
||||
Q_INVOKABLE qint64 addi(qint64 x, qint64 y) const { return x + y; }
|
||||
Q_INVOKABLE qint64 subi(qint64 x, qint64 y) const { return x - y; }
|
||||
|
||||
signals:
|
||||
|
||||
void walletOpened(Wallet * wallet);
|
||||
|
||||
Reference in New Issue
Block a user