|
|
@obsolete Use KDoubleValidator
QValidator for floating point entry. Extends the QValidator class to properly validate double numeric data. This can be used by QLineEdit or subclass to provide validated text entry.
KFloatValidator ( QWidget * parent, const char * name = 0 )
| KFloatValidator |
Constructor.
KFloatValidator ( double bottom, double top, QWidget * parent, const char * name = 0 )
| KFloatValidator |
Constructor. Also sets the minimum and maximum values.
KFloatValidator ( double bottom, double top, bool localeAware, QWidget * parent, const char * name = 0 )
| KFloatValidator |
Constructor. Sets the validator to be locale aware if localeAware
is true.
~KFloatValidator ()
| ~KFloatValidator |
[virtual]
Destructs the validator.
State validate ( QString &, int & )
| validate |
[const virtual]
Validates the text, and return the result. Does not modify the parameters.
void fixup ( QString & )
| fixup |
[const virtual]
Fixes the text if possible, providing a valid string. The parameter may be modified.
Reimplemented from QValidator.
void setRange ( double bottom, double top )
| setRange |
[virtual]
Sets the minimum and maximum value allowed.
double bottom ()
| bottom |
[const virtual]
Returns the current minimum value allowed.
double top ()
| top |
[const virtual]
Returns the current maximum value allowed.
void setAcceptLocalizedNumbers (bool b)
| setAcceptLocalizedNumbers |
Sets the validator to be locale aware if is
true. In this case, the
character KLocale::decimalSymbol() from the global locale is recognized
as decimal separator.
bool acceptLocalizedNumbers ()
| acceptLocalizedNumbers |
[const]
Returns true if the validator is locale aware.
See also: setAcceptLocalizedNumbers().