mirror of
https://github.com/RGBCube/serenity
synced 2025-07-16 14:17:34 +00:00
VisualBuilder: Add GScrollBar (and yes, an icon for it, too.)
This commit is contained in:
parent
f25c524f20
commit
3f67298dad
4 changed files with 11 additions and 0 deletions
|
@ -7,12 +7,15 @@
|
|||
#include <LibGUI/GTextEditor.h>
|
||||
#include <LibGUI/GProgressBar.h>
|
||||
#include <LibGUI/GCheckBox.h>
|
||||
#include <LibGUI/GScrollBar.h>
|
||||
|
||||
static GWidget* build_gwidget(WidgetType type, GWidget* parent)
|
||||
{
|
||||
switch (type) {
|
||||
case WidgetType::GWidget:
|
||||
return new GWidget(parent);
|
||||
case WidgetType::GScrollBar:
|
||||
return new GScrollBar(Orientation::Vertical, 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