1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibGUI: Convert GSlider to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 16:33:53 +02:00
parent a50cfc5f1f
commit 7aaad27778
4 changed files with 11 additions and 9 deletions

View file

@ -107,7 +107,7 @@ static GWidget* build_gwidget(VBWidgetType type, GWidget* parent)
return bar;
}
case VBWidgetType::GSlider: {
auto* slider = new GSlider(Orientation::Horizontal, parent);
auto slider = GSlider::construct(Orientation::Horizontal, parent);
slider->set_range(0, 100);
slider->set_value(50);
return slider;