Call SettingsPage::showEvent from child class implementations
This commit is contained in:
parent
0fcb1df200
commit
7d28e8700b
|
@ -192,7 +192,7 @@ void GlobalSearchSettingsPage::CurrentProviderChanged(QTreeWidgetItem* item) {
|
|||
}
|
||||
|
||||
void GlobalSearchSettingsPage::showEvent(QShowEvent* e) {
|
||||
QWidget::showEvent(e);
|
||||
SettingsPage::showEvent(e);
|
||||
|
||||
// Update the logged-in state of each item when we come back to this page in
|
||||
// the dialog.
|
||||
|
|
|
@ -117,9 +117,15 @@ NotificationsSettingsPage::~NotificationsSettingsPage() {
|
|||
delete ui_;
|
||||
}
|
||||
|
||||
void NotificationsSettingsPage::showEvent(QShowEvent*) { UpdatePopupVisible(); }
|
||||
void NotificationsSettingsPage::showEvent(QShowEvent* event) {
|
||||
SettingsPage::showEvent(event);
|
||||
UpdatePopupVisible();
|
||||
}
|
||||
|
||||
void NotificationsSettingsPage::hideEvent(QHideEvent*) { UpdatePopupVisible(); }
|
||||
void NotificationsSettingsPage::hideEvent(QHideEvent* event) {
|
||||
SettingsPage::hideEvent(event);
|
||||
UpdatePopupVisible();
|
||||
}
|
||||
|
||||
void NotificationsSettingsPage::Load() {
|
||||
QSettings s;
|
||||
|
|
Loading…
Reference in New Issue