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

Method UpdateEntryData

plugins/base/macro-condition-date.cpp:687–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687void MacroConditionDateEdit::UpdateEntryData()
688{
689 if (!_entryData) {
690 return;
691 }
692 _weekCondition->setCurrentIndex(
693 static_cast<int>(_entryData->_condition));
694 _days->SetSelectedDays(_entryData->_days);
695 _ignoreWeekTime->setChecked(!_entryData->_ignoreTime);
696 _weekTime->setTime(_entryData->GetDateTime1().time());
697 _condition->setCurrentIndex(static_cast<int>(_entryData->_condition));
698 _date->setDate(_entryData->GetDateTime1().date());
699 _time->setTime(_entryData->GetDateTime1().time());
700 _date2->setDate(_entryData->GetDateTime2().date());
701 _time2->setTime(_entryData->GetDateTime2().time());
702 _ignoreDate->setChecked(!_entryData->_ignoreDate);
703 _ignoreTime->setChecked(!_entryData->_ignoreTime);
704 _repeat->setChecked(_entryData->_repeat);
705 _updateOnRepeat->setChecked(_entryData->_updateOnRepeat);
706 _duration->SetDuration(_entryData->_duration);
707 _duration->setDisabled(!_entryData->_repeat);
708 _pattern->setText(QString::fromStdString(_entryData->_pattern));
709 ShowNextMatch();
710 SetWidgetStatus();
711}
712
713void MacroConditionDateEdit::showEvent(QShowEvent *)
714{

Callers

nothing calls this directly

Calls 6

SetSelectedDaysMethod · 0.80
setCheckedMethod · 0.80
GetDateTime1Method · 0.80
GetDateTime2Method · 0.80
setTextMethod · 0.80
SetDurationMethod · 0.45

Tested by

no test coverage detected