]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
parameters use: the mouse move/release should not be processed if the variable is...
authornds <natalia.donis@opencascade.com>
Wed, 15 Apr 2015 08:21:54 +0000 (11:21 +0300)
committernds <natalia.donis@opencascade.com>
Wed, 15 Apr 2015 08:21:54 +0000 (11:21 +0300)
src/PartSet/PartSet_WidgetPoint2dDistance.cpp

index e8d24eb51421f612c0b514c7d61b8263a460a667..288fa3b95a50589d221f69b3e0dcc622c8968a2b 100644 (file)
@@ -94,6 +94,9 @@ void PartSet_WidgetPoint2dDistance::onMouseRelease(ModuleBase_IViewWindow* theWn
   if (theEvent->button() != Qt::LeftButton)
     return;
 
+  if (mySpinBox->hasVariable())
+    return;
+
   gp_Pnt aPoint = PartSet_Tools::convertClickToPoint(theEvent->pos(), theWnd->v3dView());
 
   double aX, aY;
@@ -106,6 +109,9 @@ void PartSet_WidgetPoint2dDistance::onMouseRelease(ModuleBase_IViewWindow* theWn
 
 void PartSet_WidgetPoint2dDistance::onMouseMove(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent)
 {
+  if (mySpinBox->hasVariable())
+    return;
+
   myWorkshop->operationMgr()->setLockValidating(true);
   myWorkshop->operationMgr()->setApplyEnabled(false);