mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +00:00
VisualBuilder: Add GGroupBox.
The icon currently looks better than a real GGroupBox. I have to fix that.
This commit is contained in:
parent
16990fece3
commit
f0501a0102
4 changed files with 11 additions and 0 deletions
|
@ -116,5 +116,12 @@ GWindow* make_toolbox_window()
|
|||
if (auto* form = VBForm::current())
|
||||
form->insert_widget(WidgetType::GScrollBar);
|
||||
};
|
||||
auto* groupbox_button = new GButton(widget);
|
||||
groupbox_button->set_tooltip("GGroupBox");
|
||||
groupbox_button->set_icon(GraphicsBitmap::load_from_file("/res/icons/vbwidgets/groupbox.png"));
|
||||
groupbox_button->on_click = [] (GButton&) {
|
||||
if (auto* form = VBForm::current())
|
||||
form->insert_widget(WidgetType::GGroupBox);
|
||||
};
|
||||
return window;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue