Index: sources/gui/qml/components/RangeMarker.qml =================================================================== diff -u -ra5760947d3ed0d2748ba023a1c25e3c6aa0b1de1 -r77ba0083b790f7c1c851c60ecaeaa4f2e7eff7a8 --- sources/gui/qml/components/RangeMarker.qml (.../RangeMarker.qml) (revision a5760947d3ed0d2748ba023a1c25e3c6aa0b1de1) +++ sources/gui/qml/components/RangeMarker.qml (.../RangeMarker.qml) (revision 77ba0083b790f7c1c851c60ecaeaa4f2e7eff7a8) @@ -28,9 +28,13 @@ property int decimal : 0 property alias text : _textValue + property alias handle : _handle + property alias font : _textValue.font property color color : Colors.rangeMarker property alias thickness : _root.width property alias hasHandle : _handle.visible + property bool valueOnTop : false + property string unitText : "" height: parent.height width : Variables.rangeMarkerWidth @@ -68,12 +72,16 @@ bold : true } anchors { - right : parent.left - top : parent.top - rightMargin: 5 - topMargin : -5 + right : parent.left + top : valueOnTop ? undefined : + parent.top + bottom : valueOnTop ? _handle.top : + undefined + bottomMargin: valueOnTop ? 5 : 0 + rightMargin : valueOnTop ? -12 : 5 + topMargin : valueOnTop ? 0 : -5 } color : _root.color - text : value.toFixed(decimal) + text : value.toFixed(decimal) + " " + unitText } }