mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +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
Notes:
sideshowbarker
2024-07-19 07:25:03 +09:00
Author: https://github.com/awesomekling
Commit: 52a250cb61
28 changed files with 36 additions and 38 deletions
|
@ -341,7 +341,7 @@ TextEditorWidget::TextEditorWidget()
|
|||
m_line_wrapping_setting_action->set_checkable(true);
|
||||
m_line_wrapping_setting_action->set_checked(m_editor->is_line_wrapping_enabled());
|
||||
|
||||
auto menubar = make<GUI::MenuBar>();
|
||||
auto menubar = GUI::MenuBar::construct();
|
||||
auto& app_menu = menubar->add_menu("Text Editor");
|
||||
app_menu.add_action(*m_new_action);
|
||||
app_menu.add_action(*m_open_action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue