From 5250e8571646f422a0830adcb137df8332ec0fe7 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Thu, 14 Nov 2002 03:14:00 +0000 Subject: dont try to find media anymore --- 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() { } QListIterator dit( files.children() ); - QListIterator it ( fs ); + // QListIterator it ( fs ); + audioView->clear(); QString storage; - for ( ; dit.current(); ++dit ) { - for( ; it.current(); ++it ){ - const QString name = (*it)->name(); - const QString path = (*it)->path(); - if(dit.current()->file().find(path) != -1 ) { - storage = name; - } - } + for ( ; dit.current(); ++dit ) { +// // for( ; it.current(); ++it ){ +// const QString name = (*dit)->name(); +// const QString path = (*dit)->path(); +// if(dit.current()->file().find(path) != -1 ) { +// storage = name; +// // } +// } QListViewItem * newItem; if ( QFile( dit.current()->file()).exists() || @@ -733,10 +734,13 @@ void PlayListWidget::populateAudioView() { size=0; else size = QFile( dit.current()->file() ).size(); + newItem= /*(void)*/ new QListViewItem( audioView, dit.current()->name(), - QString::number(size ), storage, dit.current()->file()); + QString::number(size ), "" /*storage*/, + dit.current()->file() ); newItem->setPixmap( 0, Resource::loadPixmap( "opieplayer2/musicfile" ) ); - } +// qDebug("<<<< "+dit.current()->file()); + } } audioPopulated=true; } @@ -752,24 +756,24 @@ void PlayListWidget::populateVideoView() { } QListIterator Vdit( vFiles.children() ); - QListIterator it ( fs ); +// QListIterator it ( fs ); videoView->clear(); QString storage, pathName; - for ( ; Vdit.current(); ++Vdit ) { - for( ; it.current(); ++it ) { - const QString name = (*it)->name(); - const QString path = (*it)->path(); - if( Vdit.current()->file().find(path) != -1 ) { - storage=name; - pathName=path; - } - } + for ( ; Vdit.current(); ++Vdit ) { +// // for( ; it.current(); ++it ) { +// const QString name = (*Vdit)->name(); +// const QString path = (*Vdit)->path(); +// if( Vdit.current()->file().find(path) != -1 ) { +// storage=name; +// pathName=path; +// // } +// } QListViewItem * newItem; if ( QFile( Vdit.current()->file() ).exists() ) { newItem= /*(void)*/ new QListViewItem( videoView, Vdit.current()->name(), QString::number( QFile( Vdit.current()->file() ).size() ), - storage, Vdit.current()->file()); + ""/*storage*/, Vdit.current()->file()); newItem->setPixmap(0, Resource::loadPixmap( "opieplayer2/videofile" ) ); } } -- cgit v0.9.0.2