diff options
Diffstat (limited to 'kexi/kexidb/fieldvalidator.cpp')
-rw-r--r-- | kexi/kexidb/fieldvalidator.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kexi/kexidb/fieldvalidator.cpp b/kexi/kexidb/fieldvalidator.cpp index e657d2fa..d9252c20 100644 --- a/kexi/kexidb/fieldvalidator.cpp +++ b/kexi/kexidb/fieldvalidator.cpp @@ -22,19 +22,19 @@ #include <kexiutils/longlongvalidator.h> #include <knumvalidator.h> -#include <qwidget.h> +#include <tqwidget.h> using namespace KexiDB; -FieldValidator::FieldValidator( const Field &field, QWidget * parent, const char * name ) - : KexiUtils::MultiValidator(parent, name) +FieldValidator::FieldValidator( const Field &field, TQWidget * tqparent, const char * name ) + : KexiUtils::MultiValidator(TQT_TQOBJECT(tqparent), name) { //! @todo merge this code with KexiTableEdit code! //! @todo set maximum length validator -//! @todo handle input mask (via QLineEdit::setInputMask() +//! @todo handle input tqmask (via TQLineEdit::setInputMask() const Field::Type t = field.type(); if (field.isIntegerType()) { - QValidator *validator = 0; + TQValidator *validator = 0; const bool u = field.isUnsigned(); int bottom, top; if (t==Field::Byte) { @@ -59,7 +59,7 @@ FieldValidator::FieldValidator( const Field &field, QWidget * parent, const char addSubvalidator( validator ); } else if (field.isFPNumericType()) { - QValidator *validator; + TQValidator *validator; if (t==Field::Float) { if (field.isUnsigned()) //ok? validator = new KDoubleValidator(0, 3.4e+38, field.scale(), 0); @@ -76,7 +76,7 @@ FieldValidator::FieldValidator( const Field &field, QWidget * parent, const char } else if (t==Field::Date) { //! @todo add validator -// QValidator *validator = new KDateValidator(this); +// TQValidator *validator = new KDateValidator(this); // setValidator( validator ); //moved setInputMask( dateFormatter()->inputMask() ); } |