summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-14 04:07:28 (UTC)
committer llornkcor <llornkcor>2002-11-14 04:07:28 (UTC)
commit9daeebf24f8a7cb00216df90527d993c5ff7df0d (patch) (side-by-side diff)
treee5e2c504a92ee6144e969eff11da95643b7eb001
parent736339b62f325652b71615b8c3fbc0b064fcf837 (diff)
downloadopie-9daeebf24f8a7cb00216df90527d993c5ff7df0d.zip
opie-9daeebf24f8a7cb00216df90527d993c5ff7df0d.tar.gz
opie-9daeebf24f8a7cb00216df90527d993c5ff7df0d.tar.bz2
cleanup compiler warnings
Diffstat (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 )
(void)new ToolButton( vbox1, tr( "Move Up" ), "opieplayer2/up",
d->selectedFiles, SLOT(moveSelectedUp() ) );
(void)new ToolButton( vbox1, tr( "Remove" ), "opieplayer2/cut",
d->selectedFiles, SLOT(removeSelected() ) );
(void)new ToolButton( vbox1, tr( "Move Down" ), "opieplayer2/down",
d->selectedFiles, SLOT(moveSelectedDown() ) );
- QVBox *stretch2 = new QVBox( vbox1 );
+ // QVBox *stretch2 = new QVBox( vbox1 );
connect( tbDeletePlaylist, ( SIGNAL( released() ) ),
SLOT( deletePlaylist() ) );
connect( pmView, SIGNAL( activated( int ) ),
this, SLOT( pmViewActivated( int ) ) );
connect( skinsMenu, SIGNAL( activated( int ) ) ,
@@ -295,27 +295,27 @@ void PlayListWidget::addAllToList() {
// d->selectedFiles->addToSelection( );
// if ( it.current()->isSelected() )
// lst->append( audioIt.current() );
// }
- /*
- if(!audioScan)
- scanForAudio();
- if(!videoScan)
- scanForVideo();
-
- DocLnkSet filesAll;
- Global::findDocuments(&filesAll, "video/*;"+audioMimes);
- QListIterator<DocLnk> Adit( filesAll.children() );
- for ( ; Adit.current(); ++Adit ) {
- if( QFileInfo( Adit.current()->file() ).exists() ) {
- d->selectedFiles->addToSelection( **Adit );
- }
- }
-*/
+
+// if(!audioScan)
+// scanForAudio();
+// if(!videoScan)
+// scanForVideo();
+
+// DocLnkSet filesAll;
+// Global::findDocuments(&filesAll, "video/*;"+audioMimes);
+// QListIterator<DocLnk> Adit( filesAll.children() );
+// for ( ; Adit.current(); ++Adit ) {
+// if( QFileInfo( Adit.current()->file() ).exists() ) {
+// d->selectedFiles->addToSelection( **Adit );
+// }
+// }
+
// qDebug("elapsed time %d", t.elapsed() );
tabWidget->setCurrentPage(0);
writeCurrentM3u();
d->selectedFiles->first();
@@ -717,13 +717,13 @@ void PlayListWidget::scanForVideo() {
populateVideoView();
}
void PlayListWidget::populateAudioView() {
audioView->clear();
StorageInfo storageInfo;
- const QList<FileSystem> &fs = storageInfo.fileSystems();
+ // const QList<FileSystem> &fs = storageInfo.fileSystems();
if(!audioScan) {
scanForAudio();
}
QListIterator<DocLnk> dit( files.children() );
// QListIterator<FileSystem> it ( fs );
@@ -759,13 +759,13 @@ void PlayListWidget::populateAudioView() {
}
void PlayListWidget::populateVideoView() {
videoView->clear();
StorageInfo storageInfo;
- const QList<FileSystem> &fs = storageInfo.fileSystems();
+ // const QList<FileSystem> &fs = storageInfo.fileSystems();
if(!videoScan ) {
scanForVideo();
}
QListIterator<DocLnk> Vdit( vFiles.children() );
@@ -801,13 +801,13 @@ void PlayListWidget::openFile() {
InputDialog *fileDlg;
fileDlg = new InputDialog(this,tr("Open file or URL"),TRUE, 0);
fileDlg->exec();
if( fileDlg->result() == 1 ) {
filename = fileDlg->text();
qDebug( "Selected filename is " + filename );
- Om3u *m3uList;
+ // Om3u *m3uList;
DocLnk lnk;
Config cfg( "OpiePlayer" );
cfg.setGroup("PlayList");
if(filename.left(4) == "http") {
QString m3uFile, m3uFilePath;
@@ -1126,13 +1126,13 @@ void PlayListWidget::populateSkinsMenu() {
}
++it;
}
}
void PlayListWidget::skinsMenuActivated( int item ) {
- for( int i = defaultSkinIndex; i > defaultSkinIndex - skinsMenu->count(); i-- ) {
+ for(unsigned int i = defaultSkinIndex; i > defaultSkinIndex - skinsMenu->count(); i-- ) {
skinsMenu->setItemChecked( i, FALSE );
}
skinsMenu->setItemChecked( item, TRUE );
Config cfg( "OpiePlayer" );
cfg.setGroup("Options");