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:
parent
3476a63415
commit
ceb5508fea
4 changed files with 7 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue