kexi
KexiDB::FieldValidator Class Reference
#include <fieldvalidator.h>
Inheritance diagram for KexiDB::FieldValidator:

Detailed Description
A validator for KexiDB data types.This can be used by QLineEdit or subclass to provide validated text entry. Curently is supports all integer types, floating point types and booleans. Internal validators like KIntValidator or KexiUtils::LongLongValidator are used. 'unsigned' and 'scale' parameters are taken into account when setting up internal validators.
- Todo:
- date/time support for types
- Todo:
- add validation of the maximum length and other field's properties
Definition at line 39 of file fieldvalidator.h.
Public Member Functions | |
FieldValidator (const Field &field, QWidget *parent, const char *name=0) |
Constructor & Destructor Documentation
FieldValidator::FieldValidator | ( | const Field & | field, | |
QWidget * | parent, | |||
const char * | name = 0 | |||
) |
Setups the validator for field. Does not keep a pointer to field.
- Todo:
- merge this code with KexiTableEdit code!
- Todo:
- set maximum length validator
- Todo:
- handle input mask (via QLineEdit::setInputMask()
- Todo:
- handle unsigned (using ULongLongValidator)
- Todo:
- add validator
- Todo:
- add validator
- Todo:
- add BooleanValidator
Definition at line 29 of file fieldvalidator.cpp.
The documentation for this class was generated from the following files: