From d6d306a9f24bfb7e1ad0d612ab335cf7c0fb5c16 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 9 Sep 2015 16:06:55 +0300 Subject: [PATCH] Issue #905 Update of invalid feature representation in property panel Widget should not be in pink also. --- src/PartSet/PartSet_WidgetSketchLabel.cpp | 5 +++-- src/XGUI/XGUI_ErrorMgr.cpp | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 12d720a3c..44656f2ab 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -115,8 +115,10 @@ void PartSet_WidgetSketchLabel::onSelectionChanged() ModuleBase_ViewerPrs aPrs = aSelected.first(); bool aDone = ModuleBase_WidgetValidated::setSelection(aSelected, false); - if (aDone) + if (aDone) { updateByPlaneSelected(aPrs); + updateObject(myFeature); + } } void PartSet_WidgetSketchLabel::updateByPlaneSelected(const ModuleBase_ViewerPrs& thePrs) @@ -182,7 +184,6 @@ void PartSet_WidgetSketchLabel::updateByPlaneSelected(const ModuleBase_ViewerPrs //XGUI_Displayer* aDisp = workshop()->displayer(); //aDisp->closeLocalContexts(); emit planeSelected(plane()); - emit valuesChanged(); // after the plane is selected in the sketch, the sketch selection should be activated // it can not be performed in the sketch label widget because, we don't need to switch off // the selection by any label deactivation, but need to switch it off by stop the sketch diff --git a/src/XGUI/XGUI_ErrorMgr.cpp b/src/XGUI/XGUI_ErrorMgr.cpp index 1cf0d45b9..68e69b57a 100644 --- a/src/XGUI/XGUI_ErrorMgr.cpp +++ b/src/XGUI/XGUI_ErrorMgr.cpp @@ -86,9 +86,7 @@ void XGUI_ErrorMgr::updateActionState(QAction* theAction, const FeaturePtr& theF // update controls error information QWidget* aWidget = myPropertyPanel->headerWidget(); - if (theEnabled) - aWidget->setToolTip(""); - else + if (aWidget) aWidget->setToolTip(getFeatureError(theFeature)); } -- 2.39.2