mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#1000 System : Added keyboard shortcuts for copy/paste actions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user