1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 06:17:35 +00:00

VisualBuilder: Expose GGroupBox name property.

This commit is contained in:
Andreas Kling 2019-04-19 01:40:25 +02:00
parent 62d347d12a
commit b3f657a1c6
3 changed files with 13 additions and 0 deletions

View file

@ -29,3 +29,11 @@ void GGroupBox::paint_event(GPaintEvent& event)
painter.fill_rect(text_rect, background_color());
painter.draw_text(text_rect, m_name, TextAlignment::Center, foreground_color());
}
void GGroupBox::set_name(const String& name)
{
if (m_name == name)
return;
m_name = name;
update();
}