class KIntValidator
|
QValidator for integers. More... |
|
|
Public Methods
- KIntValidator ( QWidget * parent, int base = 10, const char * name = 0 )
- KIntValidator ( int bottom, int top, QWidget * parent, int base = 10, const char * name = 0 )
- virtual ~KIntValidator ()
- virtual State validate ( QString &, int & ) const
- virtual void fixup ( QString & ) const
- virtual void setRange ( int bottom, int top )
- virtual void setBase ( int base )
- virtual int bottom () const
- virtual int top () const
- virtual int base () const
Protected Members
- int _base
- int _min
- int _max
Detailed Description
QValidator for integers.
This can be used by QLineEdit or subclass to provide validated
text entry. Can be provided with a base value (default is 10), to allow
the proper entry of hexadecimal, octal, or any other base numeric data.
KIntValidator ( QWidget * parent, int base = 10, const char * name = 0 )
|
Constuctor. Also sets the base value.
KIntValidator ( int bottom, int top, QWidget * parent, int base = 10, const char * name = 0 )
|
Constuctor. Also sets the minimum, maximum, and numeric base values.
[virtual]
Destructor.
State validate ( QString &, int & )
|
[const virtual]
Validate the text, and return the result. Does not modify the paramaters.
[const virtual]
Fix the text if possible, providing a valid string. The parameter may be modified.
void setRange ( int bottom, int top )
|
[virtual]
Set the minimum and maximum values allowed.
void setBase ( int base )
|
[virtual]
Set the numeric base value.
[const virtual]
Return the current minimum value allowed.
[const virtual]
Return the current maximum value allowed.
[const virtual]
Return the current numeric base.
- Version: 0.0.1
- Author: Glen Parker <glenebob@nwlink.com>
- Generated: root@tantive.terraplex.com on Sun Feb 27 17:39:25 2000, using kdoc 2.0a33.