summaryrefslogtreecommitdiffstats
path: root/juk/slideraction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'juk/slideraction.cpp')
-rw-r--r--juk/slideraction.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/juk/slideraction.cpp b/juk/slideraction.cpp
index 24de828d..b632282e 100644
--- a/juk/slideraction.cpp
+++ b/juk/slideraction.cpp
@@ -47,13 +47,13 @@ public:
protected:
virtual void mousePressEvent(TQMouseEvent *e)
{
- if(e->button() == Qt::LeftButton) {
- TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), Qt::MidButton, e->state());
+ if(e->button() == TQt::LeftButton) {
+ TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), TQt::MidButton, e->state());
TQSlider::mousePressEvent(&reverse);
emit sliderPressed();
}
- else if(e->button() == Qt::MidButton) {
- TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), Qt::LeftButton, e->state());
+ else if(e->button() == TQt::MidButton) {
+ TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), TQt::LeftButton, e->state());
TQSlider::mousePressEvent(&reverse);
}
}
@@ -63,7 +63,7 @@ protected:
// VolumeSlider implementation
////////////////////////////////////////////////////////////////////////////////
-VolumeSlider::VolumeSlider(Qt::Orientation o, TQWidget *parent, const char *name) :
+VolumeSlider::VolumeSlider(TQt::Orientation o, TQWidget *parent, const char *name) :
TQSlider(o, parent, name)
{
connect(this, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotValueChanged(int)));
@@ -71,7 +71,7 @@ VolumeSlider::VolumeSlider(Qt::Orientation o, TQWidget *parent, const char *name
void VolumeSlider::wheelEvent(TQWheelEvent *e)
{
- if(orientation() ==Qt::Horizontal) {
+ if(orientation() ==TQt::Horizontal) {
TQWheelEvent transposed(e->pos(), -(e->delta()), e->state(), e->orientation());
TQSlider::wheelEvent(&transposed);
}
@@ -86,7 +86,7 @@ void VolumeSlider::focusInEvent(TQFocusEvent *)
int VolumeSlider::volume() const
{
- if(orientation() ==Qt::Horizontal)
+ if(orientation() ==TQt::Horizontal)
return value();
else
return maxValue() - value();
@@ -94,13 +94,13 @@ int VolumeSlider::volume() const
void VolumeSlider::setVolume(int value)
{
- if(orientation() ==Qt::Horizontal)
+ if(orientation() ==TQt::Horizontal)
setValue(value);
else
setValue(maxValue() - value);
}
-void VolumeSlider::setOrientation(Qt::Orientation o)
+void VolumeSlider::setOrientation(TQt::Orientation o)
{
if(o == orientation())
return;
@@ -113,7 +113,7 @@ void VolumeSlider::setOrientation(Qt::Orientation o)
void VolumeSlider::slotValueChanged(int value)
{
- if(orientation() ==Qt::Horizontal)
+ if(orientation() ==TQt::Horizontal)
emit signalVolumeChanged(value);
else
emit signalVolumeChanged(maxValue() - value);
@@ -163,7 +163,7 @@ int SliderAction::plug(TQWidget *parent, int index)
addContainer(m_toolBar, id);
connect(m_toolBar, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotToolbarDestroyed()));
- connect(m_toolBar, TQT_SIGNAL(orientationChanged(Qt::Orientation)),
+ connect(m_toolBar, TQT_SIGNAL(orientationChanged(TQt::Orientation)),
this, TQT_SLOT(slotUpdateOrientation()));
connect(m_toolBar, TQT_SIGNAL(placeChanged(TQDockWindow::Place)),
this, TQT_SLOT(slotUpdateOrientation()));
@@ -205,13 +205,13 @@ void SliderAction::slotUpdateOrientation()
return;
if(m_toolBar->barPos() == TDEToolBar::Right || m_toolBar->barPos() == TDEToolBar::Left) {
- m_trackPositionSlider->setOrientation(Qt::Vertical);
- m_volumeSlider->setOrientation(Qt::Vertical);
+ m_trackPositionSlider->setOrientation(TQt::Vertical);
+ m_volumeSlider->setOrientation(TQt::Vertical);
m_layout->setDirection(TQBoxLayout::TopToBottom);
}
else {
- m_trackPositionSlider->setOrientation(Qt::Horizontal);
- m_volumeSlider->setOrientation(Qt::Horizontal);
+ m_trackPositionSlider->setOrientation(TQt::Horizontal);
+ m_volumeSlider->setOrientation(TQt::Horizontal);
m_layout->setDirection(TQBoxLayout::LeftToRight);
}
slotUpdateSize();
@@ -233,12 +233,12 @@ TQWidget *SliderAction::createWidget(TQWidget *parent) // virtual -- used by bas
if(toolBar)
toolBar->setStretchableWidget(base);
- Qt::Orientation orientation;
+ TQt::Orientation orientation;
if(toolBar && toolBar->barPos() == TDEToolBar::Right || toolBar->barPos() == TDEToolBar::Left)
- orientation =Qt::Vertical;
+ orientation =TQt::Vertical;
else
- orientation =Qt::Horizontal;
+ orientation =TQt::Horizontal;
m_layout = new TQBoxLayout(base, TQBoxLayout::TopToBottom, 5, 5);