#4176 Add keyboard shortcuts to show plot and main window

* Ctrl+Shift+P and Ctrl+Shift+3
This commit is contained in:
Gaute Lindkvist committed 2019-03-27 13:17:04 +01:00
1 parent 9f5d098e14
commit 2c7ed49708
2 files changed
+4

No files matched your search

@@ -62,5 +62,7 @@ void RicShowMainWindowFeature::onActionTriggered(bool isChecked)
void RicShowMainWindowFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setText("Open 3D Window");
actionToSetup->setToolTip("Open 3D Window (Ctrl+Shift+3)");
actionToSetup->setIcon(QIcon(":/3DWindow24x24.png"));
applyShortcutWithHintToAction(actionToSetup, QKeySequence(tr("Ctrl+Shift+3")));
}
@@ -48,5 +48,7 @@ void RicShowPlotWindowFeature::onActionTriggered(bool isChecked)
void RicShowPlotWindowFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setText("Open Plot Window");
actionToSetup->setToolTip("Open Plot Window (Ctrl+Shift+P)");
actionToSetup->setIcon(QIcon(":/PlotWindow24x24.png"));
applyShortcutWithHintToAction(actionToSetup, QKeySequence(tr("Ctrl+Shift+P")));
}