30 #include <QDoubleValidator> 42 setValidator(
new QDoubleValidator(
this ));
43 connect(
this, SIGNAL( textEdited(
const QString& )),
this, SLOT(
updateValue() ));
53 float existing_text_value = locale.toFloat(text(), &ok );
54 if( !ok || existing_text_value != new_value )
56 setText( locale.toString((
double)
value_ ));
63 if( hasAcceptableInput() )
66 float new_value = QLocale().toFloat(text(), &ok );
FloatEdit(QWidget *parent=0)
virtual void setValue(float new_value)