author | llornkcor <llornkcor> | 2002-08-13 23:57:49 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-08-13 23:57:49 (UTC) |
commit | 05a272a0dc03c37f143546aa5cde228bd3ba79bb (patch) (side-by-side diff) | |
tree | 2e994a06ebd2b66287905dce828c5f3e57a0147a | |
parent | 6baf582094b418ec1defa2415210a7d7583628ff (diff) | |
download | opie-05a272a0dc03c37f143546aa5cde228bd3ba79bb.zip opie-05a272a0dc03c37f143546aa5cde228bd3ba79bb.tar.gz opie-05a272a0dc03c37f143546aa5cde228bd3ba79bb.tar.bz2 |
remove unused variables
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 27db464..2521906 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -626,13 +626,13 @@ void PlayListWidget::setView( char view ) { void PlayListWidget::addSelected() { Config cfg( "OpiePlayer" ); cfg.setGroup("PlayList"); QString currentPlaylist = cfg.readEntry("CurrentPlaylist",""); - int noOfFiles = cfg.readNumEntry("NumberOfFiles", 0 ); +// int noOfFiles = cfg.readNumEntry("NumberOfFiles", 0 ); switch (tabWidget->currentPageIndex()) { case 0: //playlist break; case 1: { //audio QListViewItemIterator it( audioView ); @@ -673,12 +673,13 @@ void PlayListWidget::addSelected() { void PlayListWidget::removeSelected() { d->selectedFiles->removeSelected( ); } void PlayListWidget::playIt( QListViewItem *it) { + if(it==NULL) return; qDebug("playIt"); mediaPlayerState->setPlaying(FALSE); mediaPlayerState->setPlaying(TRUE); d->selectedFiles->unSelect(); } @@ -709,13 +710,13 @@ void PlayListWidget::addToSelection( QListViewItem *it) { break; }; tabWidget->setCurrentPage(0); } } -void PlayListWidget::tabChanged(QWidget *widg) { +void PlayListWidget::tabChanged(QWidget *) { switch ( tabWidget->currentPageIndex()) { case 0: { if( !tbDeletePlaylist->isHidden()) tbDeletePlaylist->hide(); @@ -799,13 +800,13 @@ void PlayListWidget::deletePlaylist() { break; case 1: // Cancel break; }; } -void PlayListWidget::viewPressed( int mouse, QListViewItem *item, const QPoint& point, int i) { +void PlayListWidget::viewPressed( int mouse, QListViewItem *, const QPoint& , int) { switch (mouse) { case 1: break; case 2:{ QPopupMenu m; m.insertItem( tr( "Play" ), this, SLOT( playSelected() )); @@ -819,13 +820,13 @@ void PlayListWidget::viewPressed( int mouse, QListViewItem *item, const QPoint& } void PlayListWidget::playSelected() { btnPlay( TRUE); } -void PlayListWidget::playlistViewPressed( int mouse, QListViewItem *item, const QPoint& point, int i) { +void PlayListWidget::playlistViewPressed( int mouse, QListViewItem *, const QPoint& , int ) { switch (mouse) { case 1: break; case 2: { @@ -840,13 +841,13 @@ void PlayListWidget::playlistViewPressed( int mouse, QListViewItem *item, const void PlayListWidget::listDelete() { Config cfg( "OpiePlayer" ); cfg.setGroup("PlayList"); QString currentPlaylist = cfg.readEntry("CurrentPlaylist",""); QString file; - int noOfFiles = cfg.readNumEntry("NumberOfFiles", 0 ); +// int noOfFiles = cfg.readNumEntry("NumberOfFiles", 0 ); switch ( tabWidget->currentPageIndex()) { case 0: break; case 1: { file = audioView->currentItem()->text(0); @@ -1037,13 +1038,13 @@ void PlayListWidget::keyReleaseEvent( QKeyEvent *e) break; } } -void PlayListWidget::keyPressEvent( QKeyEvent *e) +void PlayListWidget::keyPressEvent( QKeyEvent *) { // qDebug("Key press"); // switch ( e->key() ) { // ////////////////////////////// Zaurus keys // case Key_A: //add to playlist // qDebug("Add"); |