summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
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") );