summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/playlistwidget.cpp
authorllornkcor <llornkcor>2002-11-14 04:07:28 (UTC)
committer llornkcor <llornkcor>2002-11-14 04:07:28 (UTC)
commit9daeebf24f8a7cb00216df90527d993c5ff7df0d (patch) (unidiff)
treee5e2c504a92ee6144e969eff11da95643b7eb001 /noncore/multimedia/opieplayer2/playlistwidget.cpp
parent736339b62f325652b71615b8c3fbc0b064fcf837 (diff)
downloadopie-9daeebf24f8a7cb00216df90527d993c5ff7df0d.zip
opie-9daeebf24f8a7cb00216df90527d993c5ff7df0d.tar.gz
opie-9daeebf24f8a7cb00216df90527d993c5ff7df0d.tar.bz2
cleanup compiler warnings
Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp40
1 files changed, 20 insertions, 20 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
@@ -111,13 +111,13 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
111 (void)new ToolButton( vbox1, tr( "Move Up" ), "opieplayer2/up", 111 (void)new ToolButton( vbox1, tr( "Move Up" ), "opieplayer2/up",
112 d->selectedFiles, SLOT(moveSelectedUp() ) ); 112 d->selectedFiles, SLOT(moveSelectedUp() ) );
113 (void)new ToolButton( vbox1, tr( "Remove" ), "opieplayer2/cut", 113 (void)new ToolButton( vbox1, tr( "Remove" ), "opieplayer2/cut",
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() ) );
121 connect( pmView, SIGNAL( activated( int ) ), 121 connect( pmView, SIGNAL( activated( int ) ),
122 this, SLOT( pmViewActivated( int ) ) ); 122 this, SLOT( pmViewActivated( int ) ) );
123 connect( skinsMenu, SIGNAL( activated( int ) ) , 123 connect( skinsMenu, SIGNAL( activated( int ) ) ,
@@ -295,27 +295,27 @@ void PlayListWidget::addAllToList() {
295 295
296 // d->selectedFiles->addToSelection( ); 296 // d->selectedFiles->addToSelection( );
297 // if ( it.current()->isSelected() ) 297 // if ( it.current()->isSelected() )
298 // lst->append( audioIt.current() ); 298 // lst->append( audioIt.current() );
299 // } 299 // }
300 300
301 /* 301
302 if(!audioScan) 302// if(!audioScan)
303 scanForAudio(); 303// scanForAudio();
304 if(!videoScan) 304// if(!videoScan)
305 scanForVideo(); 305// scanForVideo();
306 306
307 DocLnkSet filesAll; 307// DocLnkSet filesAll;
308 Global::findDocuments(&filesAll, "video/*;"+audioMimes); 308// Global::findDocuments(&filesAll, "video/*;"+audioMimes);
309 QListIterator<DocLnk> Adit( filesAll.children() ); 309// QListIterator<DocLnk> Adit( filesAll.children() );
310 for ( ; Adit.current(); ++Adit ) { 310// for ( ; Adit.current(); ++Adit ) {
311 if( QFileInfo( Adit.current()->file() ).exists() ) { 311// if( QFileInfo( Adit.current()->file() ).exists() ) {
312 d->selectedFiles->addToSelection( **Adit ); 312// d->selectedFiles->addToSelection( **Adit );
313 } 313// }
314 } 314// }
315*/ 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);
319 319
320 writeCurrentM3u(); 320 writeCurrentM3u();
321 d->selectedFiles->first(); 321 d->selectedFiles->first();
@@ -717,13 +717,13 @@ void PlayListWidget::scanForVideo() {
717 populateVideoView(); 717 populateVideoView();
718} 718}
719 719
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 }
727 727
728 QListIterator<DocLnk> dit( files.children() ); 728 QListIterator<DocLnk> dit( files.children() );
729 // QListIterator<FileSystem> it ( fs ); 729 // QListIterator<FileSystem> it ( fs );
@@ -759,13 +759,13 @@ void PlayListWidget::populateAudioView() {
759} 759}
760 760
761 761
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();
769 } 769 }
770 770
771 QListIterator<DocLnk> Vdit( vFiles.children() ); 771 QListIterator<DocLnk> Vdit( vFiles.children() );
@@ -801,13 +801,13 @@ void PlayListWidget::openFile() {
801 InputDialog *fileDlg; 801 InputDialog *fileDlg;
802 fileDlg = new InputDialog(this,tr("Open file or URL"),TRUE, 0); 802 fileDlg = new InputDialog(this,tr("Open file or URL"),TRUE, 0);
803 fileDlg->exec(); 803 fileDlg->exec();
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");
811 811
812 if(filename.left(4) == "http") { 812 if(filename.left(4) == "http") {
813 QString m3uFile, m3uFilePath; 813 QString m3uFile, m3uFilePath;
@@ -1126,13 +1126,13 @@ void PlayListWidget::populateSkinsMenu() {
1126 } 1126 }
1127 ++it; 1127 ++it;
1128 } 1128 }
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 );
1136 1136
1137 Config cfg( "OpiePlayer" ); 1137 Config cfg( "OpiePlayer" );
1138 cfg.setGroup("Options"); 1138 cfg.setGroup("Options");