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

Method enableControls

YUViewLib/src/ui/PlaybackController.cpp:571–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571void PlaybackController::enableControls(bool enable)
572{
573 this->ui.frameSlider->setEnabled(enable);
574 this->ui.frameSpinBox->setEnabled(enable);
575 this->ui.fpsLabel->setEnabled(enable);
576
577 const auto resetControls = !enable;
578 if (resetControls)
579 {
580 const QSignalBlocker blocker(this->ui.frameSlider);
581 this->ui.fpsLabel->setText("0");
582 this->ui.fpsLabel->setStyleSheet("");
583 this->playbackWasStalled = false;
584 }
585
586 this->controlsEnabled = enable;
587}
588
589std::optional<int> PlaybackController::getNextFrameIndexInCurrentItem()
590{

Callers 3

PlaybackControllerMethod · 0.95
updateFrameRangeMethod · 0.95

Calls 1

setTextMethod · 0.80

Tested by

no test coverage detected