mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
VisualBuilder: Add GSlider to the widgets toolbox.
This commit is contained in:
parent
fb0c598d22
commit
86aad50818
6 changed files with 26 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <LibGUI/GGroupBox.h>
|
||||
#include <LibGUI/GCheckBox.h>
|
||||
#include <LibGUI/GProgressBar.h>
|
||||
#include <LibGUI/GSlider.h>
|
||||
|
||||
VBWidget::VBWidget(VBWidgetType type, VBForm& form)
|
||||
: m_type(type)
|
||||
|
@ -148,6 +149,12 @@ void VBWidget::setup_properties()
|
|||
VB_ADD_PROPERTY(GProgressBar, "value", value, set_value, int);
|
||||
}
|
||||
|
||||
if (m_type == VBWidgetType::GSlider) {
|
||||
VB_ADD_PROPERTY(GSlider, "min", min, set_min, int);
|
||||
VB_ADD_PROPERTY(GSlider, "max", max, set_max, int);
|
||||
VB_ADD_PROPERTY(GSlider, "value", value, set_value, int);
|
||||
}
|
||||
|
||||
if (m_type == VBWidgetType::GTextEditor) {
|
||||
VB_ADD_PROPERTY(GTextEditor, "text", text, set_text, string);
|
||||
VB_ADD_PROPERTY(GTextEditor, "ruler_visible", is_ruler_visible, set_ruler_visible, bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue