1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 05:47:34 +00:00

LibGUI: Convert GProgressBar to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 16:31:12 +02:00
parent 3476a63415
commit ceb5508fea
4 changed files with 7 additions and 5 deletions

View file

@ -100,7 +100,7 @@ static GWidget* build_gwidget(VBWidgetType type, GWidget* parent)
return editor;
}
case VBWidgetType::GProgressBar: {
auto* bar = new GProgressBar(parent);
auto bar = GProgressBar::construct(parent);
bar->set_format(GProgressBar::Format::NoText);
bar->set_range(0, 100);
bar->set_value(50);