mirror of
https://github.com/KDE/konsole.git
synced 2026-05-03 12:15:33 -04:00
Move the code settings up 'split view' actions closer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user