summaryrefslogtreecommitdiffstats
path: root/noatun/library/controls.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/library/controls.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/library/controls.cpp')
-rw-r--r--noatun/library/controls.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/noatun/library/controls.cpp b/noatun/library/controls.cpp
index 1fb08269..dc67ffaa 100644
--- a/noatun/library/controls.cpp
+++ b/noatun/library/controls.cpp
@@ -1,14 +1,14 @@
#include <noatun/controls.h>
-L33tSlider::L33tSlider(QWidget * parent, const char * name) :
- QSlider(parent,name), pressed(false)
+L33tSlider::L33tSlider(TQWidget * parent, const char * name) :
+ TQSlider(parent,name), pressed(false)
{}
-L33tSlider::L33tSlider(Orientation o, QWidget * parent, const char * name) :
- QSlider(o,parent,name), pressed(false)
+L33tSlider::L33tSlider(Orientation o, TQWidget * parent, const char * name) :
+ TQSlider(o,parent,name), pressed(false)
{}
L33tSlider::L33tSlider(int minValue, int maxValue, int pageStep, int value,
- Orientation o, QWidget * parent, const char * name) :
- QSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false)
+ Orientation o, TQWidget * parent, const char * name) :
+ TQSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false)
{}
bool L33tSlider::currentlyPressed() const
@@ -19,28 +19,28 @@ bool L33tSlider::currentlyPressed() const
void L33tSlider::setValue(int i)
{
if (!pressed)
- QSlider::setValue(i);
+ TQSlider::setValue(i);
}
-void L33tSlider::mousePressEvent(QMouseEvent*e)
+void L33tSlider::mousePressEvent(TQMouseEvent*e)
{
if (e->button()!=RightButton)
{
pressed=true;
- QSlider::mousePressEvent(e);
+ TQSlider::mousePressEvent(e);
}
}
-void L33tSlider::mouseReleaseEvent(QMouseEvent*e)
+void L33tSlider::mouseReleaseEvent(TQMouseEvent*e)
{
pressed=false;
- QSlider::mouseReleaseEvent(e);
+ TQSlider::mouseReleaseEvent(e);
emit userChanged(value());
}
-void L33tSlider::wheelEvent(QWheelEvent *e)
+void L33tSlider::wheelEvent(TQWheelEvent *e)
{
- QSlider::wheelEvent(e);
+ TQSlider::wheelEvent(e);
int newValue=value() /* +e->delta()/120 */;
if (newValue<minValue())
newValue=minValue();
@@ -51,15 +51,15 @@ void L33tSlider::wheelEvent(QWheelEvent *e)
}
-SliderAction::SliderAction(const QString& text, int accel, const QObject *receiver,
- const char *member, QObject* parent, const char* name )
+SliderAction::SliderAction(const TQString& text, int accel, const TQObject *receiver,
+ const char *member, TQObject* parent, const char* name )
: KAction( text, accel, parent, name )
{
m_receiver = receiver;
m_member = member;
}
-int SliderAction::plug( QWidget *w, int index )
+int SliderAction::plug( TQWidget *w, int index )
{
if (!w->inherits("KToolBar")) return -1;
@@ -73,11 +73,11 @@ int SliderAction::plug( QWidget *w, int index )
addContainer( toolBar, id );
- connect( toolBar, SIGNAL( destroyed() ), this, SLOT( slotDestroyed() ) );
+ connect( toolBar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );
toolBar->setItemAutoSized( id, true );
if (w->inherits( "KToolBar" ))
- connect(toolBar, SIGNAL(moved(KToolBar::BarPosition)), this, SLOT(toolbarMoved(KToolBar::BarPosition)));
+ connect(toolBar, TQT_SIGNAL(moved(KToolBar::BarPosition)), this, TQT_SLOT(toolbarMoved(KToolBar::BarPosition)));
emit plugged();
@@ -102,7 +102,7 @@ return;
*/
}
-void SliderAction::unplug( QWidget *w )
+void SliderAction::unplug( TQWidget *w )
{
KToolBar *toolBar = (KToolBar *)w;
int idx = findContainer( w );