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:
parent
62d347d12a
commit
b3f657a1c6
3 changed files with 13 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue