diff options
Diffstat (limited to 'konq-plugins/sidebar/mediaplayer/mediawidget.cpp')
-rw-r--r-- | konq-plugins/sidebar/mediaplayer/mediawidget.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/konq-plugins/sidebar/mediaplayer/mediawidget.cpp b/konq-plugins/sidebar/mediaplayer/mediawidget.cpp index c460c3c..ac37e9c 100644 --- a/konq-plugins/sidebar/mediaplayer/mediawidget.cpp +++ b/konq-plugins/sidebar/mediaplayer/mediawidget.cpp @@ -24,45 +24,45 @@ #include <kurldrag.h> #include <klocale.h> -#include <qlabel.h> -#include <qwidget.h> -#include <qpushbutton.h> -#include <qlcdnumber.h> -#include <qpopupmenu.h> -#include <qslider.h> -#include <qtooltip.h> - -KSB_MediaWidget::KSB_MediaWidget(QWidget *parent):KSB_MediaWidget_skel(parent) +#include <tqlabel.h> +#include <tqwidget.h> +#include <tqpushbutton.h> +#include <tqlcdnumber.h> +#include <tqpopupmenu.h> +#include <tqslider.h> +#include <tqtooltip.h> + +KSB_MediaWidget::KSB_MediaWidget(TQWidget *parent):KSB_MediaWidget_skel(parent) { player = new Player(this); empty(); - QFont labelFont = time->font(); + TQFont labelFont = time->font(); labelFont.setPointSize(18); labelFont.setBold(true); time->setFont(labelFont); - connect(Play, SIGNAL(clicked()), player, SLOT(play())); - connect(Pause, SIGNAL(clicked()), player, SLOT(pause())); - connect(Stop, SIGNAL(clicked()), player, SLOT(stop())); + connect(Play, TQT_SIGNAL(clicked()), player, TQT_SLOT(play())); + connect(Pause, TQT_SIGNAL(clicked()), player, TQT_SLOT(pause())); + connect(Stop, TQT_SIGNAL(clicked()), player, TQT_SLOT(stop())); - connect(player, SIGNAL(timeout()), this, SLOT(playerTimeout())); - connect(player, SIGNAL(finished()), this, SLOT(playerFinished())); - connect(player, SIGNAL(playing()), this, SLOT(playing())); - connect(player, SIGNAL(paused()), this, SLOT(paused())); - connect(player, SIGNAL(stopped()), this, SLOT(stopped())); - connect(player, SIGNAL(empty()), this, SLOT(empty())); + connect(player, TQT_SIGNAL(timeout()), this, TQT_SLOT(playerTimeout())); + connect(player, TQT_SIGNAL(finished()), this, TQT_SLOT(playerFinished())); + connect(player, TQT_SIGNAL(playing()), this, TQT_SLOT(playing())); + connect(player, TQT_SIGNAL(paused()), this, TQT_SLOT(paused())); + connect(player, TQT_SIGNAL(stopped()), this, TQT_SLOT(stopped())); + connect(player, TQT_SIGNAL(empty()), this, TQT_SLOT(empty())); - connect(Position, SIGNAL(userChanged(int)), this, SLOT(skipToWrapper(int))); - connect(this, SIGNAL(skipTo(unsigned long)), player, SLOT(skipTo(unsigned long))); + connect(Position, TQT_SIGNAL(userChanged(int)), this, TQT_SLOT(skipToWrapper(int))); + connect(this, TQT_SIGNAL(skipTo(unsigned long)), player, TQT_SLOT(skipTo(unsigned long))); setAcceptDrops(true); pretty=""; needLengthUpdate=false; - QToolTip::add(Play,i18n("Play")); - QToolTip::add(Pause,i18n("Pause")); - QToolTip::add(Stop,i18n("Stop")); + TQToolTip::add(Play,i18n("Play")); + TQToolTip::add(Pause,i18n("Pause")); + TQToolTip::add(Stop,i18n("Stop")); } void KSB_MediaWidget::skipToWrapper(int second) @@ -70,12 +70,12 @@ void KSB_MediaWidget::skipToWrapper(int second) emit skipTo((unsigned long)(second*1000)); } -void KSB_MediaWidget::dragEnterEvent ( QDragEnterEvent * e) +void KSB_MediaWidget::dragEnterEvent ( TQDragEnterEvent * e) { e->accept(KURLDrag::canDecode(e)); } -void KSB_MediaWidget::dropEvent ( QDropEvent * e) +void KSB_MediaWidget::dropEvent ( TQDropEvent * e) { m_kuri_list.clear(); if (KURLDrag::decode(e, m_kuri_list)) @@ -101,7 +101,7 @@ void KSB_MediaWidget::playerTimeout() if (needLengthUpdate) { int counter = player->lengthString().length() - (player->lengthString().find("/")+1); - QString length=player->lengthString().right(counter); + TQString length=player->lengthString().right(counter); needLengthUpdate=false; } } |