mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +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
|
@ -8,6 +8,7 @@
|
|||
#include <LibGUI/GProgressBar.h>
|
||||
#include <LibGUI/GCheckBox.h>
|
||||
#include <LibGUI/GScrollBar.h>
|
||||
#include <LibGUI/GGroupBox.h>
|
||||
|
||||
static GWidget* build_gwidget(WidgetType type, GWidget* parent)
|
||||
{
|
||||
|
@ -16,6 +17,8 @@ static GWidget* build_gwidget(WidgetType type, GWidget* parent)
|
|||
return new GWidget(parent);
|
||||
case WidgetType::GScrollBar:
|
||||
return new GScrollBar(Orientation::Vertical, parent);
|
||||
case WidgetType::GGroupBox:
|
||||
return new GGroupBox("groupbox_1", parent);
|
||||
case WidgetType::GLabel: {
|
||||
auto* label = new GLabel(parent);
|
||||
label->set_text("label_1");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue