]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
no message
authorstv <stv@opencascade.com>
Wed, 21 Dec 2005 11:44:09 +0000 (11:44 +0000)
committerstv <stv@opencascade.com>
Wed, 21 Dec 2005 11:44:09 +0000 (11:44 +0000)
src/Qtx/QtxDblSpinBox.cxx

index d92cecf0f2edb91c9eb18a902c53503201e1426d..2feb800d9adeccf07e9ebe945e29275567c26f04 100755 (executable)
@@ -271,11 +271,13 @@ void QtxDblSpinBox::selectAll()
 
 bool QtxDblSpinBox::eventFilter( QObject* o, QEvent* e )
 {
-  if ( e->type() == QEvent::FocusOut && o == editor() )
-    updateDisplay();
-
   if ( !myCleared || o != editor() || !editor()->text().stripWhiteSpace().isEmpty() )
-    return QSpinBox::eventFilter( o, e );
+  {
+    bool res = QSpinBox::eventFilter( o, e );
+    if ( e->type() == QEvent::FocusOut && o == editor() )
+      updateDisplay();
+    return res;
+  }
 
   if ( e->type() == QEvent::FocusOut || e->type() == QEvent::Leave || e->type() == QEvent::Hide )
     return false;