Index: sources/gui/qml/components/HeaderBar.qml =================================================================== diff -u -rb0370d82c7653eca5347374aa3f6b02a188c8fe7 -r4a7dd11138d2321f1ab8d324b3bd25f02eaefe84 --- sources/gui/qml/components/HeaderBar.qml (.../HeaderBar.qml) (revision b0370d82c7653eca5347374aa3f6b02a188c8fe7) +++ sources/gui/qml/components/HeaderBar.qml (.../HeaderBar.qml) (revision 4a7dd11138d2321f1ab8d324b3bd25f02eaefe84) @@ -12,6 +12,7 @@ readonly property int currentScreen : _headerMenu.currentScreen property bool isCreateRx : false // set in slot in parent property bool isHeparinFeatured : vSettings.heparinSyringePump + property bool isHDFFeatured : vTreatmentCreate.treatmentModality === HeaderBar.Mode_HDF width : Variables.applicationWidth height : Variables.headerHeight @@ -29,9 +30,18 @@ HDF = 3 } - onIsHeparinFeaturedChanged : vListModel.setHeaderbarVisible(HeaderBar.Heparin, _root.isHeparinFeatured) - Component.onCompleted : vListModel.setHeaderbarVisible(HeaderBar.Heparin, _root.isHeparinFeatured) + enum TreatmentModality { + Mode_HD , + Mode_HDF + } + onIsHDFFeaturedChanged : vListModel.setHeaderbarVisible(HeaderBar.HDF, _root.isHDFFeatured ) + onIsHeparinFeaturedChanged : vListModel.setHeaderbarVisible(HeaderBar.Heparin, _root.isHeparinFeatured ) + Component.onCompleted : { + vListModel.setHeaderbarVisible(HeaderBar.Heparin, _root.isHeparinFeatured ) + vListModel.setHeaderbarVisible(HeaderBar.HDF, _root.isHDFFeatured ) + } + function vitalsRecorded() { _vitalsButton.pulseAnimation.start() } MouseArea { id: _mouseArea