From 9d5bf6bf01af40a9684f1b1f06a8df4aaf36b8f3 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 22 Jun 2021 19:24:35 +0000 Subject: [PATCH] GUI: Always call parent changeEvent handler --- src/qt/bitcoingui.cpp | 2 ++ src/qt/coincontroldialog.cpp | 2 ++ src/qt/guiutil.cpp | 1 + src/qt/overviewpage.cpp | 2 ++ src/qt/rpcconsole.cpp | 2 ++ src/qt/sendcoinsentry.cpp | 2 ++ src/qt/signverifymessagedialog.cpp | 2 ++ src/qt/transactionview.cpp | 2 ++ 8 files changed, 15 insertions(+) diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 02f7e2a832d50..f8aeb016596c8 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -1515,6 +1515,8 @@ void UnitDisplayStatusBarControl::changeEvent(QEvent* e) setStyleSheet(style); } } + + QLabel::changeEvent(e); } /** Creates context menu, its actions, and wires up all the relevant signals for mouse events. */ diff --git a/src/qt/coincontroldialog.cpp b/src/qt/coincontroldialog.cpp index 2ea250d3e9736..d2a9365890cfa 100644 --- a/src/qt/coincontroldialog.cpp +++ b/src/qt/coincontroldialog.cpp @@ -567,6 +567,8 @@ void CoinControlDialog::changeEvent(QEvent* e) if (e->type() == QEvent::PaletteChange) { updateView(); } + + QDialog::changeEvent(e); } void CoinControlDialog::updateView() diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 4ccfa5deefd3c..ecdfce2f5a403 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -812,6 +812,7 @@ void ThemedLabel::changeEvent(QEvent* e) if (e->type() == QEvent::PaletteChange) { updateThemedPixmap(); } + QLabel::changeEvent(e); } diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index bc5a0505445e9..1fd1ff3142861 100644 --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -302,6 +302,8 @@ void OverviewPage::changeEvent(QEvent* e) ui->labelTransactionsStatus->setIcon(icon); ui->labelWalletStatus->setIcon(icon); } + + QWidget::changeEvent(e); } void OverviewPage::updateDisplayUnit() diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 68bbb9b963e5a..bc0afa03c9aeb 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -895,6 +895,8 @@ void RPCConsole::changeEvent(QEvent* e) platformStyle->SingleColorImage(ICON_MAPPING[i].source).scaled(QSize(consoleFontSize * 2, consoleFontSize * 2), Qt::IgnoreAspectRatio, Qt::SmoothTransformation)); } } + + QWidget::changeEvent(e); } void RPCConsole::message(int category, const QString &message, bool html) diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp index dc273b8818a17..683c0441fadda 100644 --- a/src/qt/sendcoinsentry.cpp +++ b/src/qt/sendcoinsentry.cpp @@ -245,6 +245,8 @@ void SendCoinsEntry::changeEvent(QEvent* e) ui->deleteButton_is->setIcon(platformStyle->SingleColorIcon(QStringLiteral(":/icons/remove"))); ui->deleteButton_s->setIcon(platformStyle->SingleColorIcon(QStringLiteral(":/icons/remove"))); } + + QStackedWidget::changeEvent(e); } bool SendCoinsEntry::updateLabel(const QString &address) diff --git a/src/qt/signverifymessagedialog.cpp b/src/qt/signverifymessagedialog.cpp index e8ee11e90fac8..33589f09bfdee 100644 --- a/src/qt/signverifymessagedialog.cpp +++ b/src/qt/signverifymessagedialog.cpp @@ -296,4 +296,6 @@ void SignVerifyMessageDialog::changeEvent(QEvent* e) ui->verifyMessageButton_VM->setIcon(platformStyle->SingleColorIcon(QStringLiteral(":/icons/transaction_0"))); ui->clearButton_VM->setIcon(platformStyle->SingleColorIcon(QStringLiteral(":/icons/remove"))); } + + QDialog::changeEvent(e); } diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index cad3d406fbf95..83d17a32c089c 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -253,6 +253,8 @@ void TransactionView::changeEvent(QEvent* e) TransactionFilterProxy::WatchOnlyFilter_No, m_platform_style->SingleColorIcon(QStringLiteral(":/icons/eye_minus"))); } + + QWidget::changeEvent(e); } void TransactionView::chooseDate(int idx)