summaryrefslogtreecommitdiffstats
path: root/src/translators/xmlimporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/translators/xmlimporter.cpp')
-rw-r--r--src/translators/xmlimporter.cpp28
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);
}
}