Validator for integer numbers with possibility to fix up the invalid value.
#include <QtxValidator.h>
Constructor & Destructor Documentation
| QtxIntValidator::QtxIntValidator |
( |
QObject * |
parent | ) |
|
| QtxIntValidator::QtxIntValidator |
( |
const int |
bot, |
|
|
const int |
top, |
|
|
QObject * |
parent |
|
) |
| |
- Parameters:
-
| bot | minimum possible value |
| top | maximum possible value |
| parent | parent object |
| QtxIntValidator::~QtxIntValidator |
( |
| ) |
[virtual] |
Member Function Documentation
| void QtxIntValidator::fixup |
( |
QString & |
str | ) |
const [virtual] |
If the string represents integer value less then minimum value, it becomes equal to the minimum. if the string represents integer value more then mazimum value, it becomes equal to the maximum. If the string is not evaluated as integer it becomes equal to 0.
- Parameters:
-
| str | the string to be validated |