mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user