mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Ladybird: Move "Settings" from "File" to "Edit"
This commit is contained in:
parent
689954dfc1
commit
850b713889
Notes:
sideshowbarker
2024-07-17 14:33:07 +09:00
Author: https://github.com/Xexxa Commit: https://github.com/SerenityOS/serenity/commit/850b713889 Pull-request: https://github.com/SerenityOS/serenity/pull/19033
@ -49,11 +49,6 @@ BrowserWindow::BrowserWindow(Browser::CookieJar& cookie_jar, StringView webdrive
|
||||
new_tab_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::AddTab));
|
||||
menu->addAction(new_tab_action);
|
||||
|
||||
auto* settings_action = new QAction("&Settings", this);
|
||||
settings_action->setIcon(QIcon(QString("%1/res/icons/16x16/settings.png").arg(s_serenity_resource_root.characters())));
|
||||
settings_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::Preferences));
|
||||
menu->addAction(settings_action);
|
||||
|
||||
auto* close_current_tab_action = new QAction("Close Current Tab", this);
|
||||
close_current_tab_action->setIcon(QIcon(QString("%1/res/icons/16x16/close-tab.png").arg(s_serenity_resource_root.characters())));
|
||||
close_current_tab_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::Close));
|
||||
@ -77,6 +72,11 @@ BrowserWindow::BrowserWindow(Browser::CookieJar& cookie_jar, StringView webdrive
|
||||
edit_menu->addAction(m_select_all_action);
|
||||
QObject::connect(m_select_all_action, &QAction::triggered, this, &BrowserWindow::select_all);
|
||||
|
||||
auto* settings_action = new QAction("&Settings", this);
|
||||
settings_action->setIcon(QIcon(QString("%1/res/icons/16x16/settings.png").arg(s_serenity_resource_root.characters())));
|
||||
settings_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::Preferences));
|
||||
edit_menu->addAction(settings_action);
|
||||
|
||||
auto* view_menu = menuBar()->addMenu("&View");
|
||||
|
||||
auto* open_next_tab_action = new QAction("Open &Next Tab", this);
|
||||
|
Loading…
Reference in New Issue
Block a user