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) {
|
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
|
// Update the logged-in state of each item when we come back to this page in
|
||||||
// the dialog.
|
// the dialog.
|
||||||
|
|
|
@ -117,9 +117,15 @@ NotificationsSettingsPage::~NotificationsSettingsPage() {
|
||||||
delete ui_;
|
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() {
|
void NotificationsSettingsPage::Load() {
|
||||||
QSettings s;
|
QSettings s;
|
||||||
|
|
Loading…
Reference in New Issue