summaryrefslogtreecommitdiff
path: root/DevTools
diff options
context:
space:
mode:
Diffstat (limited to 'DevTools')
-rw-r--r--DevTools/VisualBuilder/VBWidgetRegistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/DevTools/VisualBuilder/VBWidgetRegistry.cpp b/DevTools/VisualBuilder/VBWidgetRegistry.cpp
index 86b68b9159..3852a9b9d9 100644
--- a/DevTools/VisualBuilder/VBWidgetRegistry.cpp
+++ b/DevTools/VisualBuilder/VBWidgetRegistry.cpp
@@ -89,7 +89,7 @@ static GWidget* build_gwidget(VBWidgetType type, GWidget* parent)
return button;
}
case VBWidgetType::GSpinBox: {
- auto* box = new GSpinBox(parent);
+ auto box = GSpinBox::construct(parent);
box->set_range(0, 100);
box->set_value(0);
return box;