diff options
author | Thomas Keppler <winfr34k@gmail.com> | 2021-05-23 17:14:22 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-24 09:08:23 +0100 |
commit | a1f8c10fe5d8a84dabc661ed0d5342b6ac03ab67 (patch) | |
tree | db0f64878b564f23cbd887130e88ec199af0ce8b /Userland/Applications/DisplaySettings/FontSettingsWidget.h | |
parent | 883d0d24663f9d4ef62a2bd4675791ccbd5acc3e (diff) | |
download | serenity-a1f8c10fe5d8a84dabc661ed0d5342b6ac03ab67.zip |
FontSettingsWidget: Promote Labels as instance members
In order to not resolve the widgets twice, we capture them in ivars.
Diffstat (limited to 'Userland/Applications/DisplaySettings/FontSettingsWidget.h')
-rw-r--r-- | Userland/Applications/DisplaySettings/FontSettingsWidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Applications/DisplaySettings/FontSettingsWidget.h b/Userland/Applications/DisplaySettings/FontSettingsWidget.h index f8cb0ab91c..4bd734111e 100644 --- a/Userland/Applications/DisplaySettings/FontSettingsWidget.h +++ b/Userland/Applications/DisplaySettings/FontSettingsWidget.h @@ -6,6 +6,7 @@ #pragma once +#include <LibGUI/Label.h> #include <LibGUI/Widget.h> namespace DisplaySettings { @@ -20,6 +21,9 @@ public: private: FontSettingsWidget(); + + RefPtr<GUI::Label> m_default_font_label; + RefPtr<GUI::Label> m_fixed_width_font_label; }; } |