diff options
-rw-r--r-- | Userland/Libraries/LibGUI/GroupBox.cpp | 6 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/GroupBox.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/GroupBox.cpp b/Userland/Libraries/LibGUI/GroupBox.cpp index 1409c9e478..6918f5ba6f 100644 --- a/Userland/Libraries/LibGUI/GroupBox.cpp +++ b/Userland/Libraries/LibGUI/GroupBox.cpp @@ -52,6 +52,12 @@ void GroupBox::paint_event(PaintEvent& event) } } +void GroupBox::fonts_change_event(FontsChangeEvent& event) +{ + Widget::fonts_change_event(event); + invalidate_layout(); +} + void GroupBox::set_title(const StringView& title) { if (m_title == title) diff --git a/Userland/Libraries/LibGUI/GroupBox.h b/Userland/Libraries/LibGUI/GroupBox.h index 1f40727f69..8d7da6037c 100644 --- a/Userland/Libraries/LibGUI/GroupBox.h +++ b/Userland/Libraries/LibGUI/GroupBox.h @@ -23,6 +23,7 @@ protected: explicit GroupBox(const StringView& title = {}); virtual void paint_event(PaintEvent&) override; + virtual void fonts_change_event(FontsChangeEvent&) override; private: String m_title; |