mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:25:07 +00:00
LibGUI: Use Core::Object::add() a whole bunch
This commit is contained in:
parent
8efafdfc12
commit
45c25ffecd
11 changed files with 52 additions and 52 deletions
|
@ -65,7 +65,7 @@ void ToolBar::add_action(Action& action)
|
|||
item->type = Item::Type::Action;
|
||||
item->action = action;
|
||||
|
||||
auto button = Button::construct(this);
|
||||
auto button = add<Button>();
|
||||
if (action.group() && action.group()->is_exclusive())
|
||||
button->set_exclusive(true);
|
||||
button->set_action(*item->action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue