summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-10 19:38:30 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-10 19:38:30 +0200
commitebc27b8734167c9aad4900d9baffd426556d1376 (patch)
treeb748df06d4e9175b6960e7a8a9166299fdaac11d /src/mainview.cpp
parentno need for shortcuts in pointer menu.. (diff)
downloadrekonq-ebc27b8734167c9aad4900d9baffd426556d1376.tar.xz
Fixed tab moving, thanks to Qt 4.5 magic..
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 65400ace..c67d70a6 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -70,7 +70,6 @@ MainView::MainView(QWidget *parent)
connect(m_tabBar, SIGNAL(closeOtherTabs(int)), this, SLOT(slotCloseOtherTabs(int)));
connect(m_tabBar, SIGNAL(reloadTab(int)), this, SLOT(slotReloadTab(int)));
connect(m_tabBar, SIGNAL(reloadAllTabs()), this, SLOT(slotReloadAllTabs()));
- connect(m_tabBar, SIGNAL(tabMoveRequested(int, int)), this, SLOT(slotMoveTab(int, int)));
// Recently Closed Tab Action
m_recentlyClosedTabsMenu = new KMenu(this);
@@ -223,22 +222,6 @@ void MainView::clear()
}
-void MainView::slotMoveTab(int fromIndex, int toIndex)
-{
- disconnect(this, SIGNAL(currentChanged(int)), this, SLOT(slotCurrentChanged(int)));
-
- QWidget *tabWidget = widget(fromIndex);
- QIcon icon = tabIcon(fromIndex);
- QString text = tabText(fromIndex);
- QVariant data = m_tabBar->tabData(fromIndex);
- removeTab(fromIndex);
- insertTab(toIndex, tabWidget, icon, text);
- m_tabBar->setTabData(toIndex, data);
- connect(this, SIGNAL(currentChanged(int)), this, SLOT(slotCurrentChanged(int)));
- setCurrentIndex(toIndex);
-}
-
-
// When index is -1 index chooses the current tab
void MainView::slotReloadTab(int index)
{