Skip to content

Commit 9d5bf6b

Browse files
committed
GUI: Always call parent changeEvent handler
1 parent c901d4d commit 9d5bf6b

File tree

8 files changed

+15
-0
lines changed

8 files changed

+15
-0
lines changed

src/qt/bitcoingui.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,8 @@ void UnitDisplayStatusBarControl::changeEvent(QEvent* e)
15151515
setStyleSheet(style);
15161516
}
15171517
}
1518+
1519+
QLabel::changeEvent(e);
15181520
}
15191521

15201522
/** Creates context menu, its actions, and wires up all the relevant signals for mouse events. */

src/qt/coincontroldialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,8 @@ void CoinControlDialog::changeEvent(QEvent* e)
567567
if (e->type() == QEvent::PaletteChange) {
568568
updateView();
569569
}
570+
571+
QDialog::changeEvent(e);
570572
}
571573

572574
void CoinControlDialog::updateView()

src/qt/guiutil.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,7 @@ void ThemedLabel::changeEvent(QEvent* e)
812812
if (e->type() == QEvent::PaletteChange) {
813813
updateThemedPixmap();
814814
}
815+
815816
QLabel::changeEvent(e);
816817
}
817818

src/qt/overviewpage.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ void OverviewPage::changeEvent(QEvent* e)
302302
ui->labelTransactionsStatus->setIcon(icon);
303303
ui->labelWalletStatus->setIcon(icon);
304304
}
305+
306+
QWidget::changeEvent(e);
305307
}
306308

307309
void OverviewPage::updateDisplayUnit()

src/qt/rpcconsole.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,8 @@ void RPCConsole::changeEvent(QEvent* e)
895895
platformStyle->SingleColorImage(ICON_MAPPING[i].source).scaled(QSize(consoleFontSize * 2, consoleFontSize * 2), Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
896896
}
897897
}
898+
899+
QWidget::changeEvent(e);
898900
}
899901

900902
void RPCConsole::message(int category, const QString &message, bool html)

src/qt/sendcoinsentry.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ void SendCoinsEntry::changeEvent(QEvent* e)
245245
ui->deleteButton_is->setIcon(platformStyle->SingleColorIcon(QStringLiteral(":/icons/remove")));
246246
ui->deleteButton_s->setIcon(platformStyle->SingleColorIcon(QStringLiteral(":/icons/remove")));
247247
}
248+
249+
QStackedWidget::changeEvent(e);
248250
}
249251

250252
bool SendCoinsEntry::updateLabel(const QString &address)

src/qt/signverifymessagedialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,4 +296,6 @@ void SignVerifyMessageDialog::changeEvent(QEvent* e)
296296
ui->verifyMessageButton_VM->setIcon(platformStyle->SingleColorIcon(QStringLiteral(":/icons/transaction_0")));
297297
ui->clearButton_VM->setIcon(platformStyle->SingleColorIcon(QStringLiteral(":/icons/remove")));
298298
}
299+
300+
QDialog::changeEvent(e);
299301
}

src/qt/transactionview.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ void TransactionView::changeEvent(QEvent* e)
253253
TransactionFilterProxy::WatchOnlyFilter_No,
254254
m_platform_style->SingleColorIcon(QStringLiteral(":/icons/eye_minus")));
255255
}
256+
257+
QWidget::changeEvent(e);
256258
}
257259

258260
void TransactionView::chooseDate(int idx)

0 commit comments

Comments
 (0)