summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-12-16 15:24:53 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-12-16 15:24:53 +0100
commit6b3531099f72a7f460c15312707b65ca0415cfe4 (patch)
tree5f1c9719c6d948bddee6260aeda6b6596d4ff1d9 /src/tabbar.cpp
parentCleaner file management (diff)
downloadrekonq-6b3531099f72a7f460c15312707b65ca0415cfe4.tar.xz
detach tab action
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index ada879a3..12745772 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -140,6 +140,12 @@ void TabBar::reloadTab()
}
+void TabBar::detachTab()
+{
+ emit detachTab(m_actualIndex);
+}
+
+
void TabBar::showTabPreview(int tab)
{
MainView *mv = qobject_cast<MainView *>(parent());
@@ -249,6 +255,7 @@ void TabBar::contextMenu(int tab, const QPoint &pos)
menu.addAction(mainWindow->actionByName(QLatin1String("new_tab")));
menu.addAction( mainWindow->actionByName("clone_tab") );
+ menu.addAction( mainWindow->actionByName("detach_tab") );
menu.addSeparator();
menu.addAction( mainWindow->actionByName("close_tab") );
menu.addAction( mainWindow->actionByName("close_other_tabs") );