Index: sources/gui/qml/compounds/BPHREntry.qml =================================================================== diff -u -r3146bf4ecddda5c50e80693ba281955af07f8cf9 -rc4dffe90d1a236a107599027b0b4248d25314af6 --- sources/gui/qml/compounds/BPHREntry.qml (.../BPHREntry.qml) (revision 3146bf4ecddda5c50e80693ba281955af07f8cf9) +++ sources/gui/qml/compounds/BPHREntry.qml (.../BPHREntry.qml) (revision c4dffe90d1a236a107599027b0b4248d25314af6) @@ -1,13 +1,13 @@ /*! * - * Copyright (c) 2021-2023 Diality Inc. - All Rights Reserved. + * Copyright (c) 2021-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 BPHREntry.qml - * \author (last) Vy - * \date (last) 26-Apr-2023 + * \author (last) Behrouz NematiPour + * \date (last) 23-Sep-2024 * \author (original) Behrouz NematiPour * \date (original) 21-Jun-2021 * @@ -51,6 +51,12 @@ width : _container.width height : _container.height + function clear() { + _root.systolic = "" + _root.diastolic = "" + _root.heartRate = "" + } + function setFocus(vShowKeyboard) { if(vShowKeyboard) { firstInput.textInput.forceActiveFocus() @@ -59,7 +65,7 @@ } QtObject { id: _private - property bool isBloodPressureCompareValid : (parseInt(_bloodPressureDiastolic.text) < parseInt(_bloodPressureSystolic.text)) + property bool isBloodPressureCompareValid : (parseInt(_bloodPressureDiastolic.text) <= parseInt(_bloodPressureSystolic.text)) } anchors.horizontalCenter: parent.horizontalCenter