summaryrefslogtreecommitdiffabout
path: root/kabc/vcard/testread.cpp
Side-by-side diff
Diffstat (limited to 'kabc/vcard/testread.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/vcard/testread.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/kabc/vcard/testread.cpp b/kabc/vcard/testread.cpp
index 919c661..4d66aaf 100644
--- a/kabc/vcard/testread.cpp
+++ b/kabc/vcard/testread.cpp
@@ -3,7 +3,9 @@
#include <assert.h>
#include <qfile.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
+//Added by qt3to4:
+#include <Q3CString>
#include <VCard.h>
@@ -18,14 +20,14 @@ int main(int argc, char * argv[])
QFile f(argv[1]);
- QCString str;
+ Q3CString str;
- if (!f.open(IO_ReadOnly)) {
+ if (!f.open(QIODevice::ReadOnly)) {
cerr << "Couldn't open file \"" << argv[1] << endl;
exit(1);
}
- QTextStream t(&f);
+ Q3TextStream t(&f);
while (!t.eof())
str += t.readLine().utf8() + '\n';
@@ -52,7 +54,7 @@ int main(int argc, char * argv[])
if (v.has(EntityEmail)) {
cerr << "Email parameter found" << endl;
- QCString s = v.contentLine(EntityEmail)->value()->asString();
+ Q3CString s = v.contentLine(EntityEmail)->value()->asString();
cerr << "Email value == " << s << endl;
}