From 2d22602339786c419fbd57e97950a8f963cc0af1 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 26 May 2017 20:03:34 +0300 Subject: [PATCH] Issues #2173, #2169: key release processing in global events listener(processing Tab/Backward Tab) Circle, creation by three points click does not activate the first point control --- src/ModuleBase/ModuleBase_ModelWidget.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ModuleBase/ModuleBase_ModelWidget.cpp b/src/ModuleBase/ModuleBase_ModelWidget.cpp index 3194f9afc..01eeccac4 100644 --- a/src/ModuleBase/ModuleBase_ModelWidget.cpp +++ b/src/ModuleBase/ModuleBase_ModelWidget.cpp @@ -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(); -- 2.39.2