From: nds Date: Mon, 25 Apr 2016 08:10:10 +0000 (+0300) Subject: Edit angle value by double click X-Git-Tag: V_2.3.0~114 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=90e1ea77dd8eafca04c6b0fa8183d9f9393c76e5;p=modules%2Fshaper.git Edit angle value by double click --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 2b19b4c70..9b9077efa 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -613,7 +613,8 @@ void PartSet_SketcherMgr::onMouseDoubleClick(ModuleBase_IViewWindow* theWnd, QMo QList aWidgets = aPanel->modelWidgets(); // Find corresponded widget to activate value editing foreach (ModuleBase_ModelWidget* aWgt, aWidgets) { - if (aWgt->attributeID() == "ConstraintValue") { + if (aWgt->attributeID() == SketchPlugin_Constraint::VALUE() || + aWgt->attributeID() == SketchPlugin_ConstraintAngle::ANGLE_VALUE_ID()) { PartSet_WidgetEditor* anEditor = dynamic_cast(aWgt); if (anEditor) anEditor->showPopupEditor();