From fa7fb637fffed64ff9ac93529b3d25f0057458ff Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Mon, 12 Mar 2012 15:52:52 +0800 Subject: [PATCH] Move the code settings up 'split view' actions closer --- src/ViewManager.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp index 0db3c83b7..685536b22 100644 --- a/src/ViewManager.cpp +++ b/src/ViewManager.cpp @@ -189,16 +189,6 @@ void ViewManager::setupActions() multiViewOnlyActions << closeOtherAction; - KAction* detachViewAction = collection->addAction("detach-view"); - detachViewAction->setIcon(KIcon("tab-detach")); - detachViewAction->setText(i18nc("@action:inmenu", "D&etach Current Tab")); - // Ctrl+Shift+D is not used as a shortcut by default because it is too close - // to Ctrl+D - which will terminate the session in many cases - detachViewAction->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_H)); - - connect(this , SIGNAL(splitViewToggle(bool)) , this , SLOT(updateDetachViewState())); - connect(detachViewAction , SIGNAL(triggered()) , this , SLOT(detachActiveView())); - // Expand & Shrink Active View KAction* expandActiveAction = new KAction(i18nc("@action:inmenu", "Expand View") , this); expandActiveAction->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_BracketRight)); @@ -216,6 +206,16 @@ void ViewManager::setupActions() multiViewOnlyActions << shrinkActiveAction; + KAction* detachViewAction = collection->addAction("detach-view"); + detachViewAction->setIcon(KIcon("tab-detach")); + detachViewAction->setText(i18nc("@action:inmenu", "D&etach Current Tab")); + // Ctrl+Shift+D is not used as a shortcut by default because it is too close + // to Ctrl+D - which will terminate the session in many cases + detachViewAction->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_H)); + + connect(this , SIGNAL(splitViewToggle(bool)) , this , SLOT(updateDetachViewState())); + connect(detachViewAction , SIGNAL(triggered()) , this , SLOT(detachActiveView())); + // Next / Previous View , Next Container collection->addAction("next-view", nextViewAction); collection->addAction("previous-view", previousViewAction);