From 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Jul 2011 06:40:27 +0000 Subject: TQt4 port tellico This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/xmphandler.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/xmphandler.cpp') diff --git a/src/xmphandler.cpp b/src/xmphandler.cpp index de5d5d6..9841596 100644 --- a/src/xmphandler.cpp +++ b/src/xmphandler.cpp @@ -15,8 +15,8 @@ #include "tellico_debug.h" #include -#include -#include +#include +#include #ifdef HAVE_EXEMPI #include #endif @@ -55,10 +55,10 @@ void XMPHandler::init() { #endif } -QString XMPHandler::extractXMP(const QString& file) { - QString result; +TQString XMPHandler::extractXMP(const TQString& file) { + TQString result; #ifdef HAVE_EXEMPI - XmpFilePtr xmpfile = xmp_files_open_new(QFile::encodeName(file), XMP_OPEN_READ); + XmpFilePtr xmpfile = xmp_files_open_new(TQFile::encodeName(file), XMP_OPEN_READ); if(!xmpfile) { myDebug() << "XMPHandler::parse() - unable to open " << file << endl; return result; @@ -67,14 +67,14 @@ QString XMPHandler::extractXMP(const QString& file) { if(xmp) { XmpStringPtr buffer = xmp_string_new(); xmp_serialize(xmp, buffer, 0, 0); - result = QString::fromUtf8(xmp_string_cstr(buffer)); + result = TQString::fromUtf8(xmp_string_cstr(buffer)); xmp_string_free(buffer); // myDebug() << result << endl; #if 0 kdWarning() << "XMPHandler::parse() - turn me off!" << endl; - QFile f1(QString::fromLatin1("/tmp/xmp.xml")); + TQFile f1(TQString::tqfromLatin1("/tmp/xmp.xml")); if(f1.open(IO_WriteOnly)) { - QTextStream t(&f1); + TQTextStream t(&f1); t << result; } f1.close(); -- cgit v1.2.1