QtxDoubleSpinBox* sb = spinBox();
if ( sb && !sb->isCleared() )
{
- bool hasFocus = sb->hasFocus();
+ /*bool hasFocus = sb->hasFocus();
if ( hasFocus )
- sb->clearFocus();
+ sb->clearFocus();*/
res = sb->text();
if ( !sb->suffix().isEmpty() )
if ( !sb->prefix().isEmpty() )
res.remove( res.indexOf( sb->prefix() ), sb->prefix().length() );
- if ( hasFocus )
- sb->setFocus();
+ /*if ( hasFocus )
+ sb->setFocus();*/
}
return res;
sb->setSingleStep( .1 );
sb->setMinimum( minValue().isEmpty() ? -DBL_MAX : minValue().toDouble() );
sb->setMaximum( maxValue().isEmpty() ? DBL_MAX : maxValue().toDouble() );
-}
+}
\ No newline at end of file