summaryrefslogtreecommitdiffstats
path: root/kexi/kexidb/fieldvalidator.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/kexidb/fieldvalidator.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/kexidb/fieldvalidator.cpp')
-rw-r--r--kexi/kexidb/fieldvalidator.cpp14
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() );
}