LibGUI: Invalidate GroupBox layout on font change

This commit is contained in:
FrHun 2021-09-28 15:59:07 +02:00 committed by Andreas Kling
commit a21ea5f10f
Notes: sideshowbarker 2024-07-18 01:31:33 +09:00
2 changed files with 7 additions and 0 deletions

View file

@ -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)

View file

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