From: stv Date: Wed, 21 Dec 2005 11:44:09 +0000 (+0000) Subject: no message X-Git-Tag: T_Before_Join_BR_3_1_0deb~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5a6605401f15caf8936b5d2fec5788aa55d78319;p=modules%2Fgui.git no message --- diff --git a/src/Qtx/QtxDblSpinBox.cxx b/src/Qtx/QtxDblSpinBox.cxx index d92cecf0f..2feb800d9 100755 --- a/src/Qtx/QtxDblSpinBox.cxx +++ b/src/Qtx/QtxDblSpinBox.cxx @@ -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;