summaryrefslogtreecommitdiffstats
path: root/pylupdate3/main.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-29 01:11:08 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-29 01:11:08 -0600
commit8a055d66f43592c257cece2eb8cc021808062917 (patch)
treed0922f201bd5d24b62a33160d1d9baf9e89f9a70 /pylupdate3/main.cpp
parentb388516ca2691303a076a0764fd40bf7116fe43d (diff)
downloadpytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz
pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip
Initial TQt conversion
Diffstat (limited to 'pylupdate3/main.cpp')
-rw-r--r--pylupdate3/main.cpp34
1 files changed, 17 insertions, 17 deletions
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 <detlev@die-offenbachs.de>
**
-** 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<MetaTranslatorMessage> TML;
+typedef TQValueList<MetaTranslatorMessage> 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<QString, QString> tagMap = proFileTagMap( fullText );
- QMap<QString, QString>::Iterator it;
+ TQMap<TQString, TQString> tagMap = proFileTagMap( fullText );
+ TQMap<TQString, TQString>::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();
}
}