Index: sources/gui/qml/components/StoppedSlider.qml =================================================================== diff -u -r86aaf030d6eb405f301f703aa68e6854db7eb5d1 -r0785a7f6a49fb8b520b280390bb26ec73606d653 --- sources/gui/qml/components/StoppedSlider.qml (.../StoppedSlider.qml) (revision 86aaf030d6eb405f301f703aa68e6854db7eb5d1) +++ sources/gui/qml/components/StoppedSlider.qml (.../StoppedSlider.qml) (revision 0785a7f6a49fb8b520b280390bb26ec73606d653) @@ -38,9 +38,6 @@ signal pressed () signal released() - height : Variables.createTreatmentSliderHeight - width : Variables.createTreatmentSliderWidth - function reset(vValue) { _slider.reset(vValue) } @@ -77,13 +74,15 @@ pixelSize : Fonts.fontPixelButton weight : Font.Normal } + color : Colors.progressBarMinMax text : _root.minimum.toFixed(_root.decimal) + (_root.unit.length ? (" " + _root.unit) : "") } maxText { font { pixelSize : minText.font.pixelSize weight : minText.font.weight } + color : Colors.progressBarMinMax text : _root.maximum.toFixed(_root.decimal) + (_root.unit.length ? (" " + _root.unit) : "") } @@ -92,11 +91,11 @@ top : parent.top bottom : parent.bottom left : parent.left - right : _removedMarker.right + right : _lowMarker.right // adjust margin so fill completely covers the underlying slider leftMargin : -1 } - z : _removedMarker.z - 1 + z : _lowMarker.z - 1 color : Colors.ufProgressBarFill radius : height / 2 @@ -106,23 +105,23 @@ bottom : parent.bottom right : parent.right } - width : Math.min(parent.radius, _removedMarker.x) + width : Math.min(parent.radius, _lowMarker.x) color : parent.color } } - RangeMarker { id: _removedMarker - x : (_slider.width * (_slider.minStop / _slider.maximum)) - ((width+1)/2) + RangeMarker { id: _lowMarker + x : (_slider.width * ((value - _slider.minimum) / (_slider.maximum - _slider.minimum))) - ((width+1)/2) z : _slider.handler.z - 1 width : Variables.ultrafiltrationRangeMarkerWidth height : Variables.rangeMarkerHeight hasHandle : true valueOnTop : true decimal : Variables.ultrafiltrationPrecision - value : _root.minStop + value : Math.max(_root.minStop, _root.minimum) handle.width : Variables.ultrafiltrationRangeMarkerHandleWidth text { - anchors.bottomMargin: _removedMarker.valueOnTop ? 15 : 0 + anchors.bottomMargin: _lowMarker.valueOnTop ? 15 : 0 font { pixelSize: Fonts.fontPixelUltrafiltrationRangeMarker weight: Font.DemiBold