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) (side-by-side diff)
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) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp42
1 files changed, 23 insertions, 19 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
@@ -715,3 +715,4 @@ void PlayListWidget::populateAudioView() {
QListIterator<DocLnk> dit( files.children() );
- QListIterator<FileSystem> it ( fs );
+ // QListIterator<FileSystem> it ( fs );
+ audioView->clear();
@@ -719,9 +720,9 @@ void PlayListWidget::populateAudioView() {
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( ; it.current(); ++it ){
+// const QString name = (*dit)->name();
+// const QString path = (*dit)->path();
+// if(dit.current()->file().find(path) != -1 ) {
+// storage = name;
+// // }
+// }
@@ -735,5 +736,8 @@ void PlayListWidget::populateAudioView() {
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());
}
@@ -754,3 +758,3 @@ void PlayListWidget::populateVideoView() {
QListIterator<DocLnk> Vdit( vFiles.children() );
- QListIterator<FileSystem> it ( fs );
+// QListIterator<FileSystem> it ( fs );
videoView->clear();
@@ -758,10 +762,10 @@ void PlayListWidget::populateVideoView() {
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( ; it.current(); ++it ) {
+// const QString name = (*Vdit)->name();
+// const QString path = (*Vdit)->path();
+// if( Vdit.current()->file().find(path) != -1 ) {
+// storage=name;
+// pathName=path;
+// // }
+// }
@@ -771,3 +775,3 @@ void PlayListWidget::populateVideoView() {
QString::number( QFile( Vdit.current()->file() ).size() ),
- storage, Vdit.current()->file());
+ ""/*storage*/, Vdit.current()->file());
newItem->setPixmap(0, Resource::loadPixmap( "opieplayer2/videofile" ) );