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 );
else
editor()->setSelection( prefix().length(), editor()->text().length() - prefix().length() - suffix().length() );
}
+ else
+ editor()->setCursorPosition( 0 );
myBlocked = isBlock;
}