From 8a055d66f43592c257cece2eb8cc021808062917 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 29 Nov 2011 01:11:08 -0600 Subject: Initial TQt conversion --- pylupdate3/main.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'pylupdate3/main.cpp') diff --git a/pylupdate3/main.cpp b/pylupdate3/main.cpp index 427fed5..63f54c0 100644 --- a/pylupdate3/main.cpp +++ b/pylupdate3/main.cpp @@ -1,7 +1,7 @@ /********************************************************************** ** Copyright (C) 2002 Detlev Offenbach ** -** This is a modified version of lupdate. The original is part of Qt-Linguist. +** This is a modified version of lupdate. The original is part of TQt-Linguist. ** The copyright of the original file can be found below. ** ** This version is modified to handle python sources. @@ -18,7 +18,7 @@ ** ** main.cpp ** -** This file is part of Qt Linguist. +** This file is part of TQt Linguist. ** ** See the file LICENSE included in the distribution for the usage ** and distribution terms. @@ -47,7 +47,7 @@ extern void fetchtr_py( const char *fileName, MetaTranslator *tor, extern void merge( MetaTranslator *tor, const MetaTranslator *virginTor, bool verbose ); -typedef QValueList TML; +typedef TQValueList TML; static void printUsage() { @@ -85,39 +85,39 @@ int main( int argc, char **argv ) } numProFiles++; - QFile f( argv[i] ); + TQFile f( argv[i] ); if ( !f.open(IO_ReadOnly) ) { qWarning( "pylupdate error: Cannot open project file '%s': %s", argv[i], strerror(errno) ); return 1; } - QTextStream t( &f ); - QString fullText = t.read(); + TQTextStream t( &f ); + TQString fullText = t.read(); f.close(); MetaTranslator fetchedTor; - QString defaultContext = "@default"; - QCString codec; - QStringList translatorFiles; - QStringList::Iterator tf; + TQString defaultContext = "@default"; + TQCString codec; + TQStringList translatorFiles; + TQStringList::Iterator tf; - QMap tagMap = proFileTagMap( fullText ); - QMap::Iterator it; + TQMap tagMap = proFileTagMap( fullText ); + TQMap::Iterator it; for ( it = tagMap.begin(); it != tagMap.end(); ++it ) { - QStringList toks = QStringList::split( QChar(' '), it.data() ); - QStringList::Iterator t; + TQStringList toks = TQStringList::split( TQChar(' '), it.data() ); + TQStringList::Iterator t; for ( t = toks.begin(); t != toks.end(); ++t ) { - if ( it.key() == QString("SOURCES") ) { + if ( it.key() == TQString("SOURCES") ) { fetchtr_py( *t, &fetchedTor, defaultContext, TRUE ); metSomething = TRUE; - } else if ( it.key() == QString("TRANSLATIONS") ) { + } else if ( it.key() == TQString("TRANSLATIONS") ) { translatorFiles.append( *t ); metSomething = TRUE; - } else if ( it.key() == QString("CODEC") ) { + } else if ( it.key() == TQString("CODEC") ) { codec = (*t).latin1(); } } -- cgit v1.2.3