author | simon <simon> | 2002-12-04 11:03:26 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-04 11:03:26 (UTC) |
commit | 9b30090fddf1cc2e8ffbff70b164213118106167 (patch) (side-by-side diff) | |
tree | a328c893928233cd0f17f1842d150ecf87530efe /noncore/multimedia/opieplayer2/playlistwidget.cpp | |
parent | 63541c46776721ef5ae63903e5b40838c1c49a43 (diff) | |
download | opie-9b30090fddf1cc2e8ffbff70b164213118106167.zip opie-9b30090fddf1cc2e8ffbff70b164213118106167.tar.gz opie-9b30090fddf1cc2e8ffbff70b164213118106167.tar.bz2 |
- moving videoScan and audioScan into PlayListFileView
Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 93e7919..12b8a71 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -151,8 +151,6 @@ PlayListWidget::PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* par &mediaPlayerState, SLOT( setVideoGamma( int ) ) ); // see which skins are installed - videoScan=false; - audioScan=false; audioPopulated=false; videoPopulated=false; populateSkinsMenu(); @@ -254,7 +252,7 @@ void PlayListWidget::addAllToList() { // QTime t; // t.start(); - if(!audioScan) { + if(!audioView->scannedFiles()) { if(audioView->childCount() < 1) populateAudioView(); } @@ -270,7 +268,7 @@ void PlayListWidget::addAllToList() { d->selectedFiles->addToSelection( lnk); } - if(!videoScan) { + if(!videoView->scannedFiles()) { if(videoView->childCount() < 1) populateVideoView(); } @@ -314,7 +312,7 @@ void PlayListWidget::addAllToList() { void PlayListWidget::addAllMusicToList() { - if(!audioScan) { + if(!audioView->scannedFiles()) { if(audioView->childCount() < 1) populateAudioView(); } @@ -347,7 +345,7 @@ void PlayListWidget::addAllMusicToList() { void PlayListWidget::addAllVideoToList() { - if(!videoScan) { + if(!videoView->scannedFiles()) { if(videoView->childCount() < 1) populateVideoView(); } @@ -638,13 +636,13 @@ void PlayListWidget::playSelected() { void PlayListWidget::scanForAudio() { audioView->scanFiles(); - audioScan = true; + audioView->scannedFiles() = true; populateAudioView(); } void PlayListWidget::scanForVideo() { videoView->scanFiles(); - videoScan = true; + videoView->scannedFiles() = true; populateVideoView(); } @@ -652,7 +650,7 @@ void PlayListWidget::populateAudioView() { audioView->clear(); StorageInfo storageInfo; // const QList<FileSystem> &fs = storageInfo.fileSystems(); - if(!audioScan) { + if(!audioView->scannedFiles()) { scanForAudio(); } @@ -695,7 +693,7 @@ void PlayListWidget::populateVideoView() { StorageInfo storageInfo; // const QList<FileSystem> &fs = storageInfo.fileSystems(); - if(!videoScan ) { + if(!videoView->scannedFiles()) { scanForVideo(); } |