From 2091b038ef2a23a85d30d056307b3c405c416256 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Thu, 21 Jan 2021 21:17:08 +1100 Subject: Added '+' button to tab bar --- src/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0bc4d90..1d9dfb0 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -15,6 +15,7 @@ #include "ioutil.hpp" #include "kristall.hpp" +#include "widgets/browsertabbar.hpp" #include "dialogs/certificatemanagementdialog.hpp" @@ -92,6 +93,10 @@ MainWindow::MainWindow(QApplication * app, QWidget *parent) : this->ui->favourites_view->setContextMenuPolicy(Qt::CustomContextMenu); this->ui->history_view->setContextMenuPolicy(Qt::CustomContextMenu); + + connect(this->ui->browser_tabs->tab_bar, &BrowserTabBar::on_newTabClicked, this, [this]() { + this->addEmptyTab(true, true); + }); } MainWindow::~MainWindow() -- cgit v1.2.3