Index: sources/gui/qml/components/MainMenu.qml =================================================================== diff -u -r69c86c57349b7d4a6ba47a801ba27b1c470fade5 -r45ce5cd058a8d0239d486e0ab4b057731f7dba76 --- sources/gui/qml/components/MainMenu.qml (.../MainMenu.qml) (revision 69c86c57349b7d4a6ba47a801ba27b1c470fade5) +++ sources/gui/qml/components/MainMenu.qml (.../MainMenu.qml) (revision 45ce5cd058a8d0239d486e0ab4b057731f7dba76) @@ -34,8 +34,9 @@ property color backgroundColor : Colors.backgroundMainMenu property int highlightHeight : 10 property bool isMainTreatment : false - readonly property int currentScreen : isMainTreatment ? model.get(index).screen : 0 - property color statusColor : Colors.transparent + readonly property int currentScreen : isMainTreatment ? _model.get(index).screen : 0 + property color heparinStatusColor : Colors.transparent + property color hdfStatusColor : Colors.transparent width : parent.width height : Variables.mainMenuHeight @@ -104,7 +105,7 @@ border.width: 0 pixelSize : titlePixelSize - Rectangle { id: _heparinStatus + Rectangle { id: _status anchors { left : parent.left leftMargin : Variables.defaultMargin * 2 @@ -115,8 +116,10 @@ height : 15 width : height radius : height - visible : _root.isMainTreatment && model.screen === MainMenu.Heparin - color : _root.statusColor + visible : _root.isMainTreatment && ( model.screen === MainMenu.Heparin || + model.screen === MainMenu.HDF ) + color : model.screen === MainMenu.Heparin ? _root.heparinStatusColor : + model.screen === MainMenu.HDF ? _root.hdfStatusColor : Colors.transparent } onPressed: {