summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-10-14 11:34:24 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commit107d9736bddcddaaf5a034cb8a6301409e68b38e (patch)
tree2dc236ba5ff1695289a1b74c73c1f127fc257703 /src
parentRestoring pinned tabs, yeah!!!! :D (diff)
downloadrekonq-107d9736bddcddaaf5a034cb8a6301409e68b38e.tar.xz
document mode
Courtesy patch by Mathias CCMAIL: k.hias@gmx.de
Diffstat (limited to 'src')
-rw-r--r--src/tabwindow/tabwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp
index 203da30a..bc43085d 100644
--- a/src/tabwindow/tabwindow.cpp
+++ b/src/tabwindow/tabwindow.cpp
@@ -78,6 +78,9 @@ TabWindow::TabWindow(bool withTab, bool PrivateBrowsingMode, QWidget *parent)
// setting tabbar
TabBar *tabBar = new TabBar(this);
setTabBar(tabBar);
+
+ // sets document mode; this removes the frame around the tabs
+ setDocumentMode(true);
// connecting tabbar signals
connect(tabBar, SIGNAL(tabCloseRequested(int)), this, SLOT(closeTab(int)));
@@ -98,6 +101,7 @@ TabWindow::TabWindow(bool withTab, bool PrivateBrowsingMode, QWidget *parent)
KAction* a = new KAction(KIcon("tab-new"), i18n("New &Tab"), this);
_addTabButton->setDefaultAction(a);
_addTabButton->setAutoRaise(true);
+ _addTabButton->raise();
_addTabButton->setToolButtonStyle(Qt::ToolButtonIconOnly);
connect(_addTabButton, SIGNAL(triggered(QAction *)), this, SLOT(newCleanTab()));