mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 07:18:51 +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
Notes:
sideshowbarker
2024-07-19 07:11:54 +09:00
Author: https://github.com/awesomekling
Commit: f0cde70c18
9 changed files with 57 additions and 65 deletions
|
@ -54,7 +54,7 @@ public:
|
|||
|
||||
void add_action(NonnullRefPtr<Action>);
|
||||
void add_separator();
|
||||
void add_submenu(NonnullRefPtr<Menu>);
|
||||
Menu& add_submenu(const String& name);
|
||||
|
||||
void popup(const Gfx::Point& screen_position);
|
||||
void dismiss();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue