summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-09-05 12:34:07 (UTC)
committer llornkcor <llornkcor>2002-09-05 12:34:07 (UTC)
commit4daacd5aa7494e02df2afd245f22fbb59f8e19d9 (patch) (unidiff)
treef832d2156302fc53d63c647a55193808f89d0912
parente2186a49cb5cbdf01b56f57818a15a760ff25b2e (diff)
downloadopie-4daacd5aa7494e02df2afd245f22fbb59f8e19d9.zip
opie-4daacd5aa7494e02df2afd245f22fbb59f8e19d9.tar.gz
opie-4daacd5aa7494e02df2afd245f22fbb59f8e19d9.tar.bz2
ignore next and prev buttons when playing from filelist, for now
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp7
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp6
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 @@
48#include "audiowidget.h" 48#include "audiowidget.h"
49#include "mediaplayerstate.h" 49#include "mediaplayerstate.h"
50#include "playlistwidget.h"
50 51
51extern MediaPlayerState *mediaPlayerState; 52extern MediaPlayerState *mediaPlayerState;
53extern PlayListWidget *playList;
52 54
53static const int xo = -2; // movable x offset 55static const int xo = -2; // movable x offset
@@ -226,4 +228,5 @@ AudioWidget::~AudioWidget() {
226 delete masks[i]; 228 delete masks[i];
227 } 229 }
230// mediaPlayerState->setPlaying(false);
228} 231}
229 232
@@ -470,6 +473,6 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) {
470 } 473 }
471 case AudioStop: mediaPlayerState->setPlaying(FALSE); return; 474 case AudioStop: mediaPlayerState->setPlaying(FALSE); return;
472 case AudioNext: mediaPlayerState->setNext(); return; 475 case AudioNext: if(playList->whichList() ==0) mediaPlayerState->setNext(); return;
473 case AudioPrevious: mediaPlayerState->setPrev(); return; 476 case AudioPrevious: if(playList->whichList() ==0) mediaPlayerState->setPrev(); return;
474 case AudioLoop: mediaPlayerState->setLooping(audioButtons[i].isDown); return; 477 case AudioLoop: mediaPlayerState->setLooping(audioButtons[i].isDown); return;
475 case AudioVolumeUp: emit moreReleased(); return; 478 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 @@
45#include "videowidget.h" 45#include "videowidget.h"
46#include "mediaplayerstate.h" 46#include "mediaplayerstate.h"
47#include "playlistwidget.h"
47 48
48 49
@@ -55,4 +56,5 @@
55 56
56extern MediaPlayerState *mediaPlayerState; 57extern MediaPlayerState *mediaPlayerState;
58extern PlayListWidget *playList;
57 59
58 60
@@ -339,6 +341,6 @@ void VideoWidget::mouseMoveEvent( QMouseEvent *event ) {
339 341
340 case VideoStop: mediaPlayerState->setPlaying( FALSE ); return; 342 case VideoStop: mediaPlayerState->setPlaying( FALSE ); return;
341 case VideoNext: mediaPlayerState->setNext(); return; 343 case VideoNext: if(playList->whichList() ==0) mediaPlayerState->setNext(); return;
342 case VideoPrevious: mediaPlayerState->setPrev(); return; 344 case VideoPrevious: if(playList->whichList() ==0) mediaPlayerState->setPrev(); return;
343 case VideoVolUp: emit moreReleased(); return; 345 case VideoVolUp: emit moreReleased(); return;
344 case VideoVolDown: emit lessReleased(); return; 346 case VideoVolDown: emit lessReleased(); return;