summaryrefslogtreecommitdiffstats
path: root/kgeography/src/script.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kgeography/src/script.cpp
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kgeography/src/script.cpp')
-rw-r--r--kgeography/src/script.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kgeography/src/script.cpp b/kgeography/src/script.cpp
index b23d31d0..bae8e3c8 100644
--- a/kgeography/src/script.cpp
+++ b/kgeography/src/script.cpp
@@ -10,10 +10,10 @@
#include <stdio.h>
-#include <qdir.h>
-#include <qdom.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqdir.h>
+#include <tqdom.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
int main(int argc, char *argv[])
{
@@ -23,26 +23,26 @@ int main(int argc, char *argv[])
return 1;
}
- QDir d(argv[1], "*.kgm");
+ TQDir d(argv[1], "*.kgm");
if (!d.exists()) return 2;
- QFile *output = new QFile(argv[2]);
+ TQFile *output = new TQFile(argv[2]);
output->open(IO_WriteOnly | IO_Truncate);
- QTextStream os(output);
- os.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream os(output);
+ os.setEncoding(TQTextStream::UnicodeUTF8);
- QStringList files = d.entryList();
- QStringList::const_iterator it;
- QDomDocument dd;
+ TQStringList files = d.entryList();
+ TQStringList::const_iterator it;
+ TQDomDocument dd;
for (it = files.begin(); it != files.end(); ++it)
{
- QFile *f = new QFile(d.absPath() + "/" + *it);
+ TQFile *f = new TQFile(d.absPath() + "/" + *it);
f -> open(IO_ReadOnly);
dd.setContent(f);
- QDomNode n, n2, n3, n4, n5;
- QDomNodeList nodes = dd.firstChild().childNodes();
+ TQDomNode n, n2, n3, n4, n5;
+ TQDomNodeList nodes = dd.firstChild().childNodes();
for (uint i = 0; i < nodes.count(); i++)
{
n = nodes.item(i);