From 7e7c14ba65bfc524d03bfce00d158010194e9534 Mon Sep 17 00:00:00 2001 From: Shaun Reich Date: Sun, 22 Feb 2009 17:06:15 +0000 Subject: [PATCH] * Remove deprecated use of KTabBar::setCloseButtonEnabled(), use qt-provided method-QTabBar::setTabsClosable(). * Enable dragging of tabs thanks to the new feature in Qt 4.5, QTabBar::setMovable(), now that the KTabBar has been ported. The dragging is a very neat effect. BUG: 164313 svn path=/trunk/KDE/kdebase/apps/; revision=930077 --- src/dolphinmainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 697fba85f..5ebb08f3e 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -894,7 +894,8 @@ void DolphinMainWindow::init() m_actionHandler->setCurrentView(view); m_tabBar = new KTabBar(this); - m_tabBar->setCloseButtonEnabled(true); + m_tabBar->setMovable(true); + m_tabBar->setTabsClosable(true); connect(m_tabBar, SIGNAL(currentChanged(int)), this, SLOT(setActiveTab(int))); connect(m_tabBar, SIGNAL(closeRequest(int)), -- 2.47.3