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/gui-standard-display/radioview_volume.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/gui-standard-display/radioview_volume.cpp')
-rw-r--r-- | kradio3/plugins/gui-standard-display/radioview_volume.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kradio3/plugins/gui-standard-display/radioview_volume.cpp b/kradio3/plugins/gui-standard-display/radioview_volume.cpp index d642aa4..3f25d5e 100644 --- a/kradio3/plugins/gui-standard-display/radioview_volume.cpp +++ b/kradio3/plugins/gui-standard-display/radioview_volume.cpp @@ -16,10 +16,10 @@ ***************************************************************************/ #include <math.h> -#include <qslider.h> -#include <qlayout.h> -#include <qaccel.h> -#include <qtooltip.h> +#include <tqslider.h> +#include <tqlayout.h> +#include <tqaccel.h> +#include <tqtooltip.h> #include <klocale.h> @@ -30,37 +30,37 @@ #define SLIDER_MAXVAL 32768 #define SLIDER_RANGE (SLIDER_MAXVAL - SLIDER_MINVAL) -RadioViewVolume::RadioViewVolume(QWidget *parent, const QString &name) - : RadioViewElement (parent, name, clsRadioSound), +RadioViewVolume::RadioViewVolume(TQWidget *tqparent, const TQString &name) + : RadioViewElement (tqparent, name, clsRadioSound), m_slider(NULL), m_handlingSlot(false) { float v = 0; SoundStreamID ssid = queryCurrentSoundStreamID(); - sendLogDebug (QString ("RadioViewVolume: ssid=%1").arg(ssid.getID())); + sendLogDebug (TQString ("RadioViewVolume: ssid=%1").tqarg(ssid.getID())); queryPlaybackVolume(ssid, v); - m_slider = new QSlider(SLIDER_MINVAL, + m_slider = new TQSlider(SLIDER_MINVAL, SLIDER_MAXVAL, SLIDER_RANGE/10, getSlider4Volume(v), Qt::Vertical, this); - QObject::connect(m_slider, SIGNAL(valueChanged(int)), - this, SLOT(slotVolumeChanged(int))); + TQObject::connect(m_slider, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotVolumeChanged(int))); - QBoxLayout *l = new QBoxLayout(this, QBoxLayout::LeftToRight); + TQBoxLayout *l = new TQBoxLayout(this, TQBoxLayout::LeftToRight); l->addWidget(m_slider); // Tooltips - QToolTip::add(m_slider, i18n("Change Volume")); + TQToolTip::add(m_slider, i18n("Change Volume")); // Accelerators - QAccel *Accel = new QAccel (this); + TQAccel *Accel = new TQAccel (this); Accel->insertItem (Key_Up, 100); Accel->insertItem (Key_Down, 101); - Accel->connectItem (100, m_slider, SLOT(subtractStep())); - Accel->connectItem (101, m_slider, SLOT(addStep())); + Accel->connectItem (100, m_slider, TQT_SLOT(subtractStep())); + Accel->connectItem (101, m_slider, TQT_SLOT(addStep())); } |