summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrHun <28605587+frhun@users.noreply.github.com>2021-09-28 15:59:07 +0200
committerAndreas Kling <kling@serenityos.org>2021-11-03 16:13:19 +0100
commita21ea5f10f280433079208da4e953caf531e5def (patch)
tree5c69907bed69e713b195221a5a974b8cc531ca20
parent70e5a77794f936d5dd56e8a284c574052b3bad26 (diff)
downloadserenity-a21ea5f10f280433079208da4e953caf531e5def.zip
LibGUI: Invalidate GroupBox layout on font change
-rw-r--r--Userland/Libraries/LibGUI/GroupBox.cpp6
-rw-r--r--Userland/Libraries/LibGUI/GroupBox.h1
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;