Eneboo - Documentación para desarrolladores
|
#include <FLFieldDB.h>
Métodos públicos | |
FLDoubleValidator (QObject *parent, const char *name=0) | |
FLDoubleValidator (double bottom, double top, int decimals, QObject *parent, const char *name=0) | |
QValidator::State | validate (QString &input, int &) const |
FLDoubleValidator::FLDoubleValidator | ( | QObject * | parent, |
const char * | name = 0 |
||
) |
FLDoubleValidator::FLDoubleValidator | ( | double | bottom, |
double | top, | ||
int | decimals, | ||
QObject * | parent, | ||
const char * | name = 0 |
||
) |
QValidator::State FLDoubleValidator::validate | ( | QString & | input, |
int & | |||
) | const [virtual] |
Returns Acceptable
if the string input contains a double that is within the valid range and is in the correct format.
Returns Intermediate
if input contains a double that is outside the range or is in the wrong format, e.g. with too many digits after the decimal point or is empty.
Returns Invalid
if the input is not a double.
Note: If the valid range consists of just positive doubles (e.g. 0.0 - 100.0) and input is a negative double then Invalid is returned.
Reimplementado de QDoubleValidator.