Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
"2.11 Constraint with a point from the intersection between an outer edge and plane...
[modules/shaper.git]
/
src
/
PartSet
/
PartSet_WidgetPoint2dDistance.cpp
diff --git
a/src/PartSet/PartSet_WidgetPoint2dDistance.cpp
b/src/PartSet/PartSet_WidgetPoint2dDistance.cpp
index 829380cef043548846458c274782a0df8eecb46f..562604dc05578878b5ef62c137adebad2296788b 100644
(file)
--- a/
src/PartSet/PartSet_WidgetPoint2dDistance.cpp
+++ b/
src/PartSet/PartSet_WidgetPoint2dDistance.cpp
@@
-95,7
+95,10
@@
void PartSet_WidgetPoint2dDistance::onMouseRelease(ModuleBase_IViewWindow* theWn
std::shared_ptr<GeomAPI_Pnt2d> aPnt = std::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(aX, aY));
setPoint(feature(), aPnt);
std::shared_ptr<GeomAPI_Pnt2d> aPnt = std::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(aX, aY));
setPoint(feature(), aPnt);
- emit focusOutWidget(this);
+
+ // if the validator of the control returns false, focus should not be switched
+ if (getError().isEmpty())
+ emit focusOutWidget(this);
}
void PartSet_WidgetPoint2dDistance::onMouseMove(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent)
}
void PartSet_WidgetPoint2dDistance::onMouseMove(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent)
@@
-120,11
+123,9
@@
void PartSet_WidgetPoint2dDistance::onMouseMove(ModuleBase_IViewWindow* theWnd,
bool PartSet_WidgetPoint2dDistance::processEnter()
{
bool PartSet_WidgetPoint2dDistance::processEnter()
{
- //bool isModified = mySpinBox->isModified();
bool isModified = getValueState() == ModifiedInPP;
if (isModified) {
emit valuesChanged();
bool isModified = getValueState() == ModifiedInPP;
if (isModified) {
emit valuesChanged();
- //mySpinBox->clearModified();
mySpinBox->selectAll();
}
return isModified;
mySpinBox->selectAll();
}
return isModified;