diff options
author | networkException <git@nwex.de> | 2022-01-30 13:43:50 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-30 15:24:35 +0100 |
commit | f49948cc481222be804c50c6a5cb072a3eadd7b5 (patch) | |
tree | 30cd7933f353f011553913c54210a9235438f7fb /Userland/Libraries/LibGUI/Window.h | |
parent | 3a50ab3f4c1ec412ec25322cff52db7780db5fb4 (diff) | |
download | serenity-f49948cc481222be804c50c6a5cb072a3eadd7b5.zip |
LibGUI: Collect menu and submenu actions for CommandPalette
We now not only collect actions that are children of windows but also
all actions that are part of a window's menus and submenus :^)
Diffstat (limited to 'Userland/Libraries/LibGUI/Window.h')
-rw-r--r-- | Userland/Libraries/LibGUI/Window.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/Window.h b/Userland/Libraries/LibGUI/Window.h index e75a14cbb7..d340135650 100644 --- a/Userland/Libraries/LibGUI/Window.h +++ b/Userland/Libraries/LibGUI/Window.h @@ -219,6 +219,9 @@ public: void flush_pending_paints_immediately(); + Menubar& menubar() { return *m_menubar; } + Menubar const& menubar() const { return *m_menubar; } + protected: Window(Core::Object* parent = nullptr); virtual void wm_event(WMEvent&); |