author | bipolar <bipolar> | 2002-03-03 20:00:13 (UTC) |
---|---|---|
committer | bipolar <bipolar> | 2002-03-03 20:00:13 (UTC) |
commit | 1c2cb5505bd88b1f38cf65936486a73081da8cf4 (patch) (side-by-side diff) | |
tree | 876541302b9d1c5e0be619cc44338f2538d68c58 | |
parent | 86ade8478229710d4a31d1c0604b79565935734e (diff) | |
download | opie-1c2cb5505bd88b1f38cf65936486a73081da8cf4.zip opie-1c2cb5505bd88b1f38cf65936486a73081da8cf4.tar.gz opie-1c2cb5505bd88b1f38cf65936486a73081da8cf4.tar.bz2 |
committed by ljp (llornkcor): small fix for player redraw not going so well
-rw-r--r-- | core/multimedia/opieplayer/playlistwidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp index ae03ec8..de36551 100644 --- a/core/multimedia/opieplayer/playlistwidget.cpp +++ b/core/multimedia/opieplayer/playlistwidget.cpp @@ -684,78 +684,80 @@ void PlayListWidget::tabChanged(QWidget *widg) { } /* list is right clicked*/ void PlayListWidget::fauxPlay(QListViewItem *it) { switch (tabWidget->currentPageIndex()) { case 0: //playlist break; case 1: { //audio QListIterator<DocLnk> dit( files.children() ); for ( ; dit.current(); ++dit ) { // qDebug(dit.current()->name()); if( dit.current()->name() == it->text(0)) { d->selectedFiles->addToSelection( **dit ); } } } break; case 2: { // video QListIterator<DocLnk> dit( vFiles.children() ); for ( ; dit.current(); ++dit ) { // qDebug(dit.current()->name()); if( dit.current()->name() == it->text(0)) { d->selectedFiles->addToSelection( **dit ); } } } break; }; mediaPlayerState->setPlaying( TRUE ); // tabWidget->setCurrentPage(0); d->selectedFiles->removeSelected(); } /* play button is pressed*/ void PlayListWidget::btnPlay(bool b) { // this is fugly switch ( tabWidget->currentPageIndex()) { case 0: { mediaPlayerState->setPlaying(b); } break; case 1: { addToSelection( audioView->selectedItem() ); mediaPlayerState->setPlaying(b); + qApp->processEvents(); d->selectedFiles->removeSelected( ); tabWidget->setCurrentPage(1); } break; case 2: { addToSelection( videoView->selectedItem() ); mediaPlayerState->setPlaying(b); + qApp->processEvents(); d->selectedFiles->removeSelected( ); tabWidget->setCurrentPage(2); } break; }; } void PlayListWidget::deletePlaylist() { switch( QMessageBox::information( this, (tr("Remove Playlist?")), (tr("You really want to delete\nthis playlist?")), (tr("Yes")), (tr("No")), 0 )){ case 0: // Yes clicked, QFile().remove(playLists->selected()->file()); QFile().remove(playLists->selected()->linkFile()); playLists->reread(); break; case 1: // Cancel break; }; } |