summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-11 19:10:28 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-11 19:10:28 +0200
commit3f6b179bb3004ee6d5df4e5039e90b7e5c53a8de (patch)
tree1a5c609ed16a879754241ac3c10caf1e5118b78f /src
parentremoved webkit debug comments (diff)
downloadrekonq-3f6b179bb3004ee6d5df4e5039e90b7e5c53a8de.tar.xz
Fixed lineEdits tabs movements (each site, its url..)
Diffstat (limited to 'src')
-rw-r--r--src/mainview.cpp10
-rw-r--r--src/mainview.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index c67d70a6..3b5db52e 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -70,6 +70,7 @@ 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(tabMoved(int,int)), this, SLOT(moveTab(int,int)));
// Recently Closed Tab Action
m_recentlyClosedTabsMenu = new KMenu(this);
@@ -665,3 +666,12 @@ void MainView::previousTab()
next = count() - 1;
setCurrentIndex(next);
}
+
+
+void MainView::moveTab(int fromIndex, int toIndex)
+{
+ QWidget *lineEdit = m_lineEdits->widget(fromIndex);
+ m_lineEdits->removeWidget(lineEdit);
+ m_lineEdits->insertWidget(toIndex, lineEdit);
+}
+
diff --git a/src/mainview.h b/src/mainview.h
index 9085aa46..617d81db 100644
--- a/src/mainview.h
+++ b/src/mainview.h
@@ -132,6 +132,8 @@ private slots:
private:
+ void moveTab(int fromIndex, int toIndex);
+
KAction *m_recentlyClosedTabsAction;
KMenu *m_recentlyClosedTabsMenu;