mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +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
|
@ -24,7 +24,7 @@ void GToolBar::add_action(GAction& action)
|
|||
item->type = Item::Action;
|
||||
item->action = action;
|
||||
|
||||
auto* button = new GButton(this);
|
||||
auto button = GButton::construct(this);
|
||||
button->set_action(*item->action);
|
||||
button->set_tooltip(item->action->text());
|
||||
if (item->action->icon())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue