Index: sources/gui/qml/pages/treatment/sections/TreatmentPressureComponent.qml =================================================================== diff -u -r23f8a6036e22f80c3c5fd2834a2980bb62d2a34d -rb6964f987cdc41c7ad3c3ad8f7dffc30d75b3205 --- sources/gui/qml/pages/treatment/sections/TreatmentPressureComponent.qml (.../TreatmentPressureComponent.qml) (revision 23f8a6036e22f80c3c5fd2834a2980bb62d2a34d) +++ sources/gui/qml/pages/treatment/sections/TreatmentPressureComponent.qml (.../TreatmentPressureComponent.qml) (revision b6964f987cdc41c7ad3c3ad8f7dffc30d75b3205) @@ -7,7 +7,7 @@ import "qrc:/globals" import "qrc:/components" -Row { id: _row +Row { id: _root property alias minimum : _rangeBar.minimum property alias maximum : _rangeBar.maximum property alias lowerBound : _rangeBar.lowerBound @@ -20,32 +20,29 @@ property int titleSize : 35 property int valueSize : 70 - property int prevMaximum : _rangeBar.maximum - property int prevMinimum : _rangeBar.minimum - property bool valueOutRangeNotify : true spacing : Variables.defaultMargin Text { id: _title - width : 200 - height : 50 + width : Variables.treatmentPressureTitleWidth + height : Variables.contentHeight color : Colors.pressuresText font { - pixelSize : _row.titleSize + pixelSize : _root.titleSize weight : Font.Medium } verticalAlignment : Text.AlignVCenter } Text { id: _value - width : 50 - height : 50 + width : Variables.treatmentPressureValueWidth + height : Variables.contentHeight text : pressure > 0 ? "+" + pressure : pressure color : Colors.pressuresText font { - pixelSize : _row.valueSize + pixelSize : _root.valueSize weight : Font.Bold } verticalAlignment : Text.AlignVCenter @@ -54,16 +51,13 @@ RangeBar { id: _rangeBar height : barHeight - width : _row.width * 0.60 + width : _root.width * 0.60 anchors.verticalCenter : parent.verticalCenter anchors.verticalCenterOffset: Variables.defaultMargin rangebar.color : barColor markerOutRangeNotify: _root.valueOutRangeNotify - color : valueOutRangeNotify ? Colors.backgroundRangeRect : + color : _root.valueOutRangeNotify ? Colors.backgroundRangeRect : rangebar.color markerBoundColor : Colors.rangeMarker - - Behavior on minimum { NumberAnimation { duration: 1000 } } - Behavior on maximum { NumberAnimation { duration: 1000 } } } }