]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issues #2173, #2169: key release processing in global events listener(processing... BR_UNDOCKED_PROPERTY_PANEL
authornds <nds@opencascade.com>
Fri, 26 May 2017 17:03:34 +0000 (20:03 +0300)
committernds <nds@opencascade.com>
Fri, 26 May 2017 17:03:34 +0000 (20:03 +0300)
Circle, creation by three points click does not activate the first point control

src/ModuleBase/ModuleBase_ModelWidget.cpp

index 3194f9afc625296920c433340b6a3759e5821616..01eeccac4fd3e4de52231525e369edb932662dd7 100644 (file)
@@ -428,10 +428,10 @@ bool ModuleBase_ModelWidget::eventFilter(QObject* theObject, QEvent *theEvent)
     bool isWinFocus = aFocusEvent->reason() == Qt::ActiveWindowFocusReason;
     #endif
     Qt::FocusReason aReason = aFocusEvent->reason();
-    bool aMouseOrKey = aReason == Qt::MouseFocusReason/* ||
-                        //aReason == Qt::TabFocusReason ||
-                        //aReason == Qt::BacktabFocusReason /*||
-                        aReason == Qt::OtherFocusReason*/; // to process widget->setFocus()
+    bool aMouseOrKey = aReason == Qt::MouseFocusReason ||
+                        /*aReason == Qt::TabFocusReason ||
+                        //aReason == Qt::BacktabFocusReason ||*/
+                        aReason == Qt::OtherFocusReason; // to process widget->setFocus()
     if (aMouseOrKey && getControls().contains(aWidget)) {
     //if (getControls().contains(aWidget)) {
       emitFocusInWidget();