-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 5 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.h | 9 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 5 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.h | 6 |
4 files changed, 12 insertions, 13 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 1600320..0b7d470 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp @@ -91,7 +91,7 @@ static const int numButtons = (sizeof(audioButtons)/sizeof(MediaButton)); -AudioWidget::AudioWidget(QWidget* parent, const char* name, WFlags f) : +AudioWidget::AudioWidget(QWidget* parent, const char* name) : - QWidget( parent, name, f ), songInfo( this ), slider( Qt::Horizontal, this ), time( this ) { + MediaWidget( parent, name ), songInfo( this ), slider( Qt::Horizontal, this ), time( this ) { setCaption( tr("OpiePlayer") ); @@ -161,5 +161,4 @@ AudioWidget::AudioWidget(QWidget* parent, const char* name, WFlags f) : connect( mediaPlayerState, SIGNAL( lengthChanged(long) ), this, SLOT( setLength(long) ) ); - connect( mediaPlayerState, SIGNAL( displayTypeChanged(MediaPlayerState::DisplayType) ), this, SLOT( setDisplayType(MediaPlayerState::DisplayType) ) ); connect( mediaPlayerState, SIGNAL( loopingToggled(bool) ), this, SLOT( setLooping(bool) ) ); connect( mediaPlayerState, SIGNAL( playingToggled(bool) ), this, SLOT( setPlaying(bool) ) ); diff --git a/noncore/multimedia/opieplayer2/audiowidget.h b/noncore/multimedia/opieplayer2/audiowidget.h index 91fcbc5..74c5b0e 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.h +++ b/noncore/multimedia/opieplayer2/audiowidget.h @@ -35,5 +35,4 @@ #define AUDIO_WIDGET_H -#include <qwidget.h> #include <qpainter.h> #include <qdrawutil.h> @@ -47,5 +46,5 @@ #include <opie/oticker.h> -#include "mediaplayerstate.h" +#include "mediawidget.h" class QPixmap; @@ -67,8 +66,8 @@ enum AudioButtons { }; -class AudioWidget : public QWidget { +class AudioWidget : public MediaWidget { Q_OBJECT public: - AudioWidget( QWidget* parent=0, const char* name=0, WFlags f=0 ); + AudioWidget( QWidget* parent=0, const char* name=0 ); ~AudioWidget(); void setTickerText( const QString &text ) { songInfo.setText( text ); } @@ -82,4 +81,6 @@ public slots: void setLength( long ); void setSeekable( bool ); + +public: void setDisplayType( MediaPlayerState::DisplayType displayType ); diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index 9ce2b57..8a0016e 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp @@ -84,6 +84,6 @@ static const int numVButtons = (sizeof(videoButtons)/sizeof(MediaButton)); -VideoWidget::VideoWidget(QWidget* parent, const char* name, WFlags f) : -QWidget( parent, name, f ), scaledWidth( 0 ), scaledHeight( 0 ) { +VideoWidget::VideoWidget(QWidget* parent, const char* name) : +MediaWidget( parent, name ), scaledWidth( 0 ), scaledHeight( 0 ) { @@ -140,5 +140,4 @@ QWidget( parent, name, f ), scaledWidth( 0 ), scaledHeight( 0 ) { connect( mediaPlayerState, SIGNAL( lengthChanged(long) ), this, SLOT( setLength(long) ) ); - connect( mediaPlayerState, SIGNAL( displayTypeChanged(MediaPlayerState::DisplayType) ), this, SLOT( setDisplayType(MediaPlayerState::DisplayType) ) ); connect( mediaPlayerState, SIGNAL( playingToggled(bool) ), this, SLOT( setPlaying(bool) ) ); diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h index 89af646..8e9dd7e 100644 --- a/noncore/multimedia/opieplayer2/videowidget.h +++ b/noncore/multimedia/opieplayer2/videowidget.h @@ -38,5 +38,5 @@ #include "xinevideowidget.h" -#include "mediaplayerstate.h" +#include "mediawidget.h" class QPixmap; @@ -54,8 +54,8 @@ enum VideoButtons { }; -class VideoWidget : public QWidget { +class VideoWidget : public MediaWidget { Q_OBJECT public: - VideoWidget( QWidget* parent=0, const char* name=0, WFlags f=0 ); + VideoWidget( QWidget* parent=0, const char* name=0 ); ~VideoWidget(); |