diff options
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 17 |
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) { |