diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:32:31 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:32:31 -0600 |
commit | 5fb78f4b68672906005b059e7e5066c702bc5c90 (patch) | |
tree | 715819ae8220ea037525fe5d7f15f7879c137b88 /kradio3/src/stationlist.cpp | |
parent | b66ecc4a25ee7b26513ffe3c91ffbed7fe313a0d (diff) | |
download | tderadio-5fb78f4b68672906005b059e7e5066c702bc5c90.tar.gz tderadio-5fb78f4b68672906005b059e7e5066c702bc5c90.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kradio3/src/stationlist.cpp')
-rw-r--r-- | kradio3/src/stationlist.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kradio3/src/stationlist.cpp b/kradio3/src/stationlist.cpp index e7e7d64..8c6bf80 100644 --- a/kradio3/src/stationlist.cpp +++ b/kradio3/src/stationlist.cpp @@ -235,7 +235,7 @@ void StationList::merge(const StationList & other) if (! m_metaData.comment.isEmpty()) m_metaData.comment += "\n"; - m_metaData.lastChange = TQDateTime::tqcurrentDateTime(); + m_metaData.lastChange = TQDateTime::currentDateTime(); if (!metaData.maintainer.isEmpty()) m_metaData.maintainer += (count() ? TQString(" / ") : TQString()) + metaData.maintainer; @@ -340,13 +340,13 @@ bool StationList::readXML (const KURL &url, const IErrorLogClient &logger, bool if (!KIO::NetAccess::download(url, tmpfile, NULL)) { if (enableMessageBox) { logger.logError("StationList::readXML: " + - i18n("error downloading preset file %1").tqarg(url.url())); + i18n("error downloading preset file %1").arg(url.url())); TQMessageBox::warning(NULL, "KRadio", i18n("Download of the station preset file at %1 failed.") - .tqarg(url.url())); + .arg(url.url())); } else { logger.logWarning("StationList::readXML: " + - i18n("error downloading preset file %1").tqarg(url.url())); + i18n("error downloading preset file %1").arg(url.url())); } return false; } @@ -358,11 +358,11 @@ bool StationList::readXML (const KURL &url, const IErrorLogClient &logger, bool if (! presetFile.open(IO_ReadOnly)) { logger.logError("StationList::readXML: " + - i18n("error opening preset file %1").tqarg(tmpfile)); + i18n("error opening preset file %1").arg(tmpfile)); if (enableMessageBox) { TQMessageBox::warning(NULL, "KRadio", i18n("Opening of the station preset file at %1 failed.") - .tqarg(tmpfile)); + .arg(tmpfile)); } return false; } @@ -458,11 +458,11 @@ bool StationList::writeXML (const KURL &url, const IErrorLogClient &logger, bool outs << output; if (outf->status() != IO_Ok) { logger.logError("StationList::writeXML: " + - i18n("error writing to tempfile %1").tqarg(tmpFile.name())); + i18n("error writing to tempfile %1").arg(tmpFile.name())); if (enableMessageBox) { TQMessageBox::warning(NULL, "KRadio", i18n("Writing station preset file %1 failed.") - .tqarg(tmpFile.name())); + .arg(tmpFile.name())); } return false; } @@ -472,19 +472,19 @@ bool StationList::writeXML (const KURL &url, const IErrorLogClient &logger, bool if (count() <= 1) { logger.logWarning("StationList::writeXML: " + - i18n("uploading preset file %1: ").tqarg(url.url())); + i18n("uploading preset file %1: ").arg(url.url())); logger.logWarning("StationList::writeXML: " + - i18n("something strange happend, station list has only %1 entries. Writing station preset file skipped").tqarg(count())); + i18n("something strange happend, station list has only %1 entries. Writing station preset file skipped").arg(count())); } else { if (!KIO::NetAccess::upload(tmpFile.name(), url, NULL)) { logger.logError("StationList::writeXML: " + - i18n("error uploading preset file %1").tqarg(url.url())); + i18n("error uploading preset file %1").arg(url.url())); if (enableMessageBox) { TQMessageBox::warning(NULL, "KRadio", i18n("Upload of station preset file to %1 failed.") - .tqarg(url.url())); + .arg(url.url())); } return false; } |