diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-12-16 15:24:53 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-12-16 15:24:53 +0100 |
commit | 6b3531099f72a7f460c15312707b65ca0415cfe4 (patch) | |
tree | 5f1c9719c6d948bddee6260aeda6b6596d4ff1d9 /src/tabbar.cpp | |
parent | Cleaner file management (diff) | |
download | rekonq-6b3531099f72a7f460c15312707b65ca0415cfe4.tar.xz |
detach tab action
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r-- | src/tabbar.cpp | 7 |
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") ); |