From: nds Date: Wed, 15 Apr 2015 08:21:54 +0000 (+0300) Subject: parameters use: the mouse move/release should not be processed if the variable is... X-Git-Tag: V_1.1.0~29^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2882b3284c5b2ea9f118b0a97e0d4dce8e103c0a;p=modules%2Fshaper.git parameters use: the mouse move/release should not be processed if the variable is used in the double control --- diff --git a/src/PartSet/PartSet_WidgetPoint2dDistance.cpp b/src/PartSet/PartSet_WidgetPoint2dDistance.cpp index e8d24eb51..288fa3b95 100644 --- a/src/PartSet/PartSet_WidgetPoint2dDistance.cpp +++ b/src/PartSet/PartSet_WidgetPoint2dDistance.cpp @@ -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);