Eneboo - Documentación para desarrolladores
|
#include <vdatetable.h>
Métodos públicos | |
VDateValidator (QWidget *parent=0, const char *name=0) | |
virtual State | validate (QString &, int &) const |
virtual void | fixup (QString &input) const |
State | date (const QString &, QDate &) const |
VDateValidator::VDateValidator | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
QValidator::State VDateValidator::date | ( | const QString & | text, |
QDate & | d | ||
) | const |
void VDateValidator::fixup | ( | QString & | input | ) | const [virtual] |
This function attempts to change input to be valid according to this validator's rules. It need not result in a valid string: callers of this function must re-test afterwards; the default does nothing.
Reimplementations of this function can change input even if they do not produce a valid string. For example, an ISBN validator might want to delete every character except digits and "-", even if the result is still not a valid ISBN; a surname validator might want to remove whitespace from the start and end of the string, even if the resulting string is not in the list of accepted surnames.
Reimplementado de QValidator.
QValidator::State VDateValidator::validate | ( | QString & | input, |
int & | pos | ||
) | const [virtual] |
This pure virtual function returns Invalid
if input is invalid according to this validator's rules, Intermediate
if it is likely that a little more editing will make the input acceptable (e.g. the user types '4' into a widget which accepts integers between 10 and 99) and Acceptable
if the input is valid.
The function can change input and pos (the cursor position) if it wants to.
Implementa QValidator.