GButton: Convert most code to using ObjectPtr for GButton

This commit is contained in:
Andreas Kling 2019-09-21 19:28:28 +02:00
commit 45cfd57f6e
Notes: sideshowbarker 2024-07-19 12:01:11 +09:00
20 changed files with 38 additions and 38 deletions

View file

@ -84,7 +84,7 @@ static ObjectPtr<GWidget> build_gwidget(VBWidgetType type, GWidget* parent)
return label;
}
case VBWidgetType::GButton: {
auto* button = new GButton(parent);
auto button = GButton::construct(parent);
button->set_text("button_1");
return button;
}