summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
authorllornkcor <llornkcor>2002-08-13 23:42:50 (UTC)
committer llornkcor <llornkcor>2002-08-13 23:42:50 (UTC)
commit6baf582094b418ec1defa2415210a7d7583628ff (patch) (unidiff)
treee7ee4a196eeb23a1b9276ab09f01aaf39ced83e3 /noncore/multimedia/opieplayer2/mediaplayerstate.cpp
parent8abcf5a17d4ec31ad01557b69b8b0e7d97dc0c8f (diff)
downloadopie-6baf582094b418ec1defa2415210a7d7583628ff.zip
opie-6baf582094b418ec1defa2415210a7d7583628ff.tar.gz
opie-6baf582094b418ec1defa2415210a7d7583628ff.tar.bz2
fix video button actions.. still needs work
Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayerstate.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
index 57b1c81..bb8d905 100644
--- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
+++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
@@ -53,8 +53,6 @@ void MediaPlayerState::writeConfig( Config& cfg ) const {
53} 53}
54 54
55 55
56
57
58// public stuff 56// public stuff
59 57
60 58
@@ -159,14 +157,13 @@ void MediaPlayerState::setPlaylist( bool b ) {
159} 157}
160 158
161void MediaPlayerState::setPaused( bool b ) { 159void MediaPlayerState::setPaused( bool b ) {
162if(b) qDebug("setPaused true"); 160 if ( isPaused == b ) {
163 else qDebug("setPaused false"); 161 isPaused = FALSE;
164 162 emit pausedToggled(FALSE);
165 if ( isPaused == b ) { 163 return;
166 return; 164 }
167 } 165 isPaused = b;
168 isPaused = b; 166 emit pausedToggled(b);
169 emit pausedToggled(b);
170} 167}
171 168
172void MediaPlayerState::setPlaying( bool b ) { 169void MediaPlayerState::setPlaying( bool b ) {
@@ -260,7 +257,7 @@ void MediaPlayerState::togglePlaylist() {
260} 257}
261 258
262void MediaPlayerState::togglePaused() { 259void MediaPlayerState::togglePaused() {
263 setPaused( !isPaused); 260 setPaused( !isPaused);
264} 261}
265 262
266void MediaPlayerState::togglePlaying() { 263void MediaPlayerState::togglePlaying() {