#4237 Fix build problem on Qt 4

This commit is contained in:
Gaute Lindkvist 2019-03-27 14:58:08 +01:00
parent b08504fe05
commit 11b078c1a9

View File

@ -82,7 +82,7 @@ void RicToggleMeasurementModeFeature::setupActionLook(QAction* actionToSetup)
auto* meas = measurement();
if (meas && meas->measurementMode() == RimMeasurement::MEASURE_REGULAR)
{
applyShortcutWithHintToAction(actionToSetup, QKeySequence::Cancel);
applyShortcutWithHintToAction(actionToSetup, QKeySequence(Qt::Key_Escape));
applyShortcutWithHintToAction(actionToSetup, QKeySequence(tr("Ctrl+M")));
}
else
@ -163,7 +163,7 @@ void RicTogglePolyMeasurementModeFeature::setupActionLook(QAction* actionToSetup
auto* meas = measurement();
if (meas && meas->measurementMode() == RimMeasurement::MEASURE_POLYLINE)
{
applyShortcutWithHintToAction(actionToSetup, QKeySequence::Cancel);
applyShortcutWithHintToAction(actionToSetup, QKeySequence(Qt::Key_Escape));
applyShortcutWithHintToAction(actionToSetup, QKeySequence(tr("Ctrl+Shift+M")));
}
else