| 558 | } |
| 559 | |
| 560 | void VisualizerWindow::nextScan() { |
| 561 | if (reader_ == nullptr) return; |
| 562 | |
| 563 | if (currentScanIdx_ < reader_->count() - 1) { |
| 564 | ui_.sldTimeline->setValue(currentScanIdx_ + 1); |
| 565 | } else { |
| 566 | if (ui_.btnPlay->isChecked()) { |
| 567 | play(false); |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | updatePlaybackControls(); |
| 572 | } |
| 573 | |
| 574 | void VisualizerWindow::optimizeGraph() { |
| 575 | Stopwatch::tic(); |