mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 17:45:08 +00:00
LibGUI: Simplify submenu construction
The API for adding a submenu to a menu is now: auto& submenu = menu.add_submenu("Name"); submenu.add_action(my_action);
This commit is contained in:
parent
13dcd9a037
commit
f0cde70c18
9 changed files with 57 additions and 65 deletions
|
@ -42,8 +42,8 @@ public:
|
|||
};
|
||||
|
||||
MenuItem(unsigned menu_id, Type);
|
||||
MenuItem(unsigned menu_id, NonnullRefPtr<Action>&&);
|
||||
MenuItem(unsigned menu_id, NonnullRefPtr<Menu>&&);
|
||||
MenuItem(unsigned menu_id, NonnullRefPtr<Action>);
|
||||
MenuItem(unsigned menu_id, NonnullRefPtr<Menu>);
|
||||
~MenuItem();
|
||||
|
||||
Type type() const { return m_type; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue