diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /konquest/int_validator.cc | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konquest/int_validator.cc')
-rw-r--r-- | konquest/int_validator.cc | 20 |
1 files changed, 10 insertions, 10 deletions
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; } } |