From c7bb4ef3b9817d800809f0d3a52e96914aa2c7d8 Mon Sep 17 00:00:00 2001 From: aqua Date: Tue, 23 Aug 2022 12:53:45 +0300 Subject: Add placeholder menus to main window --- src/rekonqwindow.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/rekonqwindow.cpp') diff --git a/src/rekonqwindow.cpp b/src/rekonqwindow.cpp index 34a8f5b5..4f3e57f1 100644 --- a/src/rekonqwindow.cpp +++ b/src/rekonqwindow.cpp @@ -29,12 +29,22 @@ RekonqWindow::RekonqWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::Re }); connect(ui->tabs, &TabBar::removeView, this, [this](RekonqView *view) { ui->views->removeWidget(view); }); - // connect actions + // connect menu actions + // file menu + connect(ui->actionQuit, &QAction::triggered, qApp, &QApplication::quit); + // edit menu + // view menu + // history menu + // bookmarks menu + // settings menu connect(ui->actionSettings, &QAction::triggered, this, [this]() { (new SettingsDialog(Application::instance()->settings(), this))->show(); }); connect(ui->actionTaskManager, &QAction::triggered, this, [this]() { (new TaskManager(this))->show(); }); + // help menu + connect(ui->actionAboutQt, &QAction::triggered, qApp, &QApplication::aboutQt); - connect(ui->newTab, &QToolButton::clicked, this, [this]() { Application::instance()->newView(QUrl(), this); }); + connect(ui->newTab, &QToolButton::clicked, this, + [this]() { Application::instance()->newView(QUrl("about:blank"), this); }); } RekonqWindow::~RekonqWindow() { delete ui; } -- cgit v1.2.1