Index: sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentDuration.qml =================================================================== diff -u -r89426b2b3d45008f5e6cb19e0c7adef3a242ce36 -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentDuration.qml (.../TreatmentAdjustmentDuration.qml) (revision 89426b2b3d45008f5e6cb19e0c7adef3a242ce36) +++ sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentDuration.qml (.../TreatmentAdjustmentDuration.qml) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,13 +1,13 @@ /*! * - * Copyright (c) 2020-2023 Diality Inc. - All Rights Reserved. + * Copyright (c) 2020-2024 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file TreatmentAdjustmentDuration.qml - * \author (last) Behrouz NematiPour - * \date (last) 16-Oct-2020 + * \author (last) Vy + * \date (last) 11-May-2023 * \author (original) Behrouz NematiPour * \date (original) 27-Apr-2020 * @@ -29,7 +29,7 @@ TreatmentAdjustmentBase { id: _root contentItem.objectName: "TreatmentAdjustmentDuration" //SquishQt testability - /* -- */ property alias durationValue : _durationSlider.value + readonly property real durationValue : _durationSlider.value readonly property alias durationMinimum : _durationSlider.minimum readonly property alias durationMaximum : _durationSlider.maximum readonly property alias durationStep : _durationSlider.step @@ -39,6 +39,11 @@ property int textWidth : 200 + // Due to how the slider is set up, a setter function is needed to set the slider value + function setDurationValue(value) { + _durationSlider.reset(value) + } + titleText: qsTr("TREATMENT DURATION") Item { id : _container