|
|
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 |
Constuctor.
| KFloatValidator ( double bottom, double top, QWidget * parent, const char * name = 0 )
| KFloatValidator |
Constuctor. Also sets the minimum and maximum values.
| ~KFloatValidator ()
| ~KFloatValidator |
[virtual]
Destructor.
| State validate ( QString &, int & )
| validate |
[const virtual]
Validate the text, and return the result. Does not modify the paramaters.
Reimplemented from QValidator.
| void fixup ( QString & )
| fixup |
[const virtual]
Fix the text if possible, providing a valid string. The parameter may be modified.
Reimplemented from QValidator.
| void setRange ( double bottom, double top )
| setRange |
[virtual]
Set the minimum and maximum value allowed.
| double bottom ()
| bottom |
[const virtual]
Return the current minimum value allowed.
| double top ()
| top |
[const virtual]
Return the current maximum value allowed.
| double _min | _min |
[protected]
| double _max | _max |
[protected]