summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 5c804f5..404e1fe 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -100,7 +100,7 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
100 setBackgroundMode( PaletteButton ); 100 setBackgroundMode( PaletteButton );
101 101
102// setCaption( tr("OpiePlayer") ); 102// setCaption( tr("OpiePlayer") );
103 setIcon( Resource::loadPixmap( "opieplayer2/MPEGPlayer" ) ); 103// setIcon( Resource::loadPixmap( "opieplayer2/MPEGPlayer" ) );
104 104
105 setToolBarsMovable( FALSE ); 105 setToolBarsMovable( FALSE );
106 106
@@ -458,7 +458,7 @@ void PlayListWidget::setDocument(const QString& fileref) {
458 458
459 459
460void PlayListWidget::setActiveWindow() { 460void PlayListWidget::setActiveWindow() {
461 qDebug("SETTING active window"); 461// qDebug("SETTING active window");
462 // When we get raised we need to ensure that it switches views 462 // When we get raised we need to ensure that it switches views
463 char origView = mediaPlayerState->view(); 463 char origView = mediaPlayerState->view();
464 mediaPlayerState->setView( 'l' ); // invalidate 464 mediaPlayerState->setView( 'l' ); // invalidate
@@ -476,7 +476,7 @@ const DocLnk *PlayListWidget::current() { // this is fugly
476 switch (tabWidget->currentPageIndex()) { 476 switch (tabWidget->currentPageIndex()) {
477 case 0: //playlist 477 case 0: //playlist
478 { 478 {
479 qDebug("playlist"); 479// qDebug("playlist");
480 if ( mediaPlayerState->playlist() ) { 480 if ( mediaPlayerState->playlist() ) {
481 return d->selectedFiles->current(); 481 return d->selectedFiles->current();
482 } else if ( d->setDocumentUsed && d->current ) { 482 } else if ( d->setDocumentUsed && d->current ) {
@@ -488,11 +488,10 @@ const DocLnk *PlayListWidget::current() { // this is fugly
488 break; 488 break;
489 case 1://audio 489 case 1://audio
490 { 490 {
491 qDebug("audioView"); 491// qDebug("audioView");
492 QListIterator<DocLnk> dit( files.children() ); 492 QListIterator<DocLnk> dit( files.children() );
493 for ( ; dit.current(); ++dit ) { 493 for ( ; dit.current(); ++dit ) {
494 if( dit.current()->name() == audioView->currentItem()->text(0) && !insanityBool) { 494 if( dit.current()->name() == audioView->currentItem()->text(0) && !insanityBool) {
495 qDebug("here");
496 insanityBool=TRUE; 495 insanityBool=TRUE;
497 return dit; 496 return dit;
498 } 497 }
@@ -501,7 +500,7 @@ const DocLnk *PlayListWidget::current() { // this is fugly
501 break; 500 break;
502 case 2: // video 501 case 2: // video
503 { 502 {
504 qDebug("videoView"); 503// qDebug("videoView");
505 QListIterator<DocLnk> Vdit( vFiles.children() ); 504 QListIterator<DocLnk> Vdit( vFiles.children() );
506 for ( ; Vdit.current(); ++Vdit ) { 505 for ( ; Vdit.current(); ++Vdit ) {
507 if( Vdit.current()->name() == videoView->currentItem()->text(0) && !insanityBool) { 506 if( Vdit.current()->name() == videoView->currentItem()->text(0) && !insanityBool) {
@@ -865,7 +864,7 @@ void PlayListWidget::playlistViewPressed( int mouse, QListViewItem *, const QPoi
865 864
866 865
867void PlayListWidget::scanForAudio() { 866void PlayListWidget::scanForAudio() {
868 qDebug("scan for audio"); 867// qDebug("scan for audio");
869 files.detachChildren(); 868 files.detachChildren();
870 QListIterator<DocLnk> sdit( files.children() ); 869 QListIterator<DocLnk> sdit( files.children() );
871 for ( ; sdit.current(); ++sdit ) { 870 for ( ; sdit.current(); ++sdit ) {
@@ -876,7 +875,7 @@ void PlayListWidget::scanForAudio() {
876} 875}
877 876
878void PlayListWidget::scanForVideo() { 877void PlayListWidget::scanForVideo() {
879 qDebug("scan for video"); 878// qDebug("scan for video");
880 vFiles.detachChildren(); 879 vFiles.detachChildren();
881 QListIterator<DocLnk> sdit( vFiles.children() ); 880 QListIterator<DocLnk> sdit( vFiles.children() );
882 for ( ; sdit.current(); ++sdit ) { 881 for ( ; sdit.current(); ++sdit ) {
@@ -996,7 +995,6 @@ void PlayListWidget::keyReleaseEvent( QKeyEvent *e)
996 // doUnblank(); 995 // doUnblank();
997 break; 996 break;
998 case Key_Q: //add to playlist 997 case Key_Q: //add to playlist
999 qDebug("Add");
1000 addSelected(); 998 addSelected();
1001 break; 999 break;
1002 case Key_R: //remove from playlist 1000 case Key_R: //remove from playlist
@@ -1007,7 +1005,6 @@ void PlayListWidget::keyReleaseEvent( QKeyEvent *e)
1007 // playSelected(); 1005 // playSelected();
1008 // break; 1006 // break;
1009 case Key_Space: 1007 case Key_Space:
1010 qDebug("Play");
1011 // playSelected(); puh 1008 // playSelected(); puh
1012 break; 1009 break;
1013 case Key_1: 1010 case Key_1:
@@ -1197,7 +1194,7 @@ void PlayListWidget::readPls(const QString &filename) {
1197} 1194}
1198 1195
1199void PlayListWidget::pmViewActivated(int index) { 1196void PlayListWidget::pmViewActivated(int index) {
1200 qDebug("%d", index); 1197// qDebug("%d", index);
1201 switch(index) { 1198 switch(index) {
1202 case -16: 1199 case -16:
1203 { 1200 {