Index: sources/gui/qml/components/Slider.qml =================================================================== diff -u -ra0fca1850efe5a9d00bd3308e347d115ef36c479 -r00ed70b03062c6f4fa1bfd2e515efd777e086f85 --- sources/gui/qml/components/Slider.qml (.../Slider.qml) (revision a0fca1850efe5a9d00bd3308e347d115ef36c479) +++ sources/gui/qml/components/Slider.qml (.../Slider.qml) (revision 00ed70b03062c6f4fa1bfd2e515efd777e086f85) @@ -57,7 +57,13 @@ signal handleSelected() signal sliderSelected() - onValueChanged: _progressRect.value = value + // this function shall be used in case that any external value is forced to be set for the slider + // like the OFF switch wants to externally set the slider value and bypass slider controlls and checks. + // same is used in the main treatment Blood,dialyzer sliders to be set to the current value when get in to adjustment screen. + function reset(vValue) { + _root.value = vValue + _progressRect.value = vValue + } function incrementValue (vInStepSegments) { updateValue(vInStepSegments, true)