summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/msg2qm
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-09 22:25:47 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-09 22:25:47 -0500
commiteaa7ee2e0bbca40ba3173c4304f81957e8964291 (patch)
tree4f793aa48a5080aedc94ce6e519c3b86708f2b88 /tqtinterface/qt4/tools/msg2qm
parent79a9d7a46a20d4a0923bc06fc471fdc2176ef865 (diff)
downloadexperimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.tar.gz
experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains
Diffstat (limited to 'tqtinterface/qt4/tools/msg2qm')
-rw-r--r--tqtinterface/qt4/tools/msg2qm/msg2qm.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tqtinterface/qt4/tools/msg2qm/msg2qm.cpp b/tqtinterface/qt4/tools/msg2qm/msg2qm.cpp
index 96e77c3..ca02cc9 100644
--- a/tqtinterface/qt4/tools/msg2qm/msg2qm.cpp
+++ b/tqtinterface/qt4/tools/msg2qm/msg2qm.cpp
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 1998-2008 Trolltech ASA. All rights reserved.
**
-** This is a utility program for converting tqfindtr msgfiles to
+** This is a utility program for converting findtr msgfiles to
** qtranslator message files
**
** This file may be used under the terms of the GNU General
@@ -51,7 +51,7 @@ bool hasHandle( const TQString& line, const TQString& handle)
TQString extractContents( const TQString& line )
{
TQString contents;
- if ( line.tqcontains('\"') < 2)
+ if ( line.contains('\"') < 2)
return contents;
int pos = 0;
while ( pos < int(line.length()) && line[pos] != '\"' )
@@ -101,7 +101,7 @@ void addTranslation( TQTranslator* translator, const TQString& msgid, const TQSt
if (!msgid.isNull() && !msgstr.isNull() ) {
TQString scope = "";
TQString id = msgid;
- int coloncolon = msgid.tqfind("::");
+ int coloncolon = msgid.find("::");
if (coloncolon != -1) {
scope = msgid.left( coloncolon );
id = msgid.right( msgid.length() - scope.length() - 2 );
@@ -109,7 +109,7 @@ void addTranslation( TQTranslator* translator, const TQString& msgid, const TQSt
else if (defaultScope)
scope = *defaultScope;
- if (translator->tqcontains( scope.ascii(), id.ascii() ) ) {
+ if (translator->contains( scope.ascii(), id.ascii() ) ) {
qWarning("Error: \"%s\" already in use", msgid.ascii() );
}
else {
@@ -182,7 +182,7 @@ void translate( const TQString& filename, const TQString& qmfile )
if ( pass == 0 && msgid.isEmpty() ) {
// Check for the encoding.
- int cpos = msgstr.tqfind( "charset=" );
+ int cpos = msgstr.find( "charset=" );
if ( cpos >= 0 ) {
cpos = cpos + 8; //skip "charset="
int i = cpos;