From 107d9736bddcddaaf5a034cb8a6301409e68b38e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 14 Oct 2012 11:34:24 +0200 Subject: document mode Courtesy patch by Mathias CCMAIL: k.hias@gmx.de --- src/tabwindow/tabwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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())); -- cgit v1.2.1