1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:17:35 +00:00

LibGUI: Convert GSpinBox to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 16:15:11 +02:00
parent 83b5f6c11a
commit b78225941d
4 changed files with 6 additions and 5 deletions

View file

@ -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;