diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:35:10 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:35:10 -0600 |
commit | 1dd83e5f38d1c16d3e6da18d0caca0ee093ab58f (patch) | |
tree | 11037eed53e1cd90dad4e194f9dea542ad28607f /poxml | |
parent | 3b34e5cf56262c9f54a3bcf02ee5ad93ca0fb05b (diff) | |
download | tdesdk-1dd83e5f38d1c16d3e6da18d0caca0ee093ab58f.tar.gz tdesdk-1dd83e5f38d1c16d3e6da18d0caca0ee093ab58f.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'poxml')
-rw-r--r-- | poxml/parser.cpp | 14 | ||||
-rw-r--r-- | poxml/split.cpp | 2 | ||||
-rw-r--r-- | poxml/transxx.cpp | 2 | ||||
-rw-r--r-- | poxml/xml2pot.cpp | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/poxml/parser.cpp b/poxml/parser.cpp index b4f0161b..24b7b4cf 100644 --- a/poxml/parser.cpp +++ b/poxml/parser.cpp @@ -180,8 +180,8 @@ bool StructureParser::closureTag(const TQString& message, const TQString &tag) uint index = 0; while (true) { - int nextclose = message.find(TQRegExp(TQString::tqfromLatin1("</%1[\\s>]").tqarg(tag)), index); - int nextstart = message.find(TQRegExp(TQString::tqfromLatin1("<%1[>\\s]").tqarg(tag)), index); + int nextclose = message.find(TQRegExp(TQString::fromLatin1("</%1[\\s>]").tqarg(tag)), index); + int nextstart = message.find(TQRegExp(TQString::fromLatin1("<%1[>\\s]").tqarg(tag)), index); // qDebug("finding %d %d %d %d", nextstart, nextclose, index, inside); if (nextclose == -1) { #ifdef POXML_DEBUG @@ -278,7 +278,7 @@ bool StructureParser::formatMessage(MsgBlock &msg) const { int slen = strlen(singletags[index]); - if (msg.msgid.left(slen + 1) == TQString::tqfromLatin1("<%1").tqarg(singletags[index]) && + if (msg.msgid.left(slen + 1) == TQString::fromLatin1("<%1").tqarg(singletags[index]) && !msg.msgid.at( slen + 1 ).isLetterOrNumber() ) { #ifdef POXML_DEBUG @@ -418,9 +418,9 @@ MsgList StructureParser::splitMessage(const MsgBlock &mb) #endif // the exception for poxml_* attributes is made in the closing tag - int closing_index = message.find(TQRegExp(TQString::tqfromLatin1("</%1[\\s>]").tqarg(tag)), + int closing_index = message.find(TQRegExp(TQString::fromLatin1("</%1[\\s>]").tqarg(tag)), strindex); - int starting_index = message.find(TQRegExp(TQString::tqfromLatin1("<%1[\\s>]").tqarg(tag)), + int starting_index = message.find(TQRegExp(TQString::fromLatin1("<%1[\\s>]").tqarg(tag)), strindex); #ifdef POXML_DEBUG @@ -529,9 +529,9 @@ MsgList StructureParser::splitMessage(const MsgBlock &mb) qDebug("inside %s %d", message.mid(strindex, 35).latin1(), inside); #endif - int closing_index = message.findRev(TQRegExp(TQString::tqfromLatin1("</%1[\\s>]").tqarg(tag)), + int closing_index = message.findRev(TQRegExp(TQString::fromLatin1("</%1[\\s>]").tqarg(tag)), strindex - 1); - int starting_index = message.findRev(TQRegExp(TQString::tqfromLatin1("<%1[\\s>]").tqarg(tag)), + int starting_index = message.findRev(TQRegExp(TQString::fromLatin1("<%1[\\s>]").tqarg(tag)), strindex - 1); #ifdef POXML_DEBUG diff --git a/poxml/split.cpp b/poxml/split.cpp index db20f15f..54217aa2 100644 --- a/poxml/split.cpp +++ b/poxml/split.cpp @@ -112,7 +112,7 @@ int main( int argc, char **argv ) while (tit != translated.end()) { MsgBlock mb; - mb.msgid = TQString::tqfromLatin1("appended paragraph %1").tqarg(counter++); + mb.msgid = TQString::fromLatin1("appended paragraph %1").tqarg(counter++); mb.msgstr = (*tit).msgid; mb.lines += (*tit).lines; english.append(mb); diff --git a/poxml/transxx.cpp b/poxml/transxx.cpp index cd3a78be..bfc2e9cf 100644 --- a/poxml/transxx.cpp +++ b/poxml/transxx.cpp @@ -62,7 +62,7 @@ int main(int argc, char **argv) headerLines.gres( TQRegExp( "^Last-Translator:.*" ), "Last-Translator: transxx program <null@kde.org>" ); headerLines.gres( TQRegExp( "^Language-Team:.*" ), "Language-Team: Test Language <tde-i18n-doc@kde.org>" ); TQString revisionDate ( "PO-Revision-Date: " ); - const TQDateTime dt = TQDateTime::tqcurrentDateTime( Qt::UTC ); + const TQDateTime dt = TQDateTime::currentDateTime( Qt::UTC ); revisionDate += dt.toString( "yyyy-MM-dd hh:mm+0000" ); headerLines.gres( TQRegExp( "^PO-Revision-Date:.*" ), revisionDate ); headerLines << "Plural-Forms: nplurals=1; plural=0;"; diff --git a/poxml/xml2pot.cpp b/poxml/xml2pot.cpp index 658e557b..345a53e6 100644 --- a/poxml/xml2pot.cpp +++ b/poxml/xml2pot.cpp @@ -33,7 +33,7 @@ int main( int argc, char **argv ) } } - const TQDateTime now = TQDateTime::tqcurrentDateTime( Qt::UTC ); + const TQDateTime now = TQDateTime::currentDateTime( Qt::UTC ); cout << "# SOME DESCRIPTIVE TITLE.\n"; cout << "# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.\n"; |