| 601 | } |
| 602 | |
| 603 | void PlaybackController::timerEvent(QTimerEvent *event) |
| 604 | { |
| 605 | if (event && event->timerId() != timer.timerId()) |
| 606 | { |
| 607 | DEBUG_PLAYBACK("PlaybackController::timerEvent Different Timer IDs"); |
| 608 | QWidget::timerEvent(event); |
| 609 | return; |
| 610 | } |
| 611 | |
| 612 | if (!this->anyItemIndexedByFrame()) |
| 613 | { |
| 614 | DEBUG_PLAYBACK("PlaybackController::timerEvent Showing Static Item"); |
| 615 | const QSignalBlocker blocker1(this->ui.frameSlider); |
| 616 | const QSignalBlocker blocker2(this->ui.frameSpinBox); |
| 617 | if (this->countDownForStaticItem.tickAndGetIsExpired()) |
| 618 | this->goToNextItem(); |
| 619 | else |
| 620 | { |
| 621 | this->ui.frameSlider->setValue(this->ui.frameSlider->value() + 1); |
| 622 | this->ui.frameSpinBox->setValue((this->countDownForStaticItem.getCurrentTick() / 10 + 1)); |
| 623 | } |
| 624 | return; |
| 625 | } |
| 626 | |
| 627 | if (auto nextFrameIdx = this->getNextFrameIndexInCurrentItem()) |
| 628 | this->goToNextFrame(*nextFrameIdx); |
| 629 | else |
| 630 | this->goToNextItem(); |
| 631 | } |
| 632 | |
| 633 | void PlaybackController::currentSelectedItemsDoubleBufferLoad(int itemID) |
| 634 | { |
no test coverage detected