| 685 | } |
| 686 | |
| 687 | void 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 | |
| 713 | void MacroConditionDateEdit::showEvent(QShowEvent *) |
| 714 | { |
nothing calls this directly
no test coverage detected