From 36599db428514412a64d47a1f739615013877739 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Sun, 31 Mar 2013 10:16:43 +0200 Subject: [PATCH] qt: remove transaction count from overview page It was needlessly confusing people, as it doesn't necessarily match the number of transactions in the transaction list. --- src/qt/forms/overviewpage.ui | 17 ----------------- src/qt/overviewpage.cpp | 8 -------- src/qt/overviewpage.h | 1 - 3 files changed, 26 deletions(-) diff --git a/src/qt/forms/overviewpage.ui b/src/qt/forms/overviewpage.ui index e4470bcdde..57aa624cc2 100644 --- a/src/qt/forms/overviewpage.ui +++ b/src/qt/forms/overviewpage.ui @@ -158,23 +158,6 @@ - - - - Number of transactions: - - - - - - - Total number of transactions in wallet - - - 0 - - - diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index 8f1ff5325e..528c93bdc1 100644 --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -147,11 +147,6 @@ void OverviewPage::setBalance(qint64 balance, qint64 unconfirmedBalance, qint64 ui->labelImmatureText->setVisible(showImmature); } -void OverviewPage::setNumTransactions(int count) -{ - ui->labelNumTransactions->setText(QLocale::system().toString(count)); -} - void OverviewPage::setClientModel(ClientModel *model) { this->clientModel = model; @@ -183,9 +178,6 @@ void OverviewPage::setWalletModel(WalletModel *model) setBalance(model->getBalance(), model->getUnconfirmedBalance(), model->getImmatureBalance()); connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(setBalance(qint64, qint64, qint64))); - setNumTransactions(model->getNumTransactions()); - connect(model, SIGNAL(numTransactionsChanged(int)), this, SLOT(setNumTransactions(int))); - connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); } diff --git a/src/qt/overviewpage.h b/src/qt/overviewpage.h index b287f479f8..59ba3c66bb 100644 --- a/src/qt/overviewpage.h +++ b/src/qt/overviewpage.h @@ -30,7 +30,6 @@ public: public slots: void setBalance(qint64 balance, qint64 unconfirmedBalance, qint64 immatureBalance); - void setNumTransactions(int count); signals: void transactionClicked(const QModelIndex &index);