diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/xmphandler.cpp | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
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
Diffstat (limited to 'src/xmphandler.cpp')
-rw-r--r-- | src/xmphandler.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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 <config.h> -#include <qfile.h> -#include <qtextstream.h> +#include <tqfile.h> +#include <tqtextstream.h> #ifdef HAVE_EXEMPI #include <exempi/xmp.h> #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(); |