Index: sources/gui/qml/pages/treatment/TreatmentStack.qml =================================================================== diff -u -r7805806e4370be4d9207872e916f478875bd4ba6 -r36a488a3d29449ffedfe364d0031ed74d03c0ae0 --- sources/gui/qml/pages/treatment/TreatmentStack.qml (.../TreatmentStack.qml) (revision 7805806e4370be4d9207872e916f478875bd4ba6) +++ sources/gui/qml/pages/treatment/TreatmentStack.qml (.../TreatmentStack.qml) (revision 36a488a3d29449ffedfe364d0031ed74d03c0ae0) @@ -59,81 +59,17 @@ MainMenu { id: _treatmentMenu position : MainMenu.Position.Top hidden : true - titles : [ qsTr("Treatment") , qsTr("Trends") , qsTr("Heparin") ] - visibleItems : [ true , true , true ] + titles : [ qsTr("Treatment") ] + visibleItems : [ true ] spacing : Variables.defaultMargin leftPdding : Variables.headerBarDateTimeWidth + Variables.columnSpacing // 200 + 60 partitionWidth : 80 * titles.length// Todo Important : max width should be the width for all bottons titlePixelSize : 32 onCurrentIndexChanged: { - console.debug("INDEX + " + currentIndex) - console.debug("stackView + " + stackView.index) - console.debug("depth + " + stackView.depth) - if (stackView.depth > 2) pop() - if (currentIndex === 2) push(_treatmentHeparin) - if (currentIndex === 1) push(_treatmentTrends) - if (currentIndex === 0) pop() + if (currentIndex === 1) push(_treatmentTrends) + if (currentIndex === 0) pop() } - - Row { id: _headerButtonRow - width : 350 - height : parent.height - - spacing : Variables.defaultMargin - anchors { - right : parent.right - rightMargin : Variables.defaultMargin - } - - TouchRect { id : _prescriptionButton - width : Variables.mainMenuHeight - height : Variables.mainMenuHeight - border.color: "transparent" - - Image { id : _prescriptionImage - anchors.centerIn: parent - height : Variables.mainTreatmentIconDiameter - width : Variables.mainTreatmentIconDiameter - fillMode: Image.PreserveAspectFit - source : "qrc:/images/iPrescription" - } - - onPressed: print("Prescription button pressed!") - } - - TouchRect { id : _settingsButton - width : Variables.mainMenuHeight - height : Variables.mainMenuHeight - border.color: "transparent" - - Image { id : _settingsImage - anchors.centerIn: parent - height : Variables.mainTreatmentIconDiameter - width : Variables.mainTreatmentIconDiameter - fillMode: Image.PreserveAspectFit - source : "qrc:/images/iSettings" - } - - onPressed: print("Settings button pressed!") - } - - TouchRect { id : _wifiButton - width : Variables.mainMenuHeight - height : Variables.mainMenuHeight - border.color: "transparent" - - Image { id : _wifiImage - anchors.centerIn: parent - height : Variables.mainTreatmentIconDiameter - width : Variables.mainTreatmentIconDiameter - fillMode: Image.PreserveAspectFit - source : "qrc:/images/iWifi" - } - - onPressed: print("Wifi button pressed!") - } - } } TreatmentBloodPrime { id: _treatmentBloodPrime }