Index: sources/gui/qml/components/SliderCreateTreatment.qml =================================================================== diff -u -r1a9eb2756f33ec0387dd360e5c051ed9a04b9c1c -r9b99693be1aaf7306272f37e614b52c7085bcf44 --- sources/gui/qml/components/SliderCreateTreatment.qml (.../SliderCreateTreatment.qml) (revision 1a9eb2756f33ec0387dd360e5c051ed9a04b9c1c) +++ sources/gui/qml/components/SliderCreateTreatment.qml (.../SliderCreateTreatment.qml) (revision 9b99693be1aaf7306272f37e614b52c7085bcf44) @@ -27,6 +27,8 @@ Rectangle { id: _root property Flickable flickable: null + property var toggleSwich : null // it is the treatment slider custom Switch bu it will be defined outside of this component and the var type would suffice. + property bool adjustable : true property alias label : _label.text property alias decimal : _slider.decimal @@ -54,6 +56,15 @@ anchors.horizontalCenter: parent.horizontalCenter + function clear() { + reset(defaultValue) + active = false + if ( toggleSwich ) { + toggleSwich.checked = false + toggleSwich.active = false + } + } + function reset(vValue) { _slider.reset(vValue) }