┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorShaun Reich <[email protected]>2009-02-22 17:06:15 +0000
committerShaun Reich <[email protected]>2009-02-22 17:06:15 +0000
commit7e7c14ba65bfc524d03bfce00d158010194e9534 (patch)
treebf6115b8100f8913638cc4228e5555a24ffdcb3a /src/dolphinmainwindow.cpp
parente4f376d25a133894383f6f032cc69aad739698c6 (diff)
* 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
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
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)),