Index: sources/gui/qml/pages/treatment/sections/TreatmentPressureComponent.qml =================================================================== diff -u -r8fa24e534368d2baad16f262d31630996798977f -r7caa737179a8c31825ae6445f593ac7ff5f95080 --- sources/gui/qml/pages/treatment/sections/TreatmentPressureComponent.qml (.../TreatmentPressureComponent.qml) (revision 8fa24e534368d2baad16f262d31630996798977f) +++ sources/gui/qml/pages/treatment/sections/TreatmentPressureComponent.qml (.../TreatmentPressureComponent.qml) (revision 7caa737179a8c31825ae6445f593ac7ff5f95080) @@ -16,48 +16,51 @@ property alias title : _title.text property color barColor : Colors.backgroundRangeRect - property bool valueOutRangeNotify : true property int barHeight : 15 property int titleSize : 35 property int valueSize : 70 property int prevMaximum : _rangeBar.maximum property int prevMinimum : _rangeBar.minimum - spacing: Variables.defaultMargin + property bool valueOutRangeNotify : true + spacing : Variables.defaultMargin + Text { id: _title - width : 200 - height : 50 - color : Colors.pressuresText + width : 200 + height : 50 + color : Colors.pressuresText font { - pixelSize : _row.titleSize - weight : Font.Medium + pixelSize : _row.titleSize + weight : Font.Medium } - verticalAlignment : Text.AlignVCenter + verticalAlignment : Text.AlignVCenter } Text { id: _value width : 50 height : 50 - text : pressure > 0 ? "+" + pressure : pressure + text : pressure > 0 ? "+" + pressure : + pressure color : Colors.pressuresText font { pixelSize : _row.valueSize weight : Font.Bold } - verticalAlignment : Text.AlignVCenter - horizontalAlignment: Text.AlignRight + verticalAlignment : Text.AlignVCenter + horizontalAlignment : Text.AlignRight } RangeBar { id: _rangeBar height : barHeight width : _row.width * 0.60 - anchors.verticalCenter: parent.verticalCenter + anchors.verticalCenter : parent.verticalCenter anchors.verticalCenterOffset: Variables.defaultMargin rangebar.color : barColor markerOutRangeNotify: _root.valueOutRangeNotify - color : valueOutRangeNotify ? Colors.backgroundRangeRect : rangebar.color + color : valueOutRangeNotify ? Colors.backgroundRangeRect : + rangebar.color markerBoundColor : Colors.rangeMarker Behavior on minimum { NumberAnimation { duration: 1000 } }