]> cloud.milkyroute.net Git - dolphin.git/commitdiff
* Remove deprecated use of KTabBar::setCloseButtonEnabled(), use qt-provided method...
authorShaun Reich <shaun.reich@kdemail.net>
Sun, 22 Feb 2009 17:06:15 +0000 (17:06 +0000)
committerShaun Reich <shaun.reich@kdemail.net>
Sun, 22 Feb 2009 17:06:15 +0000 (17:06 +0000)
* 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

index 697fba85fcb8a2ac823a74ee506e7935dfce8c6a..5ebb08f3eb7acf10b770f259b09d074efbb845a1 100644 (file)
@@ -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)),