mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
Userland: Let applications make use of make_command_palette_action()
This commit is contained in:
parent
eb8c2bde90
commit
34acae90c7
Notes:
sideshowbarker
2024-07-17 05:07:16 +09:00
Author: https://github.com/demostanis
Commit: 34acae90c7
Pull-request: https://github.com/SerenityOS/serenity/pull/15596
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
45 changed files with 47 additions and 0 deletions
|
@ -279,6 +279,8 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, NonnullRefPtrVe
|
|||
},
|
||||
window());
|
||||
|
||||
m_search_action = GUI::CommonActions::make_command_palette_action(&parent_window);
|
||||
|
||||
m_about_action = GUI::CommonActions::make_about_action("Spreadsheet", GUI::Icon::default_icon("app-spreadsheet"sv), &parent_window);
|
||||
|
||||
toolbar.add_action(*m_new_action);
|
||||
|
@ -664,6 +666,7 @@ void SpreadsheetWidget::initialize_menubar(GUI::Window& window)
|
|||
edit_menu.add_action(*m_insert_emoji_action);
|
||||
|
||||
auto& help_menu = window.add_menu("&Help");
|
||||
help_menu.add_action(*m_search_action);
|
||||
help_menu.add_action(*m_functions_help_action);
|
||||
help_menu.add_action(*m_about_action);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue