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
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) | |
| Setups the validator for field. Does not keep a pointer to field. | |
| ~FieldValidator () | |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Setups the validator for field. Does not keep a pointer to field.
Definition at line 29 of file fieldvalidator.cpp. References KexiUtils::MultiValidator::addSubvalidator(), KexiDB::Field::BigInteger, KexiDB::Field::Boolean, KexiDB::Field::Byte, KexiDB::Field::Date, KexiDB::Field::DateTime, KexiDB::Field::Float, KexiDB::Field::Integer, KexiDB::Field::isFPNumericType(), KexiDB::Field::isIntegerType(), KexiDB::Field::isUnsigned(), KexiDB::Field::scale(), KexiDB::Field::ShortInteger, KexiDB::Field::Time, and KexiDB::Field::type(). |
|
|
Definition at line 97 of file fieldvalidator.cpp. |
The documentation for this class was generated from the following files:
