summaryrefslogtreecommitdiffstats
path: root/poxml/split.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /poxml/split.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'poxml/split.cpp')
-rw-r--r--poxml/split.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/poxml/split.cpp b/poxml/split.cpp
index 28149ed6..29104d3e 100644
--- a/poxml/split.cpp
+++ b/poxml/split.cpp
@@ -16,14 +16,14 @@ int main( int argc, char **argv )
MsgList english = parseXML(argv[1]);
MsgList translated = parseXML(argv[2]);
- QMap<QString, int>::ConstIterator eit2 = english.pc.anchors.begin();
+ TQMap<TQString, int>::ConstIterator eit2 = english.pc.anchors.begin();
- QMap<int, QString> errors;
+ TQMap<int, TQString> errors;
while (eit2 != english.pc.anchors.end())
{
if (eit2.data() == translated.pc.anchors[eit2.key()]) {
- QString key = eit2.key();
+ TQString key = eit2.key();
eit2++;
translated.pc.anchors.remove(key);
english.pc.anchors.remove(key);
@@ -34,7 +34,7 @@ int main( int argc, char **argv )
}
if (report_mismatches && errors.count()) {
- for (QMap<int, QString>::ConstIterator it = errors.begin(); it != errors.end(); ++it)
+ for (TQMap<int, TQString>::ConstIterator it = errors.begin(); it != errors.end(); ++it)
{
if (translated.pc.anchors.contains(it.data()))
fprintf(stderr, "id=\"%s\" not in the same paragraphs (%d vs %d)\n", it.data().latin1(),
@@ -58,7 +58,7 @@ int main( int argc, char **argv )
bool have_roles_of_translators = false;
bool have_credit_for_translators = false;
- QMap<QString, int> msgids;
+ TQMap<TQString, int> msgids;
int index = 0;
for (MsgList::Iterator it = english.begin();
@@ -112,7 +112,7 @@ int main( int argc, char **argv )
while (tit != translated.end())
{
MsgBlock mb;
- mb.msgid = QString::fromLatin1("appended paragraph %1").arg(counter++);
+ mb.msgid = TQString::fromLatin1("appended paragraph %1").arg(counter++);
mb.msgstr = (*tit).msgid;
mb.lines += (*tit).lines;
english.append(mb);
@@ -130,7 +130,7 @@ int main( int argc, char **argv )
it != english.end(); ++it)
{
cout << "#: ";
- for (QValueList<BlockInfo>::ConstIterator it2 =
+ for (TQValueList<BlockInfo>::ConstIterator it2 =
(*it).lines.begin(); it2 != (*it).lines.end(); it2++) {
if (it2 != (*it).lines.begin())
cout << ", ";