summaryrefslogtreecommitdiffstats
path: root/kradio3/plugins/gui-standard-display/radioview_frequencyseeker.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/plugins/gui-standard-display/radioview_frequencyseeker.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/plugins/gui-standard-display/radioview_frequencyseeker.cpp')
-rw-r--r--kradio3/plugins/gui-standard-display/radioview_frequencyseeker.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/kradio3/plugins/gui-standard-display/radioview_frequencyseeker.cpp b/kradio3/plugins/gui-standard-display/radioview_frequencyseeker.cpp
index 938939a..f29f1dd 100644
--- a/kradio3/plugins/gui-standard-display/radioview_frequencyseeker.cpp
+++ b/kradio3/plugins/gui-standard-display/radioview_frequencyseeker.cpp
@@ -16,19 +16,19 @@
***************************************************************************/
#include <math.h>
-#include <qlayout.h>
-#include <qslider.h>
-#include <qtoolbutton.h>
-#include <qaccel.h>
-#include <qtooltip.h>
+#include <tqlayout.h>
+#include <tqslider.h>
+#include <tqtoolbutton.h>
+#include <tqaccel.h>
+#include <tqtooltip.h>
#include <kiconloader.h>
#include <klocale.h>
#include "radioview_frequencyseeker.h"
-RadioViewFrequencySeeker::RadioViewFrequencySeeker(QWidget *parent, const QString &name)
- : RadioViewElement(parent, name, clsRadioSeek),
+RadioViewFrequencySeeker::RadioViewFrequencySeeker(TQWidget *tqparent, const TQString &name)
+ : RadioViewElement(tqparent, name, clsRadioSeek),
m_btnSearchLeft(NULL),
m_btnStepLeft(NULL),
m_btnStepRight(NULL),
@@ -36,14 +36,14 @@ RadioViewFrequencySeeker::RadioViewFrequencySeeker(QWidget *parent, const QStrin
m_sldFrequency(NULL),
m_ignoreChanges(false)
{
- QBoxLayout *l = new QBoxLayout(this, QBoxLayout::LeftToRight, /*spacing=*/ 3);
+ TQBoxLayout *l = new TQBoxLayout(this, TQBoxLayout::LeftToRight, /*spacing=*/ 3);
l->setMargin(0);
- m_sldFrequency = new QSlider(Qt::Horizontal, this);
- m_btnSearchLeft = new QToolButton(this);
- m_btnSearchRight = new QToolButton(this);
- m_btnStepLeft = new QToolButton(this);
- m_btnStepRight = new QToolButton(this);
+ m_sldFrequency = new TQSlider(Qt::Horizontal, this);
+ m_btnSearchLeft = new TQToolButton(this);
+ m_btnSearchRight = new TQToolButton(this);
+ m_btnStepLeft = new TQToolButton(this);
+ m_btnStepRight = new TQToolButton(this);
m_btnSearchLeft ->setToggleButton(true);
m_btnSearchRight->setToggleButton(true);
@@ -60,32 +60,32 @@ RadioViewFrequencySeeker::RadioViewFrequencySeeker(QWidget *parent, const QStrin
l->addWidget (m_btnStepRight);
l->addWidget (m_btnSearchRight);
- QObject::connect(m_sldFrequency, SIGNAL(valueChanged(int)),
- this, SLOT(slotSliderChanged(int)));
- QObject::connect(m_btnSearchLeft, SIGNAL(toggled(bool)),
- this, SLOT(slotSearchLeft(bool)));
- QObject::connect(m_btnSearchRight, SIGNAL(toggled(bool)),
- this, SLOT(slotSearchRight(bool)));
- QObject::connect(m_btnStepLeft, SIGNAL(clicked()),
- m_sldFrequency, SLOT(subtractStep()));
- QObject::connect(m_btnStepRight, SIGNAL(clicked()),
- m_sldFrequency, SLOT(addStep()));
+ TQObject::connect(m_sldFrequency, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotSliderChanged(int)));
+ TQObject::connect(m_btnSearchLeft, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSearchLeft(bool)));
+ TQObject::connect(m_btnSearchRight, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSearchRight(bool)));
+ TQObject::connect(m_btnStepLeft, TQT_SIGNAL(clicked()),
+ m_sldFrequency, TQT_SLOT(subtractStep()));
+ TQObject::connect(m_btnStepRight, TQT_SIGNAL(clicked()),
+ m_sldFrequency, TQT_SLOT(addStep()));
// Tooltips
- QToolTip::add(m_btnSearchLeft, i18n("Search for previous Radio Station"));
- QToolTip::add(m_btnSearchRight, i18n("Search for next Radio Station"));
- QToolTip::add(m_btnStepLeft, i18n("Decrement Frequency"));
- QToolTip::add(m_btnStepRight, i18n("Increment Frequency"));
- QToolTip::add(m_sldFrequency, i18n("Change Frequency"));
+ TQToolTip::add(m_btnSearchLeft, i18n("Search for previous Radio Station"));
+ TQToolTip::add(m_btnSearchRight, i18n("Search for next Radio Station"));
+ TQToolTip::add(m_btnStepLeft, i18n("Decrement Frequency"));
+ TQToolTip::add(m_btnStepRight, i18n("Increment Frequency"));
+ TQToolTip::add(m_sldFrequency, i18n("Change Frequency"));
// Accelerators
- QAccel *Accel = new QAccel (this);
+ TQAccel *Accel = new TQAccel (this);
Accel->insertItem (Key_Left, 100);
Accel->insertItem (Key_Right, 101);
- Accel->connectItem (100, m_sldFrequency, SLOT(subtractStep()));
- Accel->connectItem (101, m_sldFrequency, SLOT(addStep()));
+ Accel->connectItem (100, m_sldFrequency, TQT_SLOT(subtractStep()));
+ Accel->connectItem (101, m_sldFrequency, TQT_SLOT(addStep()));
}