+
+bool PartSet_WidgetSketchLabel::eventFilter(QObject* theObj, QEvent* theEvent)
+{
+ if (theObj == window()) {
+ int aType = theEvent->type();
+ if ((aType == QEvent::Hide) || (aType == QEvent::WindowDeactivate)) {
+ if (myPartSetMessage->isVisible())
+ myPartSetMessage->hide();
+ if (mySizeMessage->isVisible())
+ mySizeMessage->hide();
+ }
+ else if ((aType == QEvent::Show) || (aType == QEvent::WindowActivate))
+ onShowPanel();
+ }
+ return ModuleBase_WidgetValidated::eventFilter(theObj, theEvent);
+}
\ No newline at end of file