mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
Ladybird: Fix build with Qt 6.2.4
This commit is contained in:
parent
7681ef25da
commit
303fda074a
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/303fda074a Pull-request: https://github.com/SerenityOS/serenity/pull/16583 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/linusg
1 changed files with 9 additions and 3 deletions
|
@ -19,9 +19,15 @@ BrowserWindow::BrowserWindow(Core::EventLoop& event_loop)
|
|||
m_tabs_container->setMovable(true);
|
||||
m_tabs_container->setTabsClosable(true);
|
||||
|
||||
auto menu = menuBar()->addMenu("File");
|
||||
auto new_tab_action = menu->addAction("New Tab", QKeySequence(Qt::CTRL | Qt::Key_T));
|
||||
auto quit_action = menu->addAction("Quit", QKeySequence(Qt::CTRL | Qt::Key_Q));
|
||||
auto* menu = menuBar()->addMenu("File");
|
||||
|
||||
auto* new_tab_action = new QAction("New Tab");
|
||||
new_tab_action->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_T));
|
||||
menu->addAction(new_tab_action);
|
||||
|
||||
auto* quit_action = new QAction("Quit");
|
||||
quit_action->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Q));
|
||||
menu->addAction(quit_action);
|
||||
|
||||
QObject::connect(new_tab_action, &QAction::triggered, this, &BrowserWindow::new_tab);
|
||||
QObject::connect(quit_action, &QAction::triggered, this, &QMainWindow::close);
|
||||
|
|
Loading…
Reference in a new issue