mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-08 19:53:27 +01:00
Merge #8371: [Qt] Add out-of-sync modal info layer
08827df[Qt] modalinfolayer: removed unused comments, renamed signal, code style overhaul (Jonas Schnelli)d8b062e[Qt] only update "amount of blocks left" when the header chain is in-sync (Jonas Schnelli)e3245b4[Qt] add out-of-sync modal info layer (Jonas Schnelli)e47052f[Qt] ClientModel add method to get the height of the header chain (Jonas Schnelli)a001f18[Qt] Always pass the numBlocksChanged signal for headers tip changed (Jonas Schnelli)bd44a04[Qt] make Out-Of-Sync warning icon clickable (Jonas Schnelli)0904c3c[Refactor] refactor function that forms human readable text out of a timeoffset (Jonas Schnelli)
This commit is contained in:
@@ -140,6 +140,8 @@ OverviewPage::OverviewPage(const PlatformStyle *platformStyle, QWidget *parent)
|
||||
|
||||
// start with displaying the "out of sync" warnings
|
||||
showOutOfSyncWarning(true);
|
||||
connect(ui->labelWalletStatus, SIGNAL(clicked()), this, SLOT(handleOutOfSyncWarningClicks()));
|
||||
connect(ui->labelTransactionsStatus, SIGNAL(clicked()), this, SLOT(handleOutOfSyncWarningClicks()));
|
||||
}
|
||||
|
||||
void OverviewPage::handleTransactionClicked(const QModelIndex &index)
|
||||
@@ -148,6 +150,11 @@ void OverviewPage::handleTransactionClicked(const QModelIndex &index)
|
||||
Q_EMIT transactionClicked(filter->mapToSource(index));
|
||||
}
|
||||
|
||||
void OverviewPage::handleOutOfSyncWarningClicks()
|
||||
{
|
||||
Q_EMIT outOfSyncWarningClicked();
|
||||
}
|
||||
|
||||
OverviewPage::~OverviewPage()
|
||||
{
|
||||
delete ui;
|
||||
|
||||
Reference in New Issue
Block a user