From 5a6605401f15caf8936b5d2fec5788aa55d78319 Mon Sep 17 00:00:00 2001 From: stv Date: Wed, 21 Dec 2005 11:44:09 +0000 Subject: [PATCH] no message --- src/Qtx/QtxDblSpinBox.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; -- 2.39.2