diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-08-23 12:53:45 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-09-05 23:07:42 +0300 |
commit | c7bb4ef3b9817d800809f0d3a52e96914aa2c7d8 (patch) | |
tree | bf8ddf8e13d0f652022aade80c63a0ec6d7b066c /src/rekonqwindow.cpp | |
parent | Add RekonqView_fake class (diff) | |
download | rekonq-c7bb4ef3b9817d800809f0d3a52e96914aa2c7d8.tar.xz |
Add placeholder menus to main window
Diffstat (limited to 'src/rekonqwindow.cpp')
-rw-r--r-- | src/rekonqwindow.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
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; } |