diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 03:43:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 03:43:07 +0000 |
commit | 70b9eea2ba01c3691497f49e4c45cb070c16193c (patch) | |
tree | 9a6df61aa247a27275aad9c5245e419e89c2c640 /kradio3/plugins/alsa-sound/alsa-config-mixer-setting.cpp | |
parent | 998c1384ace4ae4655997c181fa33242148cd0a4 (diff) | |
download | tderadio-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/plugins/alsa-sound/alsa-config-mixer-setting.cpp')
-rw-r--r-- | kradio3/plugins/alsa-sound/alsa-config-mixer-setting.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kradio3/plugins/alsa-sound/alsa-config-mixer-setting.cpp b/kradio3/plugins/alsa-sound/alsa-config-mixer-setting.cpp index 873b29e..2377337 100644 --- a/kradio3/plugins/alsa-sound/alsa-config-mixer-setting.cpp +++ b/kradio3/plugins/alsa-sound/alsa-config-mixer-setting.cpp @@ -21,23 +21,23 @@ AlsaConfigMixerSetting::AlsaConfigMixerSetting() : m_card(-1), - m_name(QString::null), + m_name(TQString()), m_use(false), m_active(false), m_volume(-1) { } -AlsaConfigMixerSetting::AlsaConfigMixerSetting(KConfig *c, const QString &prefix) +AlsaConfigMixerSetting::AlsaConfigMixerSetting(KConfig *c, const TQString &prefix) { m_card = c->readNumEntry (prefix+"card", -1); - m_name = c->readEntry (prefix+"name", QString::null); + m_name = c->readEntry (prefix+"name", TQString()); m_use = c->readBoolEntry (prefix+"use", false); m_active = c->readBoolEntry (prefix+"active", false); m_volume = c->readDoubleNumEntry(prefix+"volume", 0); } -AlsaConfigMixerSetting::AlsaConfigMixerSetting(int card, const QString &name, bool use, bool active, float volume) +AlsaConfigMixerSetting::AlsaConfigMixerSetting(int card, const TQString &name, bool use, bool active, float volume) : m_card(card), m_name(name), m_use(use), @@ -50,12 +50,12 @@ AlsaConfigMixerSetting::~AlsaConfigMixerSetting() { } -QString AlsaConfigMixerSetting::getIDString(int card, const QString &name) +TQString AlsaConfigMixerSetting::getIDString(int card, const TQString &name) { - return QString::number(card) + "-" + name; + return TQString::number(card) + "-" + name; } -void AlsaConfigMixerSetting::saveState(KConfig *c, const QString &prefix) const +void AlsaConfigMixerSetting::saveState(KConfig *c, const TQString &prefix) const { c->writeEntry(prefix+"card", m_card); c->writeEntry(prefix+"name", m_name); |