mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4176 Add keyboard shortcuts to show plot and main window
* Ctrl+Shift+P and Ctrl+Shift+3
This commit is contained in:
parent
9f5d098e14
commit
2c7ed49708
@ -62,5 +62,7 @@ void RicShowMainWindowFeature::onActionTriggered(bool isChecked)
|
|||||||
void RicShowMainWindowFeature::setupActionLook(QAction* actionToSetup)
|
void RicShowMainWindowFeature::setupActionLook(QAction* actionToSetup)
|
||||||
{
|
{
|
||||||
actionToSetup->setText("Open 3D Window");
|
actionToSetup->setText("Open 3D Window");
|
||||||
|
actionToSetup->setToolTip("Open 3D Window (Ctrl+Shift+3)");
|
||||||
actionToSetup->setIcon(QIcon(":/3DWindow24x24.png"));
|
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)
|
void RicShowPlotWindowFeature::setupActionLook(QAction* actionToSetup)
|
||||||
{
|
{
|
||||||
actionToSetup->setText("Open Plot Window");
|
actionToSetup->setText("Open Plot Window");
|
||||||
|
actionToSetup->setToolTip("Open Plot Window (Ctrl+Shift+P)");
|
||||||
actionToSetup->setIcon(QIcon(":/PlotWindow24x24.png"));
|
actionToSetup->setIcon(QIcon(":/PlotWindow24x24.png"));
|
||||||
|
applyShortcutWithHintToAction(actionToSetup, QKeySequence(tr("Ctrl+Shift+P")));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user