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/translators/dataimporter.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/translators/dataimporter.h') diff --git a/src/translators/dataimporter.h b/src/translators/dataimporter.h index 4d21a53..46a512d 100644 --- a/src/translators/dataimporter.h +++ b/src/translators/dataimporter.h @@ -25,6 +25,7 @@ namespace Tellico { */ class DataImporter : public Importer { Q_OBJECT + TQ_OBJECT public: enum Source { URL, Text }; @@ -35,11 +36,11 @@ public: // DataImporter(const KURL& url) : Importer(url), m_data(FileHandler::readDataFile(url)), m_source(URL) {} DataImporter(const KURL& url) : Importer(url), m_source(URL) { m_fileRef = FileHandler::fileRef(url); } /** - * Since the conversion to a QCString appends a \0 character at the end, remove it. + * Since the conversion to a TQCString appends a \0 character at the end, remove it. * * @param text The text. It MUST be in UTF-8. */ - DataImporter(const QString& text) : Importer(text), m_data(text.utf8()), m_source(Text), m_fileRef(0) + DataImporter(const TQString& text) : Importer(text), m_data(text.utf8()), m_source(Text), m_fileRef(0) { m_data.truncate(m_data.size()-1); } /** */ @@ -47,7 +48,7 @@ public: Source source() const { return m_source; } - virtual void setText(const QString& text) { + virtual void setText(const TQString& text) { Importer::setText(text); m_data = text.utf8(); m_data.truncate(m_data.size()-1); m_source = Text; } @@ -57,11 +58,11 @@ protected: * * @return the file data */ - const QByteArray& data() const { return m_data; } + const TQByteArray& data() const { return m_data; } FileHandler::FileRef& fileRef() const { return *m_fileRef; } private: - QByteArray m_data; + TQByteArray m_data; Source m_source; FileHandler::FileRef* m_fileRef; }; -- cgit v1.2.1