From 3023dd47eefe179c245a186dd0870c2b4a76a4ae Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 08 Dec 2002 22:31:49 +0000 Subject: - made XineControl independent from VideoWidget --- (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index b4ae783..6f1cd9c 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp @@ -38,14 +38,16 @@ #include #include "xinecontrol.h" #include "mediaplayerstate.h" -#include "videowidget.h" -XineControl::XineControl( VideoWidget *videoWidget, MediaPlayerState &_mediaPlayerState, QObject *parent, const char *name ) - : QObject( parent, name ), mediaPlayerState( _mediaPlayerState ), videoUI( videoWidget ) { +XineControl::XineControl( QWidget *videoContainerWidget, XineVideoWidget *xineWidget, + MediaPlayerState &_mediaPlayerState, + QObject *parent, const char *name ) + : QObject( parent, name ), mediaPlayerState( _mediaPlayerState ) +{ - libXine = new XINE::Lib( videoUI->vidWidget() ); + libXine = new XINE::Lib( xineWidget ); - connect ( videoUI, SIGNAL( videoResized( const QSize & )), this, SLOT( videoResized ( const QSize & ) ) ); + connect ( videoContainerWidget, SIGNAL( videoResized( const QSize & )), this, SLOT( videoResized ( const QSize & ) ) ); connect( &mediaPlayerState, SIGNAL( pausedToggled( bool ) ), this, SLOT( pause( bool ) ) ); connect( this, SIGNAL( positionChanged( long ) ), &mediaPlayerState, SLOT( updatePosition( long ) ) ); connect( &mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); -- cgit v0.9.0.2