mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
VisualBuilder: Add icons to the toolbox, and support for GProgressBar.
This commit is contained in:
parent
75c76f6692
commit
b5d1cfef58
9 changed files with 40 additions and 16 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <LibGUI/GButton.h>
|
||||
#include <LibGUI/GSpinBox.h>
|
||||
#include <LibGUI/GTextEditor.h>
|
||||
#include <LibGUI/GProgressBar.h>
|
||||
|
||||
static GWidget* build_gwidget(WidgetType type, GWidget* parent)
|
||||
{
|
||||
|
@ -22,6 +23,13 @@ static GWidget* build_gwidget(WidgetType type, GWidget* parent)
|
|||
editor->set_ruler_visible(false);
|
||||
return editor;
|
||||
}
|
||||
case WidgetType::GProgressBar: {
|
||||
auto* bar = new GProgressBar(parent);
|
||||
bar->set_format(GProgressBar::Format::NoText);
|
||||
bar->set_range(0, 100);
|
||||
bar->set_value(50);
|
||||
return bar;
|
||||
}
|
||||
default:
|
||||
ASSERT_NOT_REACHED();
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue