diff options
Diffstat (limited to 'kradio3/src/station-drag-object.cpp')
-rw-r--r-- | kradio3/src/station-drag-object.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kradio3/src/station-drag-object.cpp b/kradio3/src/station-drag-object.cpp index f951d54..b3fecb7 100644 --- a/kradio3/src/station-drag-object.cpp +++ b/kradio3/src/station-drag-object.cpp @@ -21,14 +21,14 @@ #define STATION_LIST_MIME_TYPE "multimedia/kradio-stationids" -StationDragObject::StationDragObject(const QStringList &stationIDs, QWidget *dragSource, const char * name) - : QStoredDrag(STATION_LIST_MIME_TYPE, dragSource, name) +StationDragObject::StationDragObject(const TQStringList &stationIDs, TQWidget *dragSource, const char * name) + : TQStoredDrag(STATION_LIST_MIME_TYPE, dragSource, name) { setStations(stationIDs); } -StationDragObject::StationDragObject(QWidget *dragSource, const char * name) - : QStoredDrag(STATION_LIST_MIME_TYPE, dragSource, name) +StationDragObject::StationDragObject(TQWidget *dragSource, const char * name) + : TQStoredDrag(STATION_LIST_MIME_TYPE, dragSource, name) { } @@ -46,12 +46,12 @@ const char *StationDragObject::format(int i) const } -void StationDragObject::setStations(const QStringList &stationIDs) +void StationDragObject::setStations(const TQStringList &stationIDs) { - QByteArray tmp; + TQByteArray tmp; int pos = 0; - for (QValueListConstIterator<QString> it=stationIDs.begin(); it != stationIDs.end(); ++it) { - const QString &s = *it; + for (TQValueListConstIterator<TQString> it=stationIDs.begin(); it != stationIDs.end(); ++it) { + const TQString &s = *it; tmp.resize(tmp.size()+s.length() + 1); for (unsigned int k = 0; k < s.length(); ++k) { tmp[pos++] = s[k].latin1(); @@ -62,22 +62,22 @@ void StationDragObject::setStations(const QStringList &stationIDs) } -bool StationDragObject::canDecode (const QMimeSource *e) +bool StationDragObject::canDecode (const TQMimeSource *e) { IErrorLogClient::staticLogDebug(e->format(0)); - bool retval = (e && e->format(0) == QString(STATION_LIST_MIME_TYPE)); + bool retval = (e && e->format(0) == TQString(STATION_LIST_MIME_TYPE)); if (retval) IErrorLogClient::staticLogDebug(i18n("canDecode = true")); return retval; } -bool StationDragObject::decode (const QMimeSource *e, QStringList &stationIDs) +bool StationDragObject::decode (const TQMimeSource *e, TQStringList &stationIDs) { stationIDs.clear(); if (canDecode(e)) { - const QByteArray &tmp = e->encodedData(e->format(0)); - QString str = ""; + const TQByteArray &tmp = e->tqencodedData(e->format(0)); + TQString str = ""; for (unsigned int pos = 0; pos < tmp.size(); ++pos) { if (tmp[pos]) { str.append(tmp[pos]); |