Skip to content

Commit

Permalink
GUI: Always call parent changeEvent handler
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Jun 22, 2021
1 parent c901d4d commit 9d5bf6b
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 2 additions & 0 deletions src/qt/coincontroldialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,8 @@ void CoinControlDialog::changeEvent(QEvent* e)
if (e->type() == QEvent::PaletteChange) {
updateView();
}

QDialog::changeEvent(e);
}

void CoinControlDialog::updateView()
Expand Down
1 change: 1 addition & 0 deletions src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ void ThemedLabel::changeEvent(QEvent* e)
if (e->type() == QEvent::PaletteChange) {
updateThemedPixmap();
}

QLabel::changeEvent(e);
}

Expand Down
2 changes: 2 additions & 0 deletions src/qt/overviewpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ void OverviewPage::changeEvent(QEvent* e)
ui->labelTransactionsStatus->setIcon(icon);
ui->labelWalletStatus->setIcon(icon);
}

QWidget::changeEvent(e);
}

void OverviewPage::updateDisplayUnit()
Expand Down
2 changes: 2 additions & 0 deletions src/qt/rpcconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/qt/sendcoinsentry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/qt/signverifymessagedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 2 additions & 0 deletions src/qt/transactionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9d5bf6b

Please sign in to comment.