summaryrefslogtreecommitdiff
path: root/noncore/multimedia
authorllornkcor <llornkcor>2002-11-14 03:14:00 (UTC)
committer llornkcor <llornkcor>2002-11-14 03:14:00 (UTC)
commit5250e8571646f422a0830adcb137df8332ec0fe7 (patch) (unidiff)
tree6409f4ced4259f37705e4289baedba6ad02e098a /noncore/multimedia
parent4a60497bd689bd01ca301378f382bff6863b592e (diff)
downloadopie-5250e8571646f422a0830adcb137df8332ec0fe7.zip
opie-5250e8571646f422a0830adcb137df8332ec0fe7.tar.gz
opie-5250e8571646f422a0830adcb137df8332ec0fe7.tar.bz2
dont try to find media anymore
Diffstat (limited to 'noncore/multimedia') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp48
1 files changed, 26 insertions, 22 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 6bedb57..16467c0 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -713,17 +713,18 @@ void PlayListWidget::populateAudioView() {
713 } 713 }
714 714
715 QListIterator<DocLnk> dit( files.children() ); 715 QListIterator<DocLnk> dit( files.children() );
716 QListIterator<FileSystem> it ( fs ); 716 // QListIterator<FileSystem> it ( fs );
717 audioView->clear();
717 718
718 QString storage; 719 QString storage;
719 for ( ; dit.current(); ++dit ) { 720 for ( ; dit.current(); ++dit ) {
720 for( ; it.current(); ++it ){ 721// // for( ; it.current(); ++it ){
721 const QString name = (*it)->name(); 722// const QString name = (*dit)->name();
722 const QString path = (*it)->path(); 723// const QString path = (*dit)->path();
723 if(dit.current()->file().find(path) != -1 ) { 724// if(dit.current()->file().find(path) != -1 ) {
724 storage = name; 725// storage = name;
725 } 726// // }
726 } 727// }
727 728
728 QListViewItem * newItem; 729 QListViewItem * newItem;
729 if ( QFile( dit.current()->file()).exists() || 730 if ( QFile( dit.current()->file()).exists() ||
@@ -733,10 +734,13 @@ void PlayListWidget::populateAudioView() {
733 size=0; 734 size=0;
734 else 735 else
735 size = QFile( dit.current()->file() ).size(); 736 size = QFile( dit.current()->file() ).size();
737
736 newItem= /*(void)*/ new QListViewItem( audioView, dit.current()->name(), 738 newItem= /*(void)*/ new QListViewItem( audioView, dit.current()->name(),
737 QString::number(size ), storage, dit.current()->file()); 739 QString::number(size ), "" /*storage*/,
740 dit.current()->file() );
738 newItem->setPixmap( 0, Resource::loadPixmap( "opieplayer2/musicfile" ) ); 741 newItem->setPixmap( 0, Resource::loadPixmap( "opieplayer2/musicfile" ) );
739 } 742// qDebug("<<<< "+dit.current()->file());
743 }
740 } 744 }
741 audioPopulated=true; 745 audioPopulated=true;
742} 746}
@@ -752,24 +756,24 @@ void PlayListWidget::populateVideoView() {
752 } 756 }
753 757
754 QListIterator<DocLnk> Vdit( vFiles.children() ); 758 QListIterator<DocLnk> Vdit( vFiles.children() );
755 QListIterator<FileSystem> it ( fs ); 759// QListIterator<FileSystem> it ( fs );
756 videoView->clear(); 760 videoView->clear();
757 QString storage, pathName; 761 QString storage, pathName;
758 for ( ; Vdit.current(); ++Vdit ) { 762 for ( ; Vdit.current(); ++Vdit ) {
759 for( ; it.current(); ++it ) { 763// // for( ; it.current(); ++it ) {
760 const QString name = (*it)->name(); 764// const QString name = (*Vdit)->name();
761 const QString path = (*it)->path(); 765// const QString path = (*Vdit)->path();
762 if( Vdit.current()->file().find(path) != -1 ) { 766// if( Vdit.current()->file().find(path) != -1 ) {
763 storage=name; 767// storage=name;
764 pathName=path; 768// pathName=path;
765 } 769// // }
766 } 770// }
767 771
768 QListViewItem * newItem; 772 QListViewItem * newItem;
769 if ( QFile( Vdit.current()->file() ).exists() ) { 773 if ( QFile( Vdit.current()->file() ).exists() ) {
770 newItem= /*(void)*/ new QListViewItem( videoView, Vdit.current()->name(), 774 newItem= /*(void)*/ new QListViewItem( videoView, Vdit.current()->name(),
771 QString::number( QFile( Vdit.current()->file() ).size() ), 775 QString::number( QFile( Vdit.current()->file() ).size() ),
772 storage, Vdit.current()->file()); 776 ""/*storage*/, Vdit.current()->file());
773 newItem->setPixmap(0, Resource::loadPixmap( "opieplayer2/videofile" ) ); 777 newItem->setPixmap(0, Resource::loadPixmap( "opieplayer2/videofile" ) );
774 } 778 }
775 } 779 }