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/xmlimporter.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/translators/xmlimporter.cpp')
-rw-r--r-- | src/translators/xmlimporter.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/translators/xmlimporter.cpp b/src/translators/xmlimporter.cpp index ce345c4..99cf002 100644 --- a/src/translators/xmlimporter.cpp +++ b/src/translators/xmlimporter.cpp @@ -25,42 +25,42 @@ XMLImporter::XMLImporter(const KURL& url_) : Import::Importer(url_) { } } -XMLImporter::XMLImporter(const QString& text_) : Import::Importer(text_) { +XMLImporter::XMLImporter(const TQString& text_) : Import::Importer(text_) { if(text_.isEmpty()) { return; } setText(text_); } -XMLImporter::XMLImporter(const QByteArray& data_) : Import::Importer(KURL()) { +XMLImporter::XMLImporter(const TQByteArray& data_) : Import::Importer(KURL()) { if(data_.isEmpty()) { return; } - QString errorMsg; + TQString errorMsg; int errorLine, errorColumn; if(!m_dom.setContent(data_, true, &errorMsg, &errorLine, &errorColumn)) { - QString str = i18n("There is an XML parsing error in line %1, column %2.").arg(errorLine).arg(errorColumn); - str += QString::fromLatin1("\n"); - str += i18n("The error message from Qt is:"); - str += QString::fromLatin1("\n\t") + errorMsg; + TQString str = i18n("There is an XML parsing error in line %1, column %2.").tqarg(errorLine).tqarg(errorColumn); + str += TQString::tqfromLatin1("\n"); + str += i18n("The error message from TQt is:"); + str += TQString::tqfromLatin1("\n\t") + errorMsg; setStatusMessage(str); return; } } -XMLImporter::XMLImporter(const QDomDocument& dom_) : Import::Importer(KURL()), m_dom(dom_) { +XMLImporter::XMLImporter(const TQDomDocument& dom_) : Import::Importer(KURL()), m_dom(dom_) { } -void XMLImporter::setText(const QString& text_) { +void XMLImporter::setText(const TQString& text_) { Importer::setText(text_); - QString errorMsg; + TQString errorMsg; int errorLine, errorColumn; if(!m_dom.setContent(text_, true, &errorMsg, &errorLine, &errorColumn)) { - QString str = i18n("There is an XML parsing error in line %1, column %2.").arg(errorLine).arg(errorColumn); - str += QString::fromLatin1("\n"); - str += i18n("The error message from Qt is:"); - str += QString::fromLatin1("\n\t") + errorMsg; + TQString str = i18n("There is an XML parsing error in line %1, column %2.").tqarg(errorLine).tqarg(errorColumn); + str += TQString::tqfromLatin1("\n"); + str += i18n("The error message from TQt is:"); + str += TQString::tqfromLatin1("\n\t") + errorMsg; setStatusMessage(str); } } |