aboutsummaryrefslogtreecommitdiff
path: root/src/qt/overviewpage.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-05-17 14:13:23 -0700
committerWladimir J. van der Laan <laanwj@gmail.com>2012-05-17 14:13:23 -0700
commitf0fc95a1434b0f1d4d879d30c1a6c5c12245754a (patch)
treef80d395a0ec4a2a3d857464bac4f84160d1a6bad /src/qt/overviewpage.cpp
parentf1e7570755587e37c60cf652a398fafe40eb3008 (diff)
parentc26f3a9bd117a8f4bdae8b35083d1503a8d136ee (diff)
downloadbitcoin-f0fc95a1434b0f1d4d879d30c1a6c5c12245754a.tar.xz
Merge pull request #1314 from Diapolo/Wallet_Transaction_state_Overviewpage
GUI: add 2 labels to the overviewpage that display Wallet and Transaction status
Diffstat (limited to 'src/qt/overviewpage.cpp')
-rw-r--r--src/qt/overviewpage.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp
index d0ba377967..e4c742262f 100644
--- a/src/qt/overviewpage.cpp
+++ b/src/qt/overviewpage.cpp
@@ -105,6 +105,15 @@ OverviewPage::OverviewPage(QWidget *parent) :
ui->listTransactions->setAttribute(Qt::WA_MacShowFocusRect, false);
connect(ui->listTransactions, SIGNAL(clicked(QModelIndex)), this, SLOT(handleTransactionClicked(QModelIndex)));
+
+ // init "out of sync" warning labels
+ ui->labelWalletStatus->setText("(" + tr("out of sync") + ")");
+ ui->labelWalletStatus->setStyleSheet("QLabel { color: red; }");
+ ui->labelTransactionsStatus->setText("(" + tr("out of sync") + ")");
+ ui->labelTransactionsStatus->setStyleSheet("QLabel { color: red; }");
+
+ // start with displaying the "out of sync" warnings
+ showOutOfSyncWarning(true);
}
void OverviewPage::handleTransactionClicked(const QModelIndex &index)
@@ -169,3 +178,9 @@ void OverviewPage::displayUnitChanged()
txdelegate->unit = model->getOptionsModel()->getDisplayUnit();
ui->listTransactions->update();
}
+
+void OverviewPage::showOutOfSyncWarning(bool fShow)
+{
+ ui->labelWalletStatus->setVisible(fShow);
+ ui->labelTransactionsStatus->setVisible(fShow);
+}