MCPcopy Create free account
hub / github.com/IENT/YUView / timerEvent

Method timerEvent

YUViewLib/src/ui/PlaybackController.cpp:603–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603void 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
633void PlaybackController::currentSelectedItemsDoubleBufferLoad(int itemID)
634{

Calls 6

anyItemIndexedByFrameMethod · 0.95
goToNextItemMethod · 0.95
goToNextFrameMethod · 0.95
tickAndGetIsExpiredMethod · 0.80
getCurrentTickMethod · 0.80

Tested by

no test coverage detected