author | simon <simon> | 2002-12-04 11:51:16 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-04 11:51:16 (UTC) |
commit | d75c4d9a27fcfc38ac3f9fd58f6b398809ec6a94 (patch) (unidiff) | |
tree | 48ef914d460feaaec1a29860067a5b84fb862ae6 /noncore/multimedia | |
parent | df599e48ffde0e5272e511bba57363ac28a67b2d (diff) | |
download | opie-d75c4d9a27fcfc38ac3f9fd58f6b398809ec6a94.zip opie-d75c4d9a27fcfc38ac3f9fd58f6b398809ec6a94.tar.gz opie-d75c4d9a27fcfc38ac3f9fd58f6b398809ec6a94.tar.bz2 |
- scannedFiles is no more public
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistfileview.h | 4 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 20 |
2 files changed, 4 insertions, 20 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistfileview.h b/noncore/multimedia/opieplayer2/playlistfileview.h index abe1bb8..6eea2fc 100644 --- a/noncore/multimedia/opieplayer2/playlistfileview.h +++ b/noncore/multimedia/opieplayer2/playlistfileview.h | |||
@@ -12,10 +12,6 @@ public: | |||
12 | PlayListFileView( const QString &mimeTypePattern, const QString &itemPixmapName, QWidget *parent, const char *name = 0 ); | 12 | PlayListFileView( const QString &mimeTypePattern, const QString &itemPixmapName, QWidget *parent, const char *name = 0 ); |
13 | virtual ~PlayListFileView(); | 13 | virtual ~PlayListFileView(); |
14 | 14 | ||
15 | // both temporarily accessible that way until the caller code has | ||
16 | // been migrated into this class | ||
17 | bool &scannedFiles() { return m_scannedFiles; } | ||
18 | |||
19 | public slots: | 15 | public slots: |
20 | void scanFiles(); | 16 | void scanFiles(); |
21 | void populateView(); | 17 | void populateView(); |
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index eb0606d..e754067 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -250,10 +250,7 @@ void PlayListWidget::addAllToList() { | |||
250 | // QTime t; | 250 | // QTime t; |
251 | // t.start(); | 251 | // t.start(); |
252 | 252 | ||
253 | if(!audioView->scannedFiles()) { | 253 | audioView->populateView(); |
254 | if(audioView->childCount() < 1) | ||
255 | audioView->populateView(); | ||
256 | } | ||
257 | 254 | ||
258 | QListViewItemIterator audioIt( audioView ); | 255 | QListViewItemIterator audioIt( audioView ); |
259 | DocLnk lnk; | 256 | DocLnk lnk; |
@@ -266,10 +263,7 @@ void PlayListWidget::addAllToList() { | |||
266 | d->selectedFiles->addToSelection( lnk); | 263 | d->selectedFiles->addToSelection( lnk); |
267 | } | 264 | } |
268 | 265 | ||
269 | if(!videoView->scannedFiles()) { | 266 | videoView->populateView(); |
270 | if(videoView->childCount() < 1) | ||
271 | videoView->populateView(); | ||
272 | } | ||
273 | 267 | ||
274 | QListViewItemIterator videoIt( videoView ); | 268 | QListViewItemIterator videoIt( videoView ); |
275 | for ( ; videoIt.current(); ++videoIt ) { | 269 | for ( ; videoIt.current(); ++videoIt ) { |
@@ -310,10 +304,7 @@ void PlayListWidget::addAllToList() { | |||
310 | 304 | ||
311 | void PlayListWidget::addAllMusicToList() { | 305 | void PlayListWidget::addAllMusicToList() { |
312 | 306 | ||
313 | if(!audioView->scannedFiles()) { | 307 | audioView->populateView(); |
314 | if(audioView->childCount() < 1) | ||
315 | audioView->populateView(); | ||
316 | } | ||
317 | 308 | ||
318 | QListViewItemIterator audioIt( audioView ); | 309 | QListViewItemIterator audioIt( audioView ); |
319 | DocLnk lnk; | 310 | DocLnk lnk; |
@@ -343,10 +334,7 @@ void PlayListWidget::addAllMusicToList() { | |||
343 | 334 | ||
344 | void PlayListWidget::addAllVideoToList() { | 335 | void PlayListWidget::addAllVideoToList() { |
345 | 336 | ||
346 | if(!videoView->scannedFiles()) { | 337 | videoView->populateView(); |
347 | if(videoView->childCount() < 1) | ||
348 | videoView->populateView(); | ||
349 | } | ||
350 | 338 | ||
351 | QListViewItemIterator videoIt( videoView ); | 339 | QListViewItemIterator videoIt( videoView ); |
352 | DocLnk lnk; | 340 | DocLnk lnk; |