-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 7 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 6 |
2 files changed, 9 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 446fa45..7c49733 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp @@ -48,6 +48,8 @@ #include "audiowidget.h" #include "mediaplayerstate.h" +#include "playlistwidget.h" extern MediaPlayerState *mediaPlayerState; +extern PlayListWidget *playList; static const int xo = -2; // movable x offset @@ -226,4 +228,5 @@ AudioWidget::~AudioWidget() { delete masks[i]; } +// mediaPlayerState->setPlaying(false); } @@ -470,6 +473,6 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) { } case AudioStop: mediaPlayerState->setPlaying(FALSE); return; - case AudioNext: mediaPlayerState->setNext(); return; - case AudioPrevious: mediaPlayerState->setPrev(); return; + case AudioNext: if(playList->whichList() ==0) mediaPlayerState->setNext(); return; + case AudioPrevious: if(playList->whichList() ==0) mediaPlayerState->setPrev(); return; case AudioLoop: mediaPlayerState->setLooping(audioButtons[i].isDown); return; case AudioVolumeUp: emit moreReleased(); return; diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index ffda2e4..8e3a365 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp @@ -45,4 +45,5 @@ #include "videowidget.h" #include "mediaplayerstate.h" +#include "playlistwidget.h" @@ -55,4 +56,5 @@ extern MediaPlayerState *mediaPlayerState; +extern PlayListWidget *playList; @@ -339,6 +341,6 @@ void VideoWidget::mouseMoveEvent( QMouseEvent *event ) { case VideoStop: mediaPlayerState->setPlaying( FALSE ); return; - case VideoNext: mediaPlayerState->setNext(); return; - case VideoPrevious: mediaPlayerState->setPrev(); return; + case VideoNext: if(playList->whichList() ==0) mediaPlayerState->setNext(); return; + case VideoPrevious: if(playList->whichList() ==0) mediaPlayerState->setPrev(); return; case VideoVolUp: emit moreReleased(); return; case VideoVolDown: emit lessReleased(); return; |