diff options
-rw-r--r-- | src/mainwindow.cpp | 34 | ||||
-rw-r--r-- | src/mainwindow.h | 2 |
2 files changed, 18 insertions, 18 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0b6bb738..54c5ab77 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -137,7 +137,7 @@ MainWindow::MainWindow() m_bookmarksProvider->provideBmToolbar(bmToolbar); // setup Tab Bar - setupTabBar(); +// setupTabBar(); // setting up toolbars to NOT have context menu enabled setContextMenuPolicy(Qt::DefaultContextMenu); @@ -285,22 +285,22 @@ void MainWindow::setupActions() } -void MainWindow::setupTabBar() -{ - // Left corner button - QToolButton *addTabButton = new QToolButton(this); - addTabButton->setDefaultAction(actionCollection()->action("new_tab")); - addTabButton->setAutoRaise(true); - addTabButton->setToolButtonStyle(Qt::ToolButtonIconOnly); - m_view->setCornerWidget(addTabButton, Qt::TopLeftCorner); - - // right corner button - QToolButton *closeTabButton = new QToolButton(this); - closeTabButton->setDefaultAction(actionCollection()->action("close_tab")); - closeTabButton->setAutoRaise(true); - closeTabButton->setToolButtonStyle(Qt::ToolButtonIconOnly); - m_view->setCornerWidget(closeTabButton, Qt::TopRightCorner); -} +// void MainWindow::setupTabBar() +// { +// // Left corner button +// QToolButton *addTabButton = new QToolButton(this); +// addTabButton->setDefaultAction(actionCollection()->action("new_tab")); +// addTabButton->setAutoRaise(true); +// addTabButton->setToolButtonStyle(Qt::ToolButtonIconOnly); +// m_view->setCornerWidget(addTabButton, Qt::TopLeftCorner); +// +// // right corner button +// QToolButton *closeTabButton = new QToolButton(this); +// closeTabButton->setDefaultAction(actionCollection()->action("close_tab")); +// closeTabButton->setAutoRaise(true); +// closeTabButton->setToolButtonStyle(Qt::ToolButtonIconOnly); +// m_view->setCornerWidget(closeTabButton, Qt::TopRightCorner); +// } void MainWindow::setupHistoryMenu() diff --git a/src/mainwindow.h b/src/mainwindow.h index 372d90a1..dc01d990 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -63,7 +63,7 @@ public: private: void setupActions(); void setupHistoryMenu(); - void setupTabBar(); +// void setupTabBar(); void setupToolBars(); public slots: |