Index: sources/gui/qml/pages/pretreatment/create/PreTreatmentCreateContent.qml =================================================================== diff -u -rc0fb8d6ccf506d2c93efcb6a319a504d8b80a9b5 -rf7b92a45b2b7fa814fba3d080bcf91d465f279df --- sources/gui/qml/pages/pretreatment/create/PreTreatmentCreateContent.qml (.../PreTreatmentCreateContent.qml) (revision c0fb8d6ccf506d2c93efcb6a319a504d8b80a9b5) +++ sources/gui/qml/pages/pretreatment/create/PreTreatmentCreateContent.qml (.../PreTreatmentCreateContent.qml) (revision f7b92a45b2b7fa814fba3d080bcf91d465f279df) @@ -43,8 +43,8 @@ function canEdit (state) { editingEnabled = state } - function activateAndSync() { - syncAll () // needs to be first + function activateAndRefresh() { + refreshAll () // needs to be first _bloodFlowRateControl .active = true _dialysateFlowRateControl .active = true _durationControl .active = true @@ -59,19 +59,19 @@ _bpMeasurementIntervalControl .active = true } - function syncAll () { - _bloodFlowRateControl .sync() - _dialysateFlowRateControl .sync() - _durationControl .sync() - _heparinDispensingRateControl .sync() - _heparinBolusVolumeControl .sync() - _heparinStopTimeControl .sync() - _acidConcentrateComboBox .sync() - _bicarbonateConcentrateComboBox .sync() - _dialyzerTypeComboBox .sync() - _dialysateTemperatureControl .sync() - _salineBolusVolumeControl .sync() - _bpMeasurementIntervalControl .sync() + function refreshAll () { + _bloodFlowRateControl .refresh() + _dialysateFlowRateControl .refresh() + _durationControl .refresh() + _heparinDispensingRateControl .refresh() + _heparinBolusVolumeControl .refresh() + _heparinStopTimeControl .refresh() + _acidConcentrateComboBox .refresh() + _bicarbonateConcentrateComboBox .refresh() + _dialyzerTypeComboBox .refresh() + _dialysateTemperatureControl .refresh() + _salineBolusVolumeControl .refresh() + _bpMeasurementIntervalControl .refresh() } function clear () { @@ -139,7 +139,7 @@ function onDidValidationPass ( vValue ) { vPostTreatmentAdjustmentTreatmentLog.heparinDispensingRateOff = vTreatmentCreate.heparinDispensingRateOff = ! vTreatmentCreate.heparinDispensingRate vPostTreatmentAdjustmentTreatmentLog.heparinBolusVolumeOff = vTreatmentCreate.heparinBolusVolumeOff = ! vTreatmentCreate.heparinBolusVolume - activateAndSync() // sync on validation + activateAndRefresh() // refresh values on validation clearErrors() }