From ba2de7d7233c0fbbd8ef31fae7aa5a9ded70225e Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 04 Dec 2002 11:55:24 +0000 Subject: - scanForAudio and scanForVideo is scanFiles in the file list view, so removed the former and connect to the latter --- diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index e754067..86b3424 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -95,9 +95,9 @@ PlayListWidget::PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* par this,SLOT( openFile() ) ); pmPlayList->insertSeparator(-1); (void)new MenuItem( pmPlayList, tr( "Rescan for Audio Files" ), - this,SLOT( scanForAudio() ) ); + audioView, SLOT( scanFiles() ) ); (void)new MenuItem( pmPlayList, tr( "Rescan for Video Files" ), - this,SLOT( scanForVideo() ) ); + videoView, SLOT( scanFiles() ) ); pmView->insertItem( Resource::loadPixmap("fullscreen") , tr( "Full Screen"), &mediaPlayerState, SLOT( toggleFullscreen() ) ); @@ -617,15 +617,6 @@ void PlayListWidget::playSelected() { btnPlay( TRUE); } - -void PlayListWidget::scanForAudio() { - audioView->scanFiles(); -} - -void PlayListWidget::scanForVideo() { - videoView->scanFiles(); -} - QListView *PlayListWidget::currentFileListView() const { switch ( currentTab() ) { diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h index 8c22f17..5c8f30c 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.h +++ b/noncore/multimedia/opieplayer2/playlistwidget.h @@ -108,8 +108,6 @@ private slots: void pmViewActivated(int); void writem3u(); void writeCurrentM3u(); - void scanForAudio(); - void scanForVideo(); void openFile(); void setDocument( const QString& fileref ); void addToSelection( const DocLnk& ); // Add a media file to the playlist -- cgit v0.9.0.2