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:
parent
883d0d2466
commit
a1f8c10fe5
2 changed files with 23 additions and 23 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue