1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:07:34 +00:00

FontSettingsWidget: Promote Labels as instance members

In order to not resolve the widgets twice, we capture them in ivars.
This commit is contained in:
Thomas Keppler 2021-05-23 17:14:22 +02:00 committed by Linus Groh
parent 883d0d2466
commit a1f8c10fe5
2 changed files with 23 additions and 23 deletions

View file

@ -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;
};
}