diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-11-20 15:20:42 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-11-20 21:05:20 +0000 |
commit | a4af8b2a6487161320fcaae02a195093498b05b0 (patch) | |
tree | 44ee42effc316bdd8f895634171810b325e804b2 /Userland/Applications/DisplaySettings/MonitorSettingsWidget.h | |
parent | 9fc53017c6c815bbf97ce31b91415dae77774c2b (diff) | |
download | serenity-a4af8b2a6487161320fcaae02a195093498b05b0.zip |
DisplaySettings: Move screen number show/hide logic into widget
This is functionally the same as before, as selecting a tab fires Show
and HideEvents. But this way, we don't need to directly access the
TabWidget, which will make using SettingsWindow simpler.
Diffstat (limited to 'Userland/Applications/DisplaySettings/MonitorSettingsWidget.h')
-rw-r--r-- | Userland/Applications/DisplaySettings/MonitorSettingsWidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Applications/DisplaySettings/MonitorSettingsWidget.h b/Userland/Applications/DisplaySettings/MonitorSettingsWidget.h index 28144bd4e2..4b5e609318 100644 --- a/Userland/Applications/DisplaySettings/MonitorSettingsWidget.h +++ b/Userland/Applications/DisplaySettings/MonitorSettingsWidget.h @@ -28,6 +28,10 @@ public: void apply_settings(); void show_screen_numbers(bool); +protected: + void show_event(GUI::ShowEvent& event) override; + void hide_event(GUI::HideEvent& event) override; + private: MonitorSettingsWidget(); |