summaryrefslogtreecommitdiffstats
path: root/kradio3/src/station-drag-object.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
commit70b9eea2ba01c3691497f49e4c45cb070c16193c (patch)
tree9a6df61aa247a27275aad9c5245e419e89c2c640 /kradio3/src/station-drag-object.cpp
parent998c1384ace4ae4655997c181fa33242148cd0a4 (diff)
downloadtderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.tar.gz
tderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.zip
TQt4 port kradio
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1238952 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kradio3/src/station-drag-object.cpp')
-rw-r--r--kradio3/src/station-drag-object.cpp26
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]);