| 45 | } |
| 46 | |
| 47 | void DurationSelection::SetDuration(const Duration &d) |
| 48 | { |
| 49 | _current = d; |
| 50 | _duration->SetValue(d._value); |
| 51 | const QSignalBlocker b(_unitSelection); |
| 52 | _unitSelection->setCurrentIndex(static_cast<int>(d._unit)); |
| 53 | } |
| 54 | |
| 55 | void DurationSelection::_DurationChanged(const NumberVariable<double> &value) |
| 56 | { |
no test coverage detected