mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 02:28:12 +00:00
LibGUI: Make MenuBar a Core::Object
This makes it show up in Inspector with all the menus inside it. :^)
This commit is contained in:
parent
a19690170f
commit
52a250cb61
28 changed files with 36 additions and 38 deletions
|
@ -45,7 +45,7 @@ public:
|
|||
int exec();
|
||||
void quit(int = 0);
|
||||
|
||||
void set_menubar(OwnPtr<MenuBar>&&);
|
||||
void set_menubar(RefPtr<MenuBar>);
|
||||
Action* action_for_key_event(const KeyEvent&);
|
||||
|
||||
void register_global_shortcut_action(Badge<Action>, Action&);
|
||||
|
@ -70,7 +70,7 @@ public:
|
|||
|
||||
private:
|
||||
OwnPtr<Core::EventLoop> m_event_loop;
|
||||
OwnPtr<MenuBar> m_menubar;
|
||||
RefPtr<MenuBar> m_menubar;
|
||||
RefPtr<Gfx::PaletteImpl> m_palette;
|
||||
RefPtr<Gfx::PaletteImpl> m_system_palette;
|
||||
HashMap<Shortcut, Action*> m_global_shortcut_actions;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue