This timer event is called regularly when the background loading process is running.
| 307 | |
| 308 | // This timer event is called regularly when the background loading process is running. |
| 309 | void playlistItemStatisticsFile::timerEvent(QTimerEvent *event) |
| 310 | { |
| 311 | if (event->timerId() != timer.timerId()) |
| 312 | return playlistItem::timerEvent(event); |
| 313 | |
| 314 | if (!backgroundParserFuture.isRunning()) |
| 315 | { |
| 316 | timer.stop(); |
| 317 | DEBUG_STAT("playlistItemStatisticsFile::timerEvent Background parsing done."); |
| 318 | } |
| 319 | |
| 320 | if (this->file) |
| 321 | this->prop.startEndRange = indexRange(0, this->file->getMaxPoc()); |
| 322 | emit SignalItemChanged(false, RECACHE_NONE); |
| 323 | } |