Index: sources/gui/qml/pages/treatment/sections/TreatmentFluid.qml =================================================================== diff -u -r27cc308ff5113a9386899d3c8f8b29962a8498e1 -r4db98fa94973838da9226afc85e33ec889f7fd00 --- sources/gui/qml/pages/treatment/sections/TreatmentFluid.qml (.../TreatmentFluid.qml) (revision 27cc308ff5113a9386899d3c8f8b29962a8498e1) +++ sources/gui/qml/pages/treatment/sections/TreatmentFluid.qml (.../TreatmentFluid.qml) (revision 4db98fa94973838da9226afc85e33ec889f7fd00) @@ -38,6 +38,7 @@ property int volumeTextWidth : 60 property string unit : Variables.unitTextFluid + property int valueDecimal : 0 property alias valueTarget : _fluidTarget .value property alias valueCumulative : _cumulativeValue .value property alias valueDelivered : _fluidProgressBar .value @@ -102,7 +103,7 @@ baseline: parent.baseline } horizontalAlignment: Text.AlignRight - text: _fluidProgressBar.value + text: _root.valueDelivered.toFixed(_root.valueDecimal) width: 60 font.pixelSize: Fonts.fontPixelFluidValue color: Colors.fluidText @@ -124,6 +125,7 @@ maximum : _fluidTarget.value value : 0 + decimal : _root.valueDecimal } Text { id: _cumulativeText @@ -155,7 +157,7 @@ baseline: parent.baseline } horizontalAlignment: Text.AlignRight - text: value + text: value.toFixed(_root.valueDecimal) width: 60 font.pixelSize: Fonts.fontPixelFluidValue color: Colors.fluidText Index: sources/gui/qml/pages/treatment/sections/TreatmentHeparin.qml =================================================================== diff -u -r301c0a2101eb9374145ae274c8d91460fc9a6a62 -r4db98fa94973838da9226afc85e33ec889f7fd00 --- sources/gui/qml/pages/treatment/sections/TreatmentHeparin.qml (.../TreatmentHeparin.qml) (revision 301c0a2101eb9374145ae274c8d91460fc9a6a62) +++ sources/gui/qml/pages/treatment/sections/TreatmentHeparin.qml (.../TreatmentHeparin.qml) (revision 4db98fa94973838da9226afc85e33ec889f7fd00) @@ -71,7 +71,8 @@ _private.textHeparin unit : Variables.unitTextSaline - valueDelivered: vTreatmentHeparin.cumulative.toFixed(1) // this is the cumulative volume of the Heparin bolus and despensing. + valueDecimal : Variables.heparinPrecision + valueDelivered : vTreatmentHeparin.cumulative // this is the cumulative volume of the Heparin bolus and despensing. VTreatmentHeparin { id: vTreatmentHeparin }