Index: sources/gui/qml/pages/ManagerStack.qml =================================================================== diff -u -ra3eef4554f2619b7b89822e776032ce8a2b4ca1e -r1f927e37764a81fb6538b5cf7a74d8beacf56aac --- sources/gui/qml/pages/ManagerStack.qml (.../ManagerStack.qml) (revision a3eef4554f2619b7b89822e776032ce8a2b4ca1e) +++ sources/gui/qml/pages/ManagerStack.qml (.../ManagerStack.qml) (revision 1f927e37764a81fb6538b5cf7a74d8beacf56aac) @@ -127,8 +127,10 @@ clip: true spacing: Variables.defaultMargin id: _listView - model: vRxProfiles.rxProfilesList +// model: vRxProfiles.rxProfilesList + model: vRxProfiles.rxProfiles delegate: _rxProfile + } } @@ -159,7 +161,7 @@ rightMargin: Variables.defaultMargin * 2 } Text { - text: modelData + text: profileName font.pointSize : Fonts.fontPixelButton * 1.4 width: parent.width horizontalAlignment: Text.AlignLeft @@ -171,21 +173,93 @@ anchors { left : _componentColumn.left } - property int componentWidth: parent.width / 10 - 5 - Repeater{ - model: _managerHome.treatmentFields[rxItem.index] - delegate: RxProfileComponent{ -// id: _comp1 - title : qsTr(modelData.title) - height : 370 - (100 + Variables.defaultMargin * 2) - width : parent.width / 10 - 5 - value : modelData.value - unitText : modelData.units - } - } + property int componentWidth: parent.width / 9 - 5 + RxProfileComponent{ + id: _bloodflowComp + title : "Blood Flow" + height : 370 - (100 + Variables.defaultMargin * 2) + width : parent.width / 9 - 5 + value : bloodFlow + unitText : "mL/min" + } + RxProfileComponent{ + id: _diaflowComp + title : "Dialysate Flow" + height : 370 - (100 + Variables.defaultMargin * 2) + width : parent.width / 9 - 5 + value : dialysateFlow + unitText : "mL/min" + } + RxProfileComponent{ + id: _txDurComp + title : "Duration" + height : 370 - (100 + Variables.defaultMargin * 2) + width : parent.width / 9 - 5 + value : treatmentDuration + unitText : "min" + } + RxProfileComponent{ + id: _HeparinComp + title : "Heparin" + height : 370 - (100 + Variables.defaultMargin * 2) + width : parent.width / 9 - 5 + value : heparinVolume + unitText : "mL" + } + RxProfileComponent{ + id: _ACComp + title : "Acid" + height : 370 - (100 + Variables.defaultMargin * 2) + width : parent.width / 9 - 5 + value : acidConcentrate + unitText : "" + } + RxProfileComponent{ + id: _BcComp + title : "Bicarbonate" + height : 370 - (100 + Variables.defaultMargin * 2) + width : parent.width / 9 - 5 + value : bicarbConcentrate + unitText : "" + } + RxProfileComponent{ + id: _DialyzerComp + title : "Dialyzer" + height : 370 - (100 + Variables.defaultMargin * 2) + width : parent.width / 9 - 5 + value : dialyzertype + unitText : "" + } + RxProfileComponent{ + id: _TempComp + title : "Dialysate Temp" + height : 370 - (100 + Variables.defaultMargin * 2) + width : parent.width / 9 - 5 + value : dialysateTemperature + unitText : "C" + } + RxProfileComponent{ + id: _VitalsComp + title : "Vitals Interval" + height : 370 - (100 + Variables.defaultMargin * 2) + width : parent.width / 9 - 5 + value : vitalSigns + unitText : "min" + } +// Repeater{ +// model: _managerHome.treatmentFields[rxItem.index] +// delegate: RxProfileComponent{ +//// id: _comp1 +// title : qsTr(modelData.title) +// height : 370 - (100 + Variables.defaultMargin * 2) +// width : parent.width / 10 - 5 +// value : modelData.value +// unitText : modelData.units +// } +// } } Text { - text: 'Last Modified: ' + rxItem.number + text: 'Last Modified: ' + lastModifiedDate width: parent.width // Makes it stretch horizontalAlignment: Text.AlignRight font.pointSize : Fonts.fontPixelButton @@ -200,6 +274,7 @@ if (visible) { _mainMenu.hidden = false vRxProfiles.doInitRxProfilesList() +// console.log("MEOWW", Object.keys(vRxProfiles.rxProfiles.get(0))) } else { stackView.initialItem = null