From: nds Date: Thu, 22 May 2014 13:14:56 +0000 (+0400) Subject: Implementation of mechanism of grouping of messages X-Git-Tag: V_0.2~26^2~1^2^2^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6efbb487078ba0dd475dcd0447c0aadb879429a;p=modules%2Fshaper.git Implementation of mechanism of grouping of messages flush on to the property panel value change --- diff --git a/src/ModuleBase/ModuleBase_Operation.cpp b/src/ModuleBase/ModuleBase_Operation.cpp index 313ad4d9b..a513205e1 100644 --- a/src/ModuleBase/ModuleBase_Operation.cpp +++ b/src/ModuleBase/ModuleBase_Operation.cpp @@ -50,6 +50,7 @@ void ModuleBase_Operation::storeReal(double theValue) boost::shared_ptr aData = myFeature->data(); boost::shared_ptr aReal = aData->real(anId.toStdString()); aReal->setValue(theValue); + Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_FEATURE_UPDATED)); } void ModuleBase_Operation::storeCustomValue() diff --git a/src/ModuleBase/ModuleBase_WidgetPoint2D.cpp b/src/ModuleBase/ModuleBase_WidgetPoint2D.cpp index d0ce1b11e..4d99d01be 100644 --- a/src/ModuleBase/ModuleBase_WidgetPoint2D.cpp +++ b/src/ModuleBase/ModuleBase_WidgetPoint2D.cpp @@ -6,6 +6,9 @@ #include +#include +#include + #include #include #include @@ -68,6 +71,8 @@ bool ModuleBase_WidgetPoint2D::storeValue(boost::shared_ptr th bool isBlocked = this->blockSignals(true); aPoint->setValue(myXSpin->value(), myYSpin->value()); + Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_FEATURE_UPDATED)); + this->blockSignals(isBlocked); return true; }