MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / UpdateTimeRemaining

Method UpdateTimeRemaining

plugins/base/macro-condition-timer.cpp:279–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void MacroConditionTimerEdit::UpdateTimeRemaining()
280{
281 if (!_entryData) {
282 _remaining->setText("-");
283 return;
284 }
285
286 if (_entryData->_paused) {
287 _remaining->setText(QString::number(_entryData->_remaining));
288 } else {
289 _remaining->setText(
290 QString::number(_entryData->_duration.TimeRemaining()));
291 }
292}
293
294void MacroConditionTimerEdit::SetPauseContinueButtonLabel()
295{

Callers

nothing calls this directly

Calls 2

setTextMethod · 0.80
TimeRemainingMethod · 0.80

Tested by

no test coverage detected