mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 07:03:25 -06:00
#4176 Enable short cut text in copy/paste context menus
This commit is contained in:
parent
9306961df4
commit
af20545691
@ -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);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -96,6 +96,7 @@ void RicCopyReferencesToClipboardFeature::setupActionLook(QAction* actionToSetup
|
||||
actionToSetup->setText("Copy");
|
||||
actionToSetup->setIcon(QIcon(":/Copy.png"));
|
||||
actionToSetup->setShortcuts(QKeySequence::Copy);
|
||||
actionToSetup->setShortcutVisibleInContextMenu(true);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -83,6 +83,7 @@ void RicCutReferencesToClipboardFeature::setupActionLook(QAction* actionToSetup)
|
||||
actionToSetup->setText("Cut");
|
||||
actionToSetup->setIcon(QIcon(":/Clipboard.png"));
|
||||
actionToSetup->setShortcut(QKeySequence::Cut);
|
||||
actionToSetup->setShortcutVisibleInContextMenu(true);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -147,6 +147,7 @@ void RicPasteFeatureImpl::setIconAndShortcuts(QAction* action)
|
||||
{
|
||||
action->setIcon(QIcon(":/clipboard.png"));
|
||||
action->setShortcuts(QKeySequence::Paste);
|
||||
action->setShortcutVisibleInContextMenu(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user