mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibGUI: Invalidate GroupBox layout on font change
This commit is contained in:
parent
70e5a77794
commit
a21ea5f10f
2 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue