Index: sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentSaline.qml =================================================================== diff -u -rd5e9940fa96373f6cc118dfa9761d95f361689a5 -r49dadacdb78d6e7a7e52bf405a4a3c9308f874e0 --- sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentSaline.qml (.../TreatmentAdjustmentSaline.qml) (revision d5e9940fa96373f6cc118dfa9761d95f361689a5) +++ sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentSaline.qml (.../TreatmentAdjustmentSaline.qml) (revision 49dadacdb78d6e7a7e52bf405a4a3c9308f874e0) @@ -34,8 +34,18 @@ titleText: qsTr("Fluid Delivery Settings") - contentItem: Item { id: _contentItem + onAboutToShow: { + _fluidBolusVolume.value = vTreatmentCreate.salineBolusVolume + } + + Item { id: _contentItem objectName: "_contentItem" + anchors { + top: parent.top + bottom: notification.top + left: parent.left + right: parent.right + } Item { id: _contentArea objectName: "_contentArea" @@ -55,10 +65,12 @@ objectName : "_fluidBolusVolume" text : qsTr("Fluid Bolus Volume") unitText : Variables.unitTextSaline + isActive : true minimum : vTreatmentRanges.salineBolusVolumeMin maximum : vTreatmentRanges.salineBolusVolumeMax step : vTreatmentRanges.salineBolusVolumeRes - value : { value = vTreatmentRanges.salineBolusVolumeDef } // set without binding + + onDidChange : function(vValue) { value = vValue } } } } @@ -67,6 +79,7 @@ objectName : "_confirmButton" anchors { bottom : parent.bottom + bottomMargin : Variables.defaultMargin horizontalCenter: parent.horizontalCenter } width : Variables.defaultButtonWidth @@ -79,14 +92,7 @@ onClicked : { _root.confirmClicked() - console.log("continue.onClicked") } } } - - footer: Item { id: _footerItem - objectName : "_footerItem" - width : parent.width - height : Variables.notificationHeight - } }