From 9a61eed1fcc16ddcedc315045f470e1958b0760b Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Sat, 31 Mar 2018 06:41:33 -0400 Subject: Use WalletBalances struct in Qt Suggested by John Newbery https://github.com/bitcoin/bitcoin/pull/10244#discussion_r177504284 --- src/qt/overviewpage.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/qt/overviewpage.h') diff --git a/src/qt/overviewpage.h b/src/qt/overviewpage.h index 0ce9f98c8c..36333536e5 100644 --- a/src/qt/overviewpage.h +++ b/src/qt/overviewpage.h @@ -5,7 +5,7 @@ #ifndef BITCOIN_QT_OVERVIEWPAGE_H #define BITCOIN_QT_OVERVIEWPAGE_H -#include +#include #include #include @@ -38,8 +38,7 @@ public: void showOutOfSyncWarning(bool fShow); public Q_SLOTS: - void setBalance(const CAmount& balance, const CAmount& unconfirmedBalance, const CAmount& immatureBalance, - const CAmount& watchOnlyBalance, const CAmount& watchUnconfBalance, const CAmount& watchImmatureBalance); + void setBalance(const interface::WalletBalances& balances); Q_SIGNALS: void transactionClicked(const QModelIndex &index); @@ -49,12 +48,7 @@ private: Ui::OverviewPage *ui; ClientModel *clientModel; WalletModel *walletModel; - CAmount currentBalance; - CAmount currentUnconfirmedBalance; - CAmount currentImmatureBalance; - CAmount currentWatchOnlyBalance; - CAmount currentWatchUnconfBalance; - CAmount currentWatchImmatureBalance; + interface::WalletBalances m_balances; TxViewDelegate *txdelegate; std::unique_ptr filter; -- cgit v1.2.3