summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayerstate.cpp3
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayerstate.h1
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp22
3 files changed, 0 insertions, 26 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
index 43040c2..586870c 100644
--- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
+++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
@@ -68,5 +68,3 @@ void MediaPlayerState::readConfig( Config& cfg ) {
68 shuffled = cfg.readBoolEntry( "Shuffle" ); 68 shuffled = cfg.readBoolEntry( "Shuffle" );
69 usePlaylist = cfg.readBoolEntry( "UsePlayList" );
70 videoGamma = cfg.readNumEntry( "VideoGamma" ); 69 videoGamma = cfg.readNumEntry( "VideoGamma" );
71 usePlaylist = TRUE;
72 playing = FALSE; 70 playing = FALSE;
@@ -86,3 +84,2 @@ void MediaPlayerState::writeConfig( Config& cfg ) const {
86 cfg.writeEntry( "Shuffle", shuffled ); 84 cfg.writeEntry( "Shuffle", shuffled );
87 cfg.writeEntry( "UsePlayList", usePlaylist );
88 cfg.writeEntry( "VideoGamma", videoGamma ); 85 cfg.writeEntry( "VideoGamma", videoGamma );
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.h b/noncore/multimedia/opieplayer2/mediaplayerstate.h
index 7a80ad8..fc4e6cb 100644
--- a/noncore/multimedia/opieplayer2/mediaplayerstate.h
+++ b/noncore/multimedia/opieplayer2/mediaplayerstate.h
@@ -58,3 +58,2 @@ public:
58 bool isShuffled() const { return shuffled; } 58 bool isShuffled() const { return shuffled; }
59 bool isUsingPlaylist() const { return usePlaylist; }
60 bool isPaused() const { return paused; } 59 bool isPaused() const { return paused; }
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 5b277cc..f53def6 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -207,3 +207,2 @@ void PlayListWidget::addToSelection( const DocLnk& lnk ) {
207 d->setDocumentUsed = FALSE; 207 d->setDocumentUsed = FALSE;
208 if ( mediaPlayerState->isUsingPlaylist() ) {
209 if( QFileInfo( lnk.file() ).exists() || 208 if( QFileInfo( lnk.file() ).exists() ||
@@ -214,5 +213,2 @@ void PlayListWidget::addToSelection( const DocLnk& lnk ) {
214 } 213 }
215 else
216 mediaPlayerState->setPlaying( TRUE );
217}
218 214
@@ -424,7 +420,3 @@ const DocLnk *PlayListWidget::current() const { // this is fugly
424 420
425// qDebug("playlist");
426 if ( mediaPlayerState->isUsingPlaylist() )
427 return d->selectedFiles->current(); 421 return d->selectedFiles->current();
428
429 assert( false );
430} 422}
@@ -433,3 +425,2 @@ const DocLnk *PlayListWidget::current() const { // this is fugly
433bool PlayListWidget::prev() { 425bool PlayListWidget::prev() {
434 if ( mediaPlayerState->isUsingPlaylist() ) {
435 if ( mediaPlayerState->isShuffled() ) { 426 if ( mediaPlayerState->isShuffled() ) {
@@ -456,5 +447,2 @@ bool PlayListWidget::prev() {
456 } 447 }
457 } else {
458 return mediaPlayerState->isLooping();
459 }
460} 448}
@@ -464,3 +452,2 @@ bool PlayListWidget::next() {
464//qDebug("<<<<<<<<<<<<next()"); 452//qDebug("<<<<<<<<<<<<next()");
465 if ( mediaPlayerState->isUsingPlaylist() ) {
466 if ( mediaPlayerState->isShuffled() ) { 453 if ( mediaPlayerState->isShuffled() ) {
@@ -477,5 +464,2 @@ bool PlayListWidget::next() {
477 } 464 }
478 } else {
479 return mediaPlayerState->isLooping();
480 }
481} 465}
@@ -484,6 +468,3 @@ bool PlayListWidget::next() {
484bool PlayListWidget::first() { 468bool PlayListWidget::first() {
485 if ( mediaPlayerState->isUsingPlaylist() )
486 return d->selectedFiles->first(); 469 return d->selectedFiles->first();
487 else
488 return mediaPlayerState->isLooping();
489} 470}
@@ -492,6 +473,3 @@ bool PlayListWidget::first() {
492bool PlayListWidget::last() { 473bool PlayListWidget::last() {
493 if ( mediaPlayerState->isUsingPlaylist() )
494 return d->selectedFiles->last(); 474 return d->selectedFiles->last();
495 else
496 return mediaPlayerState->isLooping();
497} 475}