mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:47:35 +00:00
GButton: Convert most code to using ObjectPtr for GButton
This commit is contained in:
parent
55a6e4ac0b
commit
45cfd57f6e
20 changed files with 38 additions and 38 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue