Eneboo - Documentación para desarrolladores
|
#include <FLFieldDB.h>
Métodos públicos | |
FLIntValidator (QObject *parent, const char *name=0) | |
FLIntValidator (int minimum, int maximum, QObject *parent, const char *name=0) | |
QValidator::State | validate (QString &input, int &) const |
FLIntValidator::FLIntValidator | ( | QObject * | parent, |
const char * | name = 0 |
||
) |
FLIntValidator::FLIntValidator | ( | int | minimum, |
int | maximum, | ||
QObject * | parent, | ||
const char * | name = 0 |
||
) |
QValidator::State FLIntValidator::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.