summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp33
1 files changed, 5 insertions, 28 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 15c70c3..2b58402 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -231,3 +231,3 @@ void PlayListWidget::viewPressed( int mouse, QListViewItem *, const QPoint& , in
231 QPopupMenu m; 231 QPopupMenu m;
232 m.insertItem( tr( "Play" ), this, SLOT( playSelected() )); 232 m.insertItem( tr( "Play Selected" ), this, SLOT( playSelected() ));
233 m.insertItem( tr( "Add to Playlist" ), this, SLOT( addSelected() )); 233 m.insertItem( tr( "Add to Playlist" ), this, SLOT( addSelected() ));
@@ -247,3 +247,3 @@ void PlayListWidget::playlistViewPressed( int mouse, QListViewItem *, const QPoi
247 QPopupMenu m; 247 QPopupMenu m;
248 m.insertItem( tr( "Play Selected" ), this, SLOT( playSelected() )); 248 m.insertItem( tr( "Play" ), this, SLOT( playSelected() ));
249 m.insertItem( tr( "Remove" ), this, SLOT( removeSelected() )); 249 m.insertItem( tr( "Remove" ), this, SLOT( removeSelected() ));
@@ -336,26 +336,2 @@ const DocLnk *PlayListWidget::current() { // this is fugly
336 break; 336 break;
337 case 1://audio
338 {
339// qDebug("audioView");
340 QListIterator<DocLnk> dit( files.children() );
341 for ( ; dit.current(); ++dit ) {
342 if( dit.current()->name() == audioView->currentItem()->text( 0 ) && !insanityBool ) {
343 insanityBool = TRUE;
344 return dit;
345 }
346 }
347 }
348 break;
349 case 2: // video
350 {
351// qDebug("videoView");
352 QListIterator<DocLnk> Vdit( vFiles.children() );
353 for ( ; Vdit.current(); ++Vdit ) {
354 if( Vdit.current()->name() == videoView->currentItem()->text( 0 ) && !insanityBool) {
355 insanityBool = TRUE;
356 return Vdit;
357 }
358 }
359 }
360 break;
361 }; 337 };
@@ -637,2 +613,3 @@ void PlayListWidget::tabChanged(QWidget *) {
637void PlayListWidget::btnPlay(bool b) { 613void PlayListWidget::btnPlay(bool b) {
614// mediaPlayerState->setPlaying(false);
638 mediaPlayerState->setPlaying(b); 615 mediaPlayerState->setPlaying(b);
@@ -1042,3 +1019,3 @@ void PlayListWidget::populateSkinsMenu() {
1042 skinName = fi->fileName(); 1019 skinName = fi->fileName();
1043 qDebug( fi->fileName() ); 1020// qDebug( fi->fileName() );
1044 if( skinName != "." && skinName != ".." && skinName !="CVS" ) { 1021 if( skinName != "." && skinName != ".." && skinName !="CVS" ) {
@@ -1057,3 +1034,3 @@ void PlayListWidget::populateSkinsMenu() {
1057void PlayListWidget::skinsMenuActivated( int item ) { 1034void PlayListWidget::skinsMenuActivated( int item ) {
1058 for( uint i = defaultSkinIndex; i > defaultSkinIndex - skinsMenu->count(); i-- ) { 1035 for( int i = defaultSkinIndex; i > defaultSkinIndex - skinsMenu->count(); i-- ) {
1059 skinsMenu->setItemChecked( i, FALSE ); 1036 skinsMenu->setItemChecked( i, FALSE );