mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4237 Fix build problem on Qt 4
This commit is contained in:
@@ -82,7 +82,7 @@ void RicToggleMeasurementModeFeature::setupActionLook(QAction* actionToSetup)
|
|||||||
auto* meas = measurement();
|
auto* meas = measurement();
|
||||||
if (meas && meas->measurementMode() == RimMeasurement::MEASURE_REGULAR)
|
if (meas && meas->measurementMode() == RimMeasurement::MEASURE_REGULAR)
|
||||||
{
|
{
|
||||||
applyShortcutWithHintToAction(actionToSetup, QKeySequence::Cancel);
|
applyShortcutWithHintToAction(actionToSetup, QKeySequence(Qt::Key_Escape));
|
||||||
applyShortcutWithHintToAction(actionToSetup, QKeySequence(tr("Ctrl+M")));
|
applyShortcutWithHintToAction(actionToSetup, QKeySequence(tr("Ctrl+M")));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -163,7 +163,7 @@ void RicTogglePolyMeasurementModeFeature::setupActionLook(QAction* actionToSetup
|
|||||||
auto* meas = measurement();
|
auto* meas = measurement();
|
||||||
if (meas && meas->measurementMode() == RimMeasurement::MEASURE_POLYLINE)
|
if (meas && meas->measurementMode() == RimMeasurement::MEASURE_POLYLINE)
|
||||||
{
|
{
|
||||||
applyShortcutWithHintToAction(actionToSetup, QKeySequence::Cancel);
|
applyShortcutWithHintToAction(actionToSetup, QKeySequence(Qt::Key_Escape));
|
||||||
applyShortcutWithHintToAction(actionToSetup, QKeySequence(tr("Ctrl+Shift+M")));
|
applyShortcutWithHintToAction(actionToSetup, QKeySequence(tr("Ctrl+Shift+M")));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user