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