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

Method setRepeatModeAndUpdateIcons

YUViewLib/src/ui/PlaybackController.cpp:144–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void PlaybackController::setRepeatModeAndUpdateIcons(const RepeatMode mode)
145{
146 QSettings settings;
147 settings.setValue("RepeatMode", static_cast<int>(RepeatModeMapper.indexOf(mode)));
148 this->repeatMode = mode;
149
150 if (mode == RepeatMode::Off)
151 this->ui.repeatModeButton->setIcon(this->iconRepeatOff);
152 else if (mode == RepeatMode::One)
153 this->ui.repeatModeButton->setIcon(this->iconRepeatOne);
154 else if (mode == RepeatMode::All)
155 this->ui.repeatModeButton->setIcon(this->iconRepeatAll);
156}
157
158void PlaybackController::on_stopButton_clicked()
159{

Callers 2

PlaybackControllerMethod · 0.95

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected