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/translators/dataimporter.h | |
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/translators/dataimporter.h')
-rw-r--r-- | src/translators/dataimporter.h | 11 |
1 files changed, 6 insertions, 5 deletions
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; }; |