#3935 Measurements : Add Esc button to abort measurement mode

This commit is contained in:
Magne Sjaastad
2019-01-08 14:51:45 +01:00
parent f099b8a747
commit 20f9bf4318
8 changed files with 184 additions and 18 deletions

View File

@@ -871,21 +871,21 @@ void RiuMainWindow::slotRefreshViewActions()
updateScaleValue();
QStringList commandIds;
commandIds << "RicLinkVisibleViewsFeature"
<< "RicTileWindowsFeature"
<< "RicTogglePerspectiveViewFeature"
<< "RicViewZoomAllFeature";
caf::CmdFeatureManager::instance()->refreshEnabledState(commandIds);
caf::CmdFeatureManager* cmdFeatureMgr = caf::CmdFeatureManager::instance();
auto feature = dynamic_cast<RicToggleMeasurementModeFeature*>(
cmdFeatureMgr->getCommandFeature("RicToggleMeasurementModeFeature"));
if (feature)
{
feature->refreshActionLook();
QStringList commandIds;
commandIds << "RicLinkVisibleViewsFeature"
<< "RicTileWindowsFeature"
<< "RicTogglePerspectiveViewFeature"
<< "RicViewZoomAllFeature";
caf::CmdFeatureManager::instance()->refreshEnabledState(commandIds);
}
{
QStringList commandIds;
commandIds << "RicToggleMeasurementModeFeature";
caf::CmdFeatureManager::instance()->refreshCheckedState(commandIds);
}
}