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:
parent
83b5f6c11a
commit
b78225941d
4 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue