summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/designer/rbuic/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/designer/rbuic/parser.cpp')
-rw-r--r--qtruby/rubylib/designer/rbuic/parser.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/qtruby/rubylib/designer/rbuic/parser.cpp b/qtruby/rubylib/designer/rbuic/parser.cpp
index 11dfe060..8cfe5da4 100644
--- a/qtruby/rubylib/designer/rbuic/parser.cpp
+++ b/qtruby/rubylib/designer/rbuic/parser.cpp
@@ -27,25 +27,25 @@
#include <tqobject.h>
#include <tqstringlist.h>
-class NormalizeObject : public QObject
+class NormalizeObject : public TQObject
{
public:
- NormalizeObject() : TQObject() {}
- static TQCString normalizeSignalSlot( const char *signalSlot ) { return TQObject::normalizeSignalSlot( signalSlot ); }
+ NormalizeObject() : TTQObject() {}
+ static TTQCString normalizeSignalSlot( const char *signalSlot ) { return TTQObject::normalizeSignalSlot( signalSlot ); }
};
-TQString Parser::cleanArgs( const TQString &func )
+TTQString Parser::cleanArgs( const TTQString &func )
{
- TQString slot( func );
+ TTQString slot( func );
int begin = slot.find( "(" ) + 1;
- TQString args = slot.mid( begin );
+ TTQString args = slot.mid( begin );
args = args.left( args.find( ")" ) );
- TQStringList lst = TQStringList::split( ',', args );
- TQString res = slot.left( begin );
- for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) {
+ TTQStringList lst = TTQStringList::split( ',', args );
+ TTQString res = slot.left( begin );
+ for ( TTQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) {
if ( it != lst.begin() )
res += ",";
- TQString arg = *it;
+ TTQString arg = *it;
int pos = 0;
if ( ( pos = arg.find( "&" ) ) != -1 ) {
arg = arg.left( pos + 1 );
@@ -55,7 +55,7 @@ TQString Parser::cleanArgs( const TQString &func )
arg = arg.simplifyWhiteSpace();
if ( ( pos = arg.find( ':' ) ) != -1 )
arg = arg.left( pos ).simplifyWhiteSpace() + ":" + arg.mid( pos + 1 ).simplifyWhiteSpace();
- TQStringList l = TQStringList::split( ' ', arg );
+ TTQStringList l = TTQStringList::split( ' ', arg );
if ( l.count() == 2 ) {
if ( l[ 0 ] != "const" && l[ 0 ] != "unsigned" && l[ 0 ] != "var" )
arg = l[ 0 ];
@@ -67,5 +67,5 @@ TQString Parser::cleanArgs( const TQString &func )
}
res += ")";
- return TQString::fromLatin1( NormalizeObject::normalizeSignalSlot( res.latin1() ) );
+ return TTQString::fromLatin1( NormalizeObject::normalizeSignalSlot( res.latin1() ) );
}