Index: sources/gui/qml/pages/treatment/sections/TreatmentPressures.qml =================================================================== diff -u -r743b1bbe1b18908167d3f5f6f8b0d5c66cbe1295 -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/gui/qml/pages/treatment/sections/TreatmentPressures.qml (.../TreatmentPressures.qml) (revision 743b1bbe1b18908167d3f5f6f8b0d5c66cbe1295) +++ sources/gui/qml/pages/treatment/sections/TreatmentPressures.qml (.../TreatmentPressures.qml) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,13 +1,13 @@ /*! * - * Copyright (c) 2020-2022 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 TreatmentPressures.qml * \author (last) Behrouz NematiPour - * \date (last) 10-Nov-2020 + * \date (last) 31-May-2023 * \author (original) Behrouz NematiPour * \date (original) 01-Nov-2020 * @@ -26,18 +26,18 @@ * \brief Treatment Screen Pressure section */ TouchArea { id: _root - property int arterialMinimum : 0 - property int arterialLowerBound : 0 - property int arterialUpperBound : 0 - property int arterialMaximum : 0 - property int venousMinimum : 0 - property int venousLowerBound : 0 - property int venousUpperBound : 0 - property int venousMaximum : 0 + property int arterialMinimum : vTreatmentRanges.arterialPressureMonitorMin + property int arterialMaximum : vTreatmentRanges.arterialPressureMonitorMax + property int venousMinimum : vTreatmentRanges.venousPressureMonitorMin + property int venousMaximum : vTreatmentRanges.venousPressureMonitorMax - property int arterilPressure : 0 - property int venousPressure : 0 + property int arterialLowerBound : vTreatmentPressureOcclusion.arterialPressureLimitLowerBound + property int arterialUpperBound : vTreatmentPressureOcclusion.arterialPressureLimitUpperBound + property int venousLowerBound : vTreatmentPressureOcclusion.venousPressureLimitLowerBound + property int venousUpperBound : vTreatmentPressureOcclusion.venousPressureLimitUpperBound + property int arterialPressure : vTreatmentPressureOcclusion.arterialPressure + property int venousPressure : vTreatmentPressureOcclusion.venousPressure property bool valueOutRangeNotify : true @@ -49,20 +49,6 @@ isTouchable: true title: qsTr("PRESSURE") + " " + qsTr("(mmHg)") - /* - Since this Component cannot be bound to the properties since it has to make sure the request has been accepted. - Because the pressure response regardless of the accepted/rejected the FW Software message will pass what is preferred. - */ - function setBounds(vArterialLimitLow , - vArterialLimitHigh , - vVenousLimitLow , - vVenousLimitHigh ) { - _root.arterialLowerBound = vArterialLimitLow - _root.arterialUpperBound = vArterialLimitHigh - _root.venousLowerBound = vVenousLimitLow - _root.venousUpperBound = vVenousLimitHigh - } - RangeBar { id: _arterialRangeBar x: 0 y: 80 @@ -75,7 +61,7 @@ lowerBound : _root.arterialLowerBound upperBound : _root.arterialUpperBound maximum : _root.arterialMaximum - value : _root.arterilPressure + value : _root.arterialPressure color : valueOutRangeNotify ? Colors.backgroundRangeRect : rangebar.color Text { id: _arterialText