| 587 | } |
| 588 | |
| 589 | std::optional<int> PlaybackController::getNextFrameIndexInCurrentItem() |
| 590 | { |
| 591 | const auto isSliderAtEnd = this->currentFrameIdx >= this->ui.frameSlider->maximum(); |
| 592 | |
| 593 | if (isSliderAtEnd || !this->anyItemIndexedByFrame()) |
| 594 | { |
| 595 | if (this->repeatMode == RepeatMode::One) |
| 596 | return this->ui.frameSlider->minimum(); |
| 597 | |
| 598 | return {}; |
| 599 | } |
| 600 | return this->currentFrameIdx + 1; |
| 601 | } |
| 602 | |
| 603 | void PlaybackController::timerEvent(QTimerEvent *event) |
| 604 | { |
no test coverage detected