#1000 System : Added keyboard shortcuts for copy/paste actions

This commit is contained in:
Magne Sjaastad
2016-11-24 08:22:36 +01:00
parent a70939f1b6
commit 46c3c1d296
11 changed files with 37 additions and 12 deletions
@@ -34,6 +34,7 @@
#include <QClipboard>
#include <QString>
#include "QAction"
@@ -135,3 +136,15 @@ RimGeoMechCase* RicPasteFeatureImpl::findGeoMechCase(caf::PdmObjectHandle* objec
return geomCase;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicPasteFeatureImpl::setIconAndShortcuts(QAction* action)
{
if (action)
{
action->setIcon(QIcon(":/clipboard.png"));
action->setShortcuts(QKeySequence::Paste);
}
}