#4176 Enable short cut text in copy/paste context menus

This commit is contained in:
Gaute Lindkvist 2019-03-27 10:29:06 +01:00
parent 9306961df4
commit af20545691
4 changed files with 5 additions and 2 deletions

View File

@ -84,8 +84,8 @@ void RicPasteGridCrossPlotCurveSetFeature::onActionTriggered(bool isChecked)
//--------------------------------------------------------------------------------------------------
void RicPasteGridCrossPlotCurveSetFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setText("Paste Grid Cross Plot Curve Set");
// actionToSetup->setIcon(QIcon(":/WellLogCurve16x16.png"));
actionToSetup->setText("Paste Cross Plot Curve Set");
RicPasteFeatureImpl::setIconAndShortcuts(actionToSetup);
}
//--------------------------------------------------------------------------------------------------

View File

@ -96,6 +96,7 @@ void RicCopyReferencesToClipboardFeature::setupActionLook(QAction* actionToSetup
actionToSetup->setText("Copy");
actionToSetup->setIcon(QIcon(":/Copy.png"));
actionToSetup->setShortcuts(QKeySequence::Copy);
actionToSetup->setShortcutVisibleInContextMenu(true);
}
//--------------------------------------------------------------------------------------------------

View File

@ -83,6 +83,7 @@ void RicCutReferencesToClipboardFeature::setupActionLook(QAction* actionToSetup)
actionToSetup->setText("Cut");
actionToSetup->setIcon(QIcon(":/Clipboard.png"));
actionToSetup->setShortcut(QKeySequence::Cut);
actionToSetup->setShortcutVisibleInContextMenu(true);
}
//--------------------------------------------------------------------------------------------------

View File

@ -147,6 +147,7 @@ void RicPasteFeatureImpl::setIconAndShortcuts(QAction* action)
{
action->setIcon(QIcon(":/clipboard.png"));
action->setShortcuts(QKeySequence::Paste);
action->setShortcutVisibleInContextMenu(true);
}
}