diff options
author | Michele Calgaro <[email protected]> | 2023-11-06 11:29:10 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-07 10:49:54 +0900 |
commit | 96f327c14acd697b936e88289165e0edb57d7fb6 (patch) | |
tree | fdf24ccd79bca9a6085d35a670c7299cb2a27fe3 /kicker-applets/mediacontrol | |
parent | d48a4e1b0d41fa262f29142736d11ce22cffa657 (diff) | |
download | tdeaddons-96f327c14acd697b936e88289165e0edb57d7fb6.tar.gz tdeaddons-96f327c14acd697b936e88289165e0edb57d7fb6.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kicker-applets/mediacontrol')
-rw-r--r-- | kicker-applets/mediacontrol/mcslider.cpp | 4 | ||||
-rw-r--r-- | kicker-applets/mediacontrol/mcslider.h | 2 | ||||
-rw-r--r-- | kicker-applets/mediacontrol/mediacontrol.cpp | 16 | ||||
-rw-r--r-- | kicker-applets/mediacontrol/simplebutton.cpp | 4 | ||||
-rw-r--r-- | kicker-applets/mediacontrol/simplebutton.h | 4 |
5 files changed, 15 insertions, 15 deletions
diff --git a/kicker-applets/mediacontrol/mcslider.cpp b/kicker-applets/mediacontrol/mcslider.cpp index 611aec4..49e29b0 100644 --- a/kicker-applets/mediacontrol/mcslider.cpp +++ b/kicker-applets/mediacontrol/mcslider.cpp @@ -19,7 +19,7 @@ #include "mcslider.h" -MCSlider::MCSlider( Qt::Orientation orientation, TQWidget *parent, const char *name ) +MCSlider::MCSlider( TQt::Orientation orientation, TQWidget *parent, const char *name ) : TQSlider( orientation, parent, name ) { setBackgroundOrigin(WidgetOrigin); @@ -46,7 +46,7 @@ void MCSlider::setBackground() void MCSlider::wheelEvent(TQWheelEvent *e) { - if (e->orientation() ==Qt::Horizontal) + if (e->orientation() ==TQt::Horizontal) return; if (e->state() == ShiftButton) diff --git a/kicker-applets/mediacontrol/mcslider.h b/kicker-applets/mediacontrol/mcslider.h index 26b7922..6e67ae0 100644 --- a/kicker-applets/mediacontrol/mcslider.h +++ b/kicker-applets/mediacontrol/mcslider.h @@ -26,7 +26,7 @@ class MCSlider : public TQSlider public: - MCSlider( Qt::Orientation orientation, TQWidget *parent, const char *name = 0 ); + MCSlider( TQt::Orientation orientation, TQWidget *parent, const char *name = 0 ); ~MCSlider(); void setBackground(); private: diff --git a/kicker-applets/mediacontrol/mediacontrol.cpp b/kicker-applets/mediacontrol/mediacontrol.cpp index fed96e9..e2d5492 100644 --- a/kicker-applets/mediacontrol/mediacontrol.cpp +++ b/kicker-applets/mediacontrol/mediacontrol.cpp @@ -139,7 +139,7 @@ MediaControl::MediaControl(const TQString &configFile, Type t, int actions, playpause_button = new TrayButton (this, "PLAYPAUSE"); stop_button = new TrayButton (this, "STOP"); next_button = new TrayButton (this, "NEXT"); - time_slider = new MCSlider (Qt::Horizontal, this, "time_slider" ); + time_slider = new MCSlider (TQt::Horizontal, this, "time_slider" ); time_slider->setRange(0,0); time_slider->setValue(0); time_slider->setTracking( false ); @@ -184,7 +184,7 @@ void MediaControl::dropEvent(TQDropEvent* event) void MediaControl::setSliderPosition(int len ,int time) { time_slider->blockSignals(true); - if(orientation() ==Qt::Vertical) + if(orientation() ==TQt::Vertical) time = len - time; if (mLastLen != len) @@ -318,7 +318,7 @@ void MediaControl::reportBug() // Fixing the orientation problem in qslider. void MediaControl::adjustTime(int time) { - if(orientation() ==Qt::Vertical) + if(orientation() ==TQt::Vertical) emit(newJumpToTime(mLastLen - time)); else emit(newJumpToTime(time)); @@ -498,7 +498,7 @@ int MediaControl::heightForWidth(int width) const void MediaControl::mousePressEvent(TQMouseEvent* e) { - if (e->button() == Qt::RightButton) + if (e->button() == TQt::RightButton) rmbMenu->popup(e->globalPos()); } @@ -507,7 +507,7 @@ bool MediaControl::eventFilter(TQObject *, TQEvent *e) if (e->type() == TQEvent::MouseButtonPress) { TQMouseEvent *me = TQT_TQMOUSEEVENT(e); - if (me->button() == Qt::RightButton) + if (me->button() == TQt::RightButton) { rmbMenu->popup(me->globalPos()); return true; @@ -532,9 +532,9 @@ void MediaControl::resizeEvent( TQResizeEvent* ) // kdDebug(90200) << "resizeEvent()" << endl; int w = width(); int h = height(); - if ( orientation() ==Qt::Vertical ) + if ( orientation() ==TQt::Vertical ) { // ====== VERTICAL ================================================= - time_slider->setOrientation(Qt::Vertical); + time_slider->setOrientation(TQt::Vertical); int slider_width = time_slider->minimumSizeHint().width(); // some styles need more space for sliders than avilable in very small panels :( if ( slider_width > w ) slider_width = w; @@ -566,7 +566,7 @@ void MediaControl::resizeEvent( TQResizeEvent* ) } else // ====== HORIZONTAL =============================================== { - time_slider->setOrientation(Qt::Horizontal); + time_slider->setOrientation(TQt::Horizontal); int slider_height = time_slider->minimumSizeHint().height(); // some styles need more space for sliders than avilable in very small panels :( if ( slider_height > h ) slider_height = h; diff --git a/kicker-applets/mediacontrol/simplebutton.cpp b/kicker-applets/mediacontrol/simplebutton.cpp index 98b7570..f95fbe8 100644 --- a/kicker-applets/mediacontrol/simplebutton.cpp +++ b/kicker-applets/mediacontrol/simplebutton.cpp @@ -35,7 +35,7 @@ SimpleButton::SimpleButton(TQWidget *parent, const char *name) : TQButton(parent, name), m_highlight(false), - m_orientation(Qt::Horizontal) + m_orientation(TQt::Horizontal) { setBackgroundOrigin( AncestorOrigin ); @@ -57,7 +57,7 @@ void SimpleButton::setPixmap(const TQPixmap &pix) update(); } -void SimpleButton::setOrientation(Qt::Orientation orientation) +void SimpleButton::setOrientation(TQt::Orientation orientation) { m_orientation = orientation; update(); diff --git a/kicker-applets/mediacontrol/simplebutton.h b/kicker-applets/mediacontrol/simplebutton.h index b3ab442..7243d50 100644 --- a/kicker-applets/mediacontrol/simplebutton.h +++ b/kicker-applets/mediacontrol/simplebutton.h @@ -34,7 +34,7 @@ class KDE_EXPORT SimpleButton : public TQButton public: SimpleButton(TQWidget *parent, const char *name = 0); void setPixmap(const TQPixmap &pix); - void setOrientation(Qt::Orientation orientaton); + void setOrientation(TQt::Orientation orientaton); TQSize sizeHint() const; TQSize minimumSizeHint() const; @@ -56,7 +56,7 @@ class KDE_EXPORT SimpleButton : public TQButton TQPixmap m_normalIcon; TQPixmap m_activeIcon; TQPixmap m_disabledIcon; - Qt::Orientation m_orientation; + TQt::Orientation m_orientation; class SimpleButtonPrivate; SimpleButtonPrivate* d; }; |