summaryrefslogtreecommitdiffstats
path: root/kradio3/src/internetradiostation.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/internetradiostation.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/internetradiostation.cpp')
-rw-r--r--kradio3/src/internetradiostation.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kradio3/src/internetradiostation.cpp b/kradio3/src/internetradiostation.cpp
index f3e5029..6bec8d2 100644
--- a/kradio3/src/internetradiostation.cpp
+++ b/kradio3/src/internetradiostation.cpp
@@ -39,8 +39,8 @@ InternetRadioStation::InternetRadioStation(const KURL &url)
{
}
-InternetRadioStation::InternetRadioStation(const QString &name,
- const QString &shortName,
+InternetRadioStation::InternetRadioStation(const TQString &name,
+ const TQString &shortName,
const KURL &url)
: RadioStation(name, shortName),
m_url(url)
@@ -54,7 +54,7 @@ InternetRadioStation::InternetRadioStation(const InternetRadioStation &s)
}
-InternetRadioStation::InternetRadioStation(RegisterStationClass, const QString &classname)
+InternetRadioStation::InternetRadioStation(RegisterStationClass, const TQString &classname)
: RadioStation(registerStationClass, !classname.isNull() ? classname : getClassName()),
m_url()
{
@@ -91,8 +91,8 @@ int InternetRadioStation::compare(const RadioStation &_s) const
if (!s)
return (typeid(this).name() > typeid(&_s).name()) ? 1 : -1;
- QString thisurl = m_url.url(-1); // -1: remove trailing '/'
- QString thaturl = s->m_url.url(-1);
+ TQString thisurl = m_url.url(-1); // -1: remove trailing '/'
+ TQString thaturl = s->m_url.url(-1);
// empty urls are never identical
if (thisurl.length () == 0)
@@ -111,11 +111,11 @@ bool InternetRadioStation::isValid() const
return !m_url.isEmpty();
}
-QString InternetRadioStation::longName() const
+TQString InternetRadioStation::longName() const
{
- QString longN = name();
+ TQString longN = name();
if (!longN.isEmpty()) {
- longN = i18n("%1, %2").arg(longN).arg(description());
+ longN = i18n("%1, %2").tqarg(longN).tqarg(description());
} else {
longN = description();
}
@@ -124,13 +124,13 @@ QString InternetRadioStation::longName() const
}
-QString InternetRadioStation::description() const
+TQString InternetRadioStation::description() const
{
return m_url.url();
}
-bool InternetRadioStation::setProperty(const QString &pn, const QString &val)
+bool InternetRadioStation::setProperty(const TQString &pn, const TQString &val)
{
bool retval = false;
if (pn == StationUrlElement) {
@@ -142,7 +142,7 @@ bool InternetRadioStation::setProperty(const QString &pn, const QString &val)
return retval;
}
-QString InternetRadioStation::getProperty(const QString &pn) const
+TQString InternetRadioStation::getProperty(const TQString &pn) const
{
if (pn == StationUrlElement) {
return m_url.url();
@@ -151,9 +151,9 @@ QString InternetRadioStation::getProperty(const QString &pn) const
}
}
-QStringList InternetRadioStation::getPropertyNames() const
+TQStringList InternetRadioStation::getPropertyNames() const
{
- QStringList l = RadioStation::getPropertyNames();
+ TQStringList l = RadioStation::getPropertyNames();
l.push_back(StationUrlElement);
return l;
}