-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 4 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.h | 6 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 4 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 6ccf206..a52319b 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp @@ -431,10 +431,10 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) { qDebug("mouseEvent %d", i); switch (i) { case AudioPlay: - if( mediaPlayerState->isPaused ) { + if( mediaPlayerState->paused() ) { mediaPlayerState->setPaused( FALSE ); return; - } else if( !mediaPlayerState->isPaused ) { + } else if( !mediaPlayerState->paused() ) { mediaPlayerState->setPaused( TRUE ); return; } diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.h b/noncore/multimedia/opieplayer2/mediaplayerstate.h index 8c4e09e..154e3b0 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.h +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.h @@ -50,9 +50,6 @@ public: MediaPlayerState( QObject *parent, const char *name ); ~MediaPlayerState(); - bool isPaused; - bool isPlaying; - bool isStoped; bool streaming(); bool seekable(); bool fullscreen(); @@ -130,6 +127,9 @@ private: bool isLooping; bool isShuffled; bool usePlaylist; + bool isPaused; + bool isPlaying; + bool isStoped; long curPosition; long curLength; char curView; diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index c643273..3a757f0 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp @@ -327,11 +327,11 @@ void VideoWidget::mouseMoveEvent( QMouseEvent *event ) { switch(i) { case VideoPlay: { - if( mediaPlayerState->isPaused ) { + if( mediaPlayerState->paused() ) { setToggleButton( i, FALSE ); mediaPlayerState->setPaused( FALSE ); return; - } else if( !mediaPlayerState->isPaused ) { + } else if( !mediaPlayerState->paused() ) { setToggleButton( i, TRUE ); mediaPlayerState->setPaused( TRUE ); return; diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index c46994a..f6289d7 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp @@ -180,7 +180,7 @@ long XineControl::position() { mediaPlayerState->updatePosition( m_position ); long emitPos = (long)m_position; emit positionChanged( emitPos ); - if( mediaPlayerState->isPlaying ) { + if( mediaPlayerState->playing() ) { // needs to be stopped the media is stopped QTimer::singleShot( 1000, this, SLOT( position() ) ); } |