|
Eneboo - Documentación para desarrolladores
|
Métodos públicos | |
| QColIntValidator (int bottom, int top, QWidget *parent, const char *name=0) | |
| QValidator::State | validate (QString &, int &) const |
| QColIntValidator::QColIntValidator | ( | int | bottom, |
| int | top, | ||
| QWidget * | parent, | ||
| const char * | name = 0 |
||
| ) | [inline] |
| QValidator::State QColIntValidator::validate | ( | QString & | input, |
| int & | |||
| ) | const [virtual] |
Returns Acceptable if the input is an integer within the valid range, Intermediate if the input is an integer outside the valid range and Invalid if the input is not an integer.
Note: If the valid range consists of just positive integers (e.g. 32 - 100) and input is a negative integer then Invalid is returned.
int pos = 0; s = "abc"; v.validate( s, pos ); // returns Invalid s = "5"; v.validate( s, pos ); // returns Intermediate s = "50"; v.validate( s, pos ); // returns Valid
Reimplementado de QIntValidator.
1.7.4