summaryrefslogtreecommitdiffstats
path: root/konquest/int_validator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'konquest/int_validator.cc')
-rw-r--r--konquest/int_validator.cc20
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;
}
}