diff options
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b028913f..ef0a3951 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -134,7 +134,7 @@ MainWindow::MainWindow() m_bookmarksProvider->provideBmToolbar(bmToolbar); // setup Tab Bar - setupTabBar(); +// setupTabBar(); // setting up toolbars to NOT have context menu enabled setContextMenuPolicy(Qt::DefaultContextMenu); @@ -179,7 +179,6 @@ void MainWindow::setupActions() KAction *a; // Standard Actions - KStandardAction::openNew(this, SLOT(slotFileNew()) , actionCollection()); KStandardAction::open(this, SLOT(slotFileOpen()), actionCollection()); KStandardAction::saveAs(this, SLOT(slotFileSaveAs()), actionCollection()); KStandardAction::printPreview(this, SLOT(slotFilePrintPreview()), actionCollection()); @@ -283,22 +282,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() @@ -476,11 +475,11 @@ void MainWindow::slotUpdateWindowTitle(const QString &title) } -void MainWindow::slotFileNew() -{ - Application::instance()->newWebView(); - slotHome(); -} +// void MainWindow::slotFileNew() +// { +// Application::instance()->newWebView(); +// slotHome(); +// } void MainWindow::slotFileOpen() |