summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-14 04:07:28 (UTC)
committer llornkcor <llornkcor>2002-11-14 04:07:28 (UTC)
commit9daeebf24f8a7cb00216df90527d993c5ff7df0d (patch) (unidiff)
treee5e2c504a92ee6144e969eff11da95643b7eb001
parent736339b62f325652b71615b8c3fbc0b064fcf837 (diff)
downloadopie-9daeebf24f8a7cb00216df90527d993c5ff7df0d.zip
opie-9daeebf24f8a7cb00216df90527d993c5ff7df0d.tar.gz
opie-9daeebf24f8a7cb00216df90527d993c5ff7df0d.tar.bz2
cleanup compiler warnings
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 53cd00e..593f072 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -114,7 +114,7 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
114 d->selectedFiles, SLOT(removeSelected() ) ); 114 d->selectedFiles, SLOT(removeSelected() ) );
115 (void)new ToolButton( vbox1, tr( "Move Down" ), "opieplayer2/down", 115 (void)new ToolButton( vbox1, tr( "Move Down" ), "opieplayer2/down",
116 d->selectedFiles, SLOT(moveSelectedDown() ) ); 116 d->selectedFiles, SLOT(moveSelectedDown() ) );
117 QVBox *stretch2 = new QVBox( vbox1 ); 117 // QVBox *stretch2 = new QVBox( vbox1 );
118 118
119 connect( tbDeletePlaylist, ( SIGNAL( released() ) ), 119 connect( tbDeletePlaylist, ( SIGNAL( released() ) ),
120 SLOT( deletePlaylist() ) ); 120 SLOT( deletePlaylist() ) );
@@ -298,21 +298,21 @@ void PlayListWidget::addAllToList() {
298 // lst->append( audioIt.current() ); 298 // lst->append( audioIt.current() );
299 // } 299 // }
300 300
301 /*
302 if(!audioScan)
303 scanForAudio();
304 if(!videoScan)
305 scanForVideo();
306 301
307 DocLnkSet filesAll; 302// if(!audioScan)
308 Global::findDocuments(&filesAll, "video/*;"+audioMimes); 303// scanForAudio();
309 QListIterator<DocLnk> Adit( filesAll.children() ); 304// if(!videoScan)
310 for ( ; Adit.current(); ++Adit ) { 305// scanForVideo();
311 if( QFileInfo( Adit.current()->file() ).exists() ) { 306
312 d->selectedFiles->addToSelection( **Adit ); 307// DocLnkSet filesAll;
313 } 308// Global::findDocuments(&filesAll, "video/*;"+audioMimes);
314 } 309// QListIterator<DocLnk> Adit( filesAll.children() );
315*/ 310// for ( ; Adit.current(); ++Adit ) {
311// if( QFileInfo( Adit.current()->file() ).exists() ) {
312// d->selectedFiles->addToSelection( **Adit );
313// }
314// }
315
316 // qDebug("elapsed time %d", t.elapsed() ); 316 // qDebug("elapsed time %d", t.elapsed() );
317 317
318 tabWidget->setCurrentPage(0); 318 tabWidget->setCurrentPage(0);
@@ -720,7 +720,7 @@ void PlayListWidget::scanForVideo() {
720void PlayListWidget::populateAudioView() { 720void PlayListWidget::populateAudioView() {
721 audioView->clear(); 721 audioView->clear();
722 StorageInfo storageInfo; 722 StorageInfo storageInfo;
723 const QList<FileSystem> &fs = storageInfo.fileSystems(); 723 // const QList<FileSystem> &fs = storageInfo.fileSystems();
724 if(!audioScan) { 724 if(!audioScan) {
725 scanForAudio(); 725 scanForAudio();
726 } 726 }
@@ -762,7 +762,7 @@ void PlayListWidget::populateAudioView() {
762void PlayListWidget::populateVideoView() { 762void PlayListWidget::populateVideoView() {
763 videoView->clear(); 763 videoView->clear();
764 StorageInfo storageInfo; 764 StorageInfo storageInfo;
765 const QList<FileSystem> &fs = storageInfo.fileSystems(); 765 // const QList<FileSystem> &fs = storageInfo.fileSystems();
766 766
767 if(!videoScan ) { 767 if(!videoScan ) {
768 scanForVideo(); 768 scanForVideo();
@@ -804,7 +804,7 @@ void PlayListWidget::openFile() {
804 if( fileDlg->result() == 1 ) { 804 if( fileDlg->result() == 1 ) {
805 filename = fileDlg->text(); 805 filename = fileDlg->text();
806 qDebug( "Selected filename is " + filename ); 806 qDebug( "Selected filename is " + filename );
807 Om3u *m3uList; 807 // Om3u *m3uList;
808 DocLnk lnk; 808 DocLnk lnk;
809 Config cfg( "OpiePlayer" ); 809 Config cfg( "OpiePlayer" );
810 cfg.setGroup("PlayList"); 810 cfg.setGroup("PlayList");
@@ -1129,7 +1129,7 @@ void PlayListWidget::populateSkinsMenu() {
1129} 1129}
1130 1130
1131void PlayListWidget::skinsMenuActivated( int item ) { 1131void PlayListWidget::skinsMenuActivated( int item ) {
1132 for( int i = defaultSkinIndex; i > defaultSkinIndex - skinsMenu->count(); i-- ) { 1132 for(unsigned int i = defaultSkinIndex; i > defaultSkinIndex - skinsMenu->count(); i-- ) {
1133 skinsMenu->setItemChecked( i, FALSE ); 1133 skinsMenu->setItemChecked( i, FALSE );
1134 } 1134 }
1135 skinsMenu->setItemChecked( item, TRUE ); 1135 skinsMenu->setItemChecked( item, TRUE );