Index: sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentDurationConfirm.qml =================================================================== diff -u -rd948f4557217f1f0258e027a81e0b939a72fcae6 -rd14136d218b5dbc0734f7949b30541d242bcd350 --- sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentDurationConfirm.qml (.../TreatmentAdjustmentDurationConfirm.qml) (revision d948f4557217f1f0258e027a81e0b939a72fcae6) +++ sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentDurationConfirm.qml (.../TreatmentAdjustmentDurationConfirm.qml) (revision d14136d218b5dbc0734f7949b30541d242bcd350) @@ -36,56 +36,76 @@ signal confirmClicked(int vNewTreatmentDuration) - Item { id: _infoArea - objectName: "_infoArea" + Row { id: _infoRow + objectName: "_infoRow" + + readonly property int cellWidth: _root.width / 3.5 + anchors { - top: parent.top - bottom: _confirmButton.top - left: parent.left - leftMargin: Variables.defaultMargin * 2 - right: parent.right - rightMargin : anchors.leftMargin + top : parent.top + topMargin : Variables.defaultMargin * 2 + horizontalCenter: parent.horizontalCenter } + spacing: Variables.defaultMargin * 2 - Row { id: _infoRow - objectName: "_infoRow" + LabelUnitText { id: _newTreatmentDuration + objectName: "_newTreatmentDuration" + width : _infoRow.cellWidth + label : qsTr("New Treatment Duration") + unit : Variables.unitTextDuration + value : _root.newTreatmentDuration + valueColor : Colors.ufVolumeGoalText + } - readonly property int cellWidth: (_infoRow.width - (_infoRow.spacing * 2)) / 3 + LabelUnitText { id: _ufVolumeGoal + objectName : "_ufVolumeGoal" + width : _infoRow.cellWidth + label : qsTr("UF Volume Goal") + unit : Variables.unitVolume + value : _root.ufVolumeGoal.toFixed(Variables.ultrafiltrationPrecision) + valueColor : Colors.ufVolumeGoalText + } + } - anchors { - left : parent.left - right : parent.right - verticalCenter : parent.verticalCenter - } - spacing: Variables.defaultMargin * 2 + Rectangle { id: _divider + objectName: "_divider" + anchors { + top: _infoRow.bottom + topMargin: Variables.defaultMargin * 3 + left: parent.left + leftMargin: 50 + right: parent.right + rightMargin: anchors.leftMargin + } + height : 2 + color : Colors.panelBorderColor + } - LabelUnitText { id: _ufVolumeGoal - objectName : "_ufVolumeGoal" - width : _infoRow.cellWidth - label : qsTr("UF Volume Goal") - unit : Variables.unitVolume - value : _root.ufVolumeGoal.toFixed(Variables.ultrafiltrationPrecision) - valueColor : Colors.ufVolumeGoalText - } + Text { id: _description + objectName : "_description" + anchors { + top: _divider.bottom + topMargin: _divider.anchors.topMargin + horizontalCenter: parent.horizontalCenter + } +// width : _infoRow.cellWidth + text : qsTr("A new UF rate will be applied to achieve the ultrafiltration volume goal.") + color : Colors.offWhite + font.pixelSize : Fonts.fontPixelContainerTitleSmall + } - LabelUnitText { id: _ufRate - objectName : "_ufRate" - width : _infoRow.cellWidth - label : qsTr("New UF Rate") - unit : Variables.unitTextRate - value : _root.ufRate.toFixed(Variables.ultrafiltrationPrecision) - valueColor : Colors.ufVolumeGoalText - } - - LabelUnitText { id: _newTreatmentDuration - objectName: "_newTreatmentDuration" - width : _infoRow.cellWidth - label : qsTr("New Treatment Duration") - unit : Variables.unitTextDuration - value : _root.newTreatmentDuration - valueColor : Colors.ufVolumeGoalText - } + LabelUnitText { id: _ufRate + objectName : "_ufRate" + anchors { + top: _description.bottom + topMargin: _description.anchors.topMargin + horizontalCenter: parent.horizontalCenter } + width : _infoRow.cellWidth + label : qsTr("New UF Rate") + unit : Variables.unitTextRate + value : _root.ufRate.toFixed(Variables.ultrafiltrationPrecision) + valueColor : Colors.ufVolumeGoalText } TouchRect { id: _confirmButton