From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konquest/int_validator.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'konquest/int_validator.cc') diff --git a/konquest/int_validator.cc b/konquest/int_validator.cc index 85fd1779..12f707c6 100644 --- a/konquest/int_validator.cc +++ b/konquest/int_validator.cc @@ -3,8 +3,8 @@ #include "int_validator.h" #include "int_validator.moc" -IntValidator::IntValidator( QWidget *parent, const char *name ) : - QValidator( parent, name ) +IntValidator::IntValidator( TQWidget *parent, const char *name ) : + TQValidator( parent, name ) { #ifdef INT_MIN v_bottom = INT_MIN; @@ -14,8 +14,8 @@ IntValidator::IntValidator( QWidget *parent, const char *name ) : v_top = INT_MIN; } -IntValidator::IntValidator( int bottom, int top, QWidget *parent, const char *name ) : -QValidator( parent, name ) +IntValidator::IntValidator( int bottom, int top, TQWidget *parent, const char *name ) : +TQValidator( parent, name ) { v_bottom = bottom; v_top = top; @@ -23,23 +23,23 @@ QValidator( parent, name ) IntValidator::~IntValidator() {} -QValidator::State -IntValidator::validate( QString &input, int & ) const +TQValidator::State +IntValidator::validate( TQString &input, int & ) const { if( input.isEmpty() ) { - return QValidator::Valid; + return TQValidator::Valid; } else { bool ok; int value = input.toInt( &ok ); if( !ok ) - return QValidator::Invalid; + return TQValidator::Invalid; if( value < v_bottom || value > v_top ) - return QValidator::Valid; + return TQValidator::Valid; - return QValidator::Acceptable; + return TQValidator::Acceptable; } } -- cgit v1.2.1