From: Shaun Reich Date: Sun, 22 Feb 2009 17:06:15 +0000 (+0000) Subject: * Remove deprecated use of KTabBar::setCloseButtonEnabled(), use qt-provided method... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/7e7c14ba65bfc524d03bfce00d158010194e9534?ds=inline * 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 --- 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)),