diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-20 16:52:39 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-20 19:32:12 +0200 |
commit | c59b053ad6197f94a14b0690654684170dc6d85d (patch) | |
tree | 99069beaa18965478398023050dc868d179ae64a /DevTools/VisualBuilder | |
parent | 8ab1923abe46d0aed62aa4918d7edc1a8d1f041e (diff) | |
download | serenity-c59b053ad6197f94a14b0690654684170dc6d85d.zip |
GSlider: Add support for vertical sliders.
You now have to pass an Orientation to the GSlider constructor. It's not
possible to change the orientation after construction.
Added some vertical GSliders to the WidgetGallery demo for testing. :^)
Diffstat (limited to 'DevTools/VisualBuilder')
-rw-r--r-- | DevTools/VisualBuilder/VBWidgetRegistry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DevTools/VisualBuilder/VBWidgetRegistry.cpp b/DevTools/VisualBuilder/VBWidgetRegistry.cpp index 6463c0e875..a528935b0e 100644 --- a/DevTools/VisualBuilder/VBWidgetRegistry.cpp +++ b/DevTools/VisualBuilder/VBWidgetRegistry.cpp @@ -107,7 +107,7 @@ static GWidget* build_gwidget(VBWidgetType type, GWidget* parent) return bar; } case VBWidgetType::GSlider: { - auto* slider = new GSlider(parent); + auto* slider = new GSlider(Orientation::Horizontal, parent); slider->set_range(0, 100); slider->set_value(50); return slider; |