mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-31 17:17:50 -05:00
Fix up keyboard shorcut on < Qt 5.10
This commit is contained in:
1 parent
af20545691
commit
3d3868e29d
24 files changed
+52
-50
No files matched your search
@@ -79,11 +79,11 @@ void RicToggleMeasurementModeFeature::setupActionLook(QAction* actionToSetup)
|
||||
auto* meas = measurement();
|
||||
if (meas && meas->measurementMode() == RimMeasurement::MEASURE_REGULAR)
|
||||
{
|
||||
actionToSetup->setShortcut(QKeySequence(Qt::Key_Escape));
|
||||
applyShortcutWithHintToAction(actionToSetup, QKeySequence(Qt::Key_Escape));
|
||||
}
|
||||
else
|
||||
{
|
||||
actionToSetup->setShortcut(QKeySequence());
|
||||
applyShortcutWithHintToAction(actionToSetup, QKeySequence());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,11 +148,11 @@ void RicTogglePolyMeasurementModeFeature::setupActionLook(QAction* actionToSetup
|
||||
auto* meas = measurement();
|
||||
if (meas && meas->measurementMode() == RimMeasurement::MEASURE_POLYLINE)
|
||||
{
|
||||
actionToSetup->setShortcut(QKeySequence(Qt::Key_Escape));
|
||||
applyShortcutWithHintToAction(actionToSetup, QKeySequence(Qt::Key_Escape));
|
||||
}
|
||||
else
|
||||
{
|
||||
actionToSetup->setShortcut(QKeySequence());
|
||||
applyShortcutWithHintToAction(actionToSetup, QKeySequence());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user