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

Method PlaybackController

YUViewLib/src/ui/PlaybackController.cpp:86–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86PlaybackController::PlaybackController()
87{
88 this->ui.setupUi(this);
89
90 if (is_Q_OS_MAC)
91 // There is a bug in Qt that significantly slows down drawing QSlider ticks on Mac
92 this->ui.frameSlider->setTickPosition(QSlider::NoTicks);
93
94 this->ui.fpsLabel->setText("0");
95 this->ui.fpsLabel->setStyleSheet("");
96
97 QSettings settings;
98 const auto repeatModeOffIndex = static_cast<int>(RepeatModeMapper.indexOf(RepeatMode::Off));
99 auto repeatModeIdx = settings.value("RepeatMode", repeatModeOffIndex).toInt();
100 if (auto newRepeatMode = RepeatModeMapper.at(repeatModeIdx))
101 this->repeatMode = *newRepeatMode;
102
103 this->loadButtonIcons();
104 this->updatePlayPauseButtonIcon();
105 this->ui.stopButton->setIcon(this->iconStop);
106 this->setRepeatModeAndUpdateIcons(this->repeatMode);
107
108 this->updateSettings();
109 this->enableControls(false);
110}
111
112void PlaybackController::setSplitViews(splitViewWidget *primary, splitViewWidget *separate)
113{

Callers

nothing calls this directly

Calls 9

loadButtonIconsMethod · 0.95
updateSettingsMethod · 0.95
enableControlsMethod · 0.95
setupUiMethod · 0.80
setTextMethod · 0.80
indexOfMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected