summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/asciivalidator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/asciivalidator.cpp')
-rw-r--r--kdevdesigner/designer/asciivalidator.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kdevdesigner/designer/asciivalidator.cpp b/kdevdesigner/designer/asciivalidator.cpp
index 7642d47f..695b2292 100644
--- a/kdevdesigner/designer/asciivalidator.cpp
+++ b/kdevdesigner/designer/asciivalidator.cpp
@@ -26,20 +26,20 @@
#include "asciivalidator.h"
-#include <qstring.h>
+#include <tqstring.h>
-AsciiValidator::AsciiValidator( QObject * parent, const char *name )
- : QValidator( parent, name ), functionName( FALSE )
+AsciiValidator::AsciiValidator( TQObject * parent, const char *name )
+ : TQValidator( parent, name ), functionName( FALSE )
{
}
-AsciiValidator::AsciiValidator( bool funcName, QObject * parent, const char *name )
- : QValidator( parent, name ), functionName( funcName )
+AsciiValidator::AsciiValidator( bool funcName, TQObject * parent, const char *name )
+ : TQValidator( parent, name ), functionName( funcName )
{
}
-AsciiValidator::AsciiValidator( const QString &allow, QObject * parent, const char *name )
- : QValidator( parent, name ), functionName( FALSE ), allowedChars( allow )
+AsciiValidator::AsciiValidator( const TQString &allow, TQObject * parent, const char *name )
+ : TQValidator( parent, name ), functionName( FALSE ), allowedChars( allow )
{
}
@@ -47,7 +47,7 @@ AsciiValidator::~AsciiValidator()
{
}
-QValidator::State AsciiValidator::validate( QString &s, int & ) const
+TQValidator::State AsciiValidator::validate( TQString &s, int & ) const
{
bool inParen = FALSE;
bool outParen = FALSE;
@@ -58,11 +58,11 @@ QValidator::State AsciiValidator::validate( QString &s, int & ) const
uchar c = s[i].cell();
if ( outParen ) { // check if we have 'const' or 'volatile'
- static const QString con = " const";
- static const QString vol = " volatile";
- QString mid = s.mid( j );
+ static const TQString con = " const";
+ static const TQString vol = " volatile";
+ TQString mid = s.mid( j );
if ( !( con.startsWith( mid ) || vol.startsWith( mid ) ) )
- return QValidator::Invalid;
+ return TQValidator::Invalid;
}
if ( inParen && c != ')' )
@@ -90,5 +90,5 @@ QValidator::State AsciiValidator::validate( QString &s, int & ) const
s[i] = '_';
}
- return QValidator::Acceptable;
+ return TQValidator::Acceptable;
}