From 479f5f799523bffbcc83dff581a2299c047c6fff Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:44:01 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- python/pyqt/pylupdate3/fetchtr.cpp | 46 +++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'python/pyqt/pylupdate3/fetchtr.cpp') diff --git a/python/pyqt/pylupdate3/fetchtr.cpp b/python/pyqt/pylupdate3/fetchtr.cpp index 609dbc18..600b3a07 100644 --- a/python/pyqt/pylupdate3/fetchtr.cpp +++ b/python/pyqt/pylupdate3/fetchtr.cpp @@ -29,23 +29,23 @@ ** **********************************************************************/ -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include #include #include -/*#include */ +/*#include */ static const char MagicComment[] = "TRANSLATOR "; -static QMap needs_Q_OBJECT; -static QMap lacks_Q_OBJECT; +static TQMap needs_Q_OBJECT; +static TQMap lacks_Q_OBJECT; /* The first part of this source file is the python tokenizer. We skip @@ -62,7 +62,7 @@ enum { Tok_Eof, Tok_class, Tok_return, Tok_tr, The tokenizer maintains the following global variables. The names should be self-explanatory. */ -static QCString yyFileName; +static TQCString yyFileName; static int yyCh; static char yyIdent[128]; static size_t yyIdentLen; @@ -78,7 +78,7 @@ static int yyCurLineNo; static FILE *yyInFile; // the string to read from and current position in the string (otherwise) -static QString yyInStr; +static TQString yyInStr; static int yyInPos; static int buf; @@ -225,7 +225,7 @@ static int getToken() yyCh = getChar(); if ( yyCh == 'x' ) { - QCString hex = "0"; + TQCString hex = "0"; yyCh = getChar(); while ( isxdigit(yyCh) ) { @@ -236,7 +236,7 @@ static int getToken() if ( yyStringLen < sizeof(yyString) - 1 ) yyString[yyStringLen++] = (char) n; } else if ( yyCh >= '0' && yyCh < '8' ) { - QCString oct = ""; + TQCString oct = ""; do { oct += (char) yyCh; @@ -316,7 +316,7 @@ static bool match( int t ) return matches; } -static bool matchString( QCString *s ) +static bool matchString( TQCString *s ) { bool matches = ( yyTok == Tok_String ); *s = ""; @@ -330,10 +330,10 @@ static bool matchString( QCString *s ) static bool matchEncoding( bool *utf8 ) { if ( yyTok == Tok_Ident ) { - if ( strcmp(yyIdent, "QApplication") == 0 ) { + if ( strcmp(yyIdent, "TQApplication") == 0 ) { yyTok = getToken(); } - *utf8 = QString( yyIdent ).endsWith( QString("UTF8") ); + *utf8 = TQString( yyIdent ).endsWith( TQString("UTF8") ); yyTok = getToken(); return TRUE; } else { @@ -344,12 +344,12 @@ static bool matchEncoding( bool *utf8 ) static void parse( MetaTranslator *tor, const char *initialContext, const char *defaultContext ) { - QMap qualifiedContexts; - QCString context; - QCString text; - QCString com; - QCString functionContext = initialContext; - QCString prefix; + TQMap qualifiedContexts; + TQCString context; + TQCString text; + TQCString com; + TQCString functionContext = initialContext; + TQCString prefix; bool utf8 = FALSE; yyTok = getToken(); @@ -380,7 +380,7 @@ static void parse( MetaTranslator *tor, const char *initialContext, if ( qualifiedContexts.contains(context) ) context = qualifiedContexts[context]; tor->insert( MetaTranslatorMessage(context, text, com, - QString::null, utf8) ); + TQString::null, utf8) ); } } break; @@ -400,7 +400,7 @@ static void parse( MetaTranslator *tor, const char *initialContext, matchEncoding(&utf8) && match(Tok_RightParen))) ) tor->insert( MetaTranslatorMessage(context, text, com, - QString::null, utf8) ); + TQString::null, utf8) ); } break; case Tok_Ident: @@ -423,7 +423,7 @@ static void parse( MetaTranslator *tor, const char *initialContext, context = com.left( k ); com.remove( 0, k + 1 ); tor->insert( MetaTranslatorMessage(context, "", com, - QString::null, FALSE) ); + TQString::null, FALSE) ); } } yyTok = getToken(); -- cgit v1.2.3