diff options
Diffstat (limited to 'kradio3/src/stationlistxmlhandler.cpp')
-rw-r--r-- | kradio3/src/stationlistxmlhandler.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kradio3/src/stationlistxmlhandler.cpp b/kradio3/src/stationlistxmlhandler.cpp index 71fb78e..0e303da 100644 --- a/kradio3/src/stationlistxmlhandler.cpp +++ b/kradio3/src/stationlistxmlhandler.cpp @@ -62,13 +62,13 @@ bool StationListXmlHandler::startDocument () #define START_ELEMENT_ERROR m_logger.logError("StationListXmlHandler::startElement: " + \ i18n("misplaced element %1") \ - .arg(qname));\ + .tqarg(qname));\ return false; -bool StationListXmlHandler::startElement (const QString &/*ns*/, const QString &/*localname*/, - const QString& _qname, const QXmlAttributes &) +bool StationListXmlHandler::startElement (const TQString &/*ns*/, const TQString &/*localname*/, + const TQString& _qname, const TQXmlAttributes &) { - QString qname = _qname; + TQString qname = _qname; if (qname == KRadioConfigElement) { if (m_status.size()) { START_ELEMENT_ERROR } @@ -113,7 +113,7 @@ bool StationListXmlHandler::startElement (const QString &/*ns*/, const QString & } else { // unknown m_logger.logWarning("StationListXmlHandler::startElement: " + - i18n("unknown or unexpected element %1").arg(qname)); + i18n("unknown or unexpected element %1").tqarg(qname)); } m_status.push_back(qname); @@ -121,10 +121,10 @@ bool StationListXmlHandler::startElement (const QString &/*ns*/, const QString & } -bool StationListXmlHandler::endElement (const QString &/*ns*/, const QString &/*localname*/, - const QString &_qname) +bool StationListXmlHandler::endElement (const TQString &/*ns*/, const TQString &/*localname*/, + const TQString &_qname) { - QString qname = _qname; + TQString qname = _qname; if (qname == compatStationElement) { qname = "FrequencyRadioStation"; m_compatMode = true; @@ -143,10 +143,10 @@ bool StationListXmlHandler::endElement (const QString &/*ns*/, const QString &/* if (m_status.size()) { m_logger.logError("StationListXmlHandler::endElement: " + i18n("expected element %1, but found %2") - .arg(m_status.back()).arg(qname)); + .tqarg(m_status.back()).tqarg(qname)); } else { m_logger.logError("StationListXmlHandler::endElement: " + - i18n("unexpected element %1").arg(qname)); + i18n("unexpected element %1").tqarg(qname)); } } return true; @@ -155,13 +155,13 @@ bool StationListXmlHandler::endElement (const QString &/*ns*/, const QString &/* #define CHARACTERS_ERROR m_logger.logError("StationListXmlHandler::characters: " + \ i18n("invalid data for element %1") \ - .arg(stat)); \ + .tqarg(stat)); \ return false; -bool StationListXmlHandler::characters (const QString &ch) +bool StationListXmlHandler::characters (const TQString &ch) { - QString stat = m_status.back(); - QString str = ch.stripWhiteSpace(); + TQString stat = m_status.back(); + TQString str = ch.stripWhiteSpace(); // Station parsing @@ -169,7 +169,7 @@ bool StationListXmlHandler::characters (const QString &ch) if (stat == StationListFormat) { if (str != STATION_LIST_FORMAT) { - m_logger.logError(i18n("found a station list with unknown format %1").arg(str)); + m_logger.logError(i18n("found a station list with unknown format %1").tqarg(str)); return false; } @@ -197,7 +197,7 @@ bool StationListXmlHandler::characters (const QString &ch) } else if (stat == StationListInfoChanged) { - m_metaData.lastChange = QDateTime::fromString(str, Qt::ISODate); + m_metaData.lastChange = TQDateTime::fromString(str, Qt::ISODate); } else if (stat == StationListInfoCreator) { @@ -210,13 +210,13 @@ bool StationListXmlHandler::characters (const QString &ch) if (!m_newStation->setProperty(stat, str)) { m_logger.logWarning("StationListXmlHandler::characters: " + i18n("unknown property %1 for class %2") - .arg(stat) - .arg(m_newStation->getClassName())); + .tqarg(stat) + .tqarg(m_newStation->getClassName())); } } else if (str.length()) { m_logger.logError("StationListXmlHandler::characters: " + - i18n("characters ignored for element %1").arg(stat)); + i18n("characters ignored for element %1").tqarg(stat)); } return true; } |