Index: sources/gui/qml/pages/treatment/TreatmentHome.qml =================================================================== diff -u -r0fc6d1c6c65ba935d7e5f0bc56130e99deada039 -ra42e662e05949b63abd4c1e51b814ce476c107d4 --- sources/gui/qml/pages/treatment/TreatmentHome.qml (.../TreatmentHome.qml) (revision 0fc6d1c6c65ba935d7e5f0bc56130e99deada039) +++ sources/gui/qml/pages/treatment/TreatmentHome.qml (.../TreatmentHome.qml) (revision a42e662e05949b63abd4c1e51b814ce476c107d4) @@ -126,6 +126,76 @@ } } + NotificationBarSmall { id: _notification + objectName : "_notification" + anchors.bottom : parent.bottom + height : 60 + visible : ! _alarmBar.visible && text + + property int source: -1 + + onTextChanged: { + if (text === "") { + source = -1 + } + } + + CloseButton { id: _dismissButton + objectName: "_dismissButton" + anchors { + top: parent.top + bottom: parent.bottom + right: parent.right + margins: 20 + } + width: height + visible: true + onClicked: { _notification.text = "" } + } + } + + Connections { target: vTreatmentAdjustmentBloodFlowRate + function onAdjustmentTriggered ( vValue ) { + if (vTreatmentAdjustmentBloodFlowRate.adjustment_Accepted) { + if (_notification.source === 0) { + _notification.text = "" + } + } + else { + _notification.text = vTreatmentAdjustmentBloodFlowRate.adjustment_ReasonText + _notification.source = 0 + } + } + } + + Connections { target: vTreatmentAdjustmentDialysateFlowRate + function onAdjustmentTriggered ( vValue ) { + if (vTreatmentAdjustmentDialysateFlowRate.adjustment_Accepted) { + if (_notification.source === 1) { + _notification.text = "" + } + } + else { + _notification.text = vTreatmentAdjustmentDialysateFlowRate.adjustment_ReasonText + _notification.source = 1 + } + } + } + + Connections { target: vTreatmentAdjustmentDialysateTemperature + function onAdjustmentTriggered ( vValue ) { + if (vTreatmentAdjustmentDialysateTemperature.adjustment_Accepted) { + if (_notification.source === 2) { + _notification.text = "" + } + } + else { + _notification.text = vTreatmentAdjustmentDialysateTemperature.adjustment_ReasonText + _notification.source = 2 + } + } + } + onVisibleChanged: { if (visible) { _mainMenu.hidden = true