class KIntValidator |
|
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.
Author Glen Parker |
|
Constuctor. Also sets the base value. |
|
Constructor. Also sets the minimum, maximum, and numeric base values. |
|
|
Returns the current numeric base. |
|
Returns the current minimum value allowed. |
|
Fixes the text if possible, providing a valid string. The parameter may be modified. |
|
Sets the numeric base value. base must be between 2 and 36. |
|
Sets the minimum and maximum values allowed. If top is greater than bottom, it is set to the value of bottom. |
|
Returns the current maximum value allowed. |
|
Validates the text, and return the result. Does not modify the parameters. |