1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:57:45 +00:00

LibGUI: Add Menu column to CommandPalette :^)

This patch adds a new column to CommandPalette showing the menu an
action is part of
This commit is contained in:
networkException 2022-01-30 13:10:03 +01:00 committed by Andreas Kling
parent 1921a166e5
commit 4af973fec6
2 changed files with 31 additions and 4 deletions

View file

@ -118,6 +118,8 @@ public:
const ActionGroup* group() const { return m_action_group.ptr(); }
void set_group(Badge<ActionGroup>, ActionGroup*);
HashTable<MenuItem*> menu_items() const { return m_menu_items; }
private:
Action(String, Function<void(Action&)> = nullptr, Core::Object* = nullptr, bool checkable = false);
Action(String, const Shortcut&, Function<void(Action&)> = nullptr, Core::Object* = nullptr, bool checkable = false);