Index: sources/gui/qml/components/TickMarks.qml =================================================================== diff -u -rcd7de5f6d239a11615ba8c6c03339a10996486ca -r9ec7a27375189ad75f0bef142cd6beb386db0955 --- sources/gui/qml/components/TickMarks.qml (.../TickMarks.qml) (revision cd7de5f6d239a11615ba8c6c03339a10996486ca) +++ sources/gui/qml/components/TickMarks.qml (.../TickMarks.qml) (revision 9ec7a27375189ad75f0bef142cd6beb386db0955) @@ -29,27 +29,35 @@ property int minimum : parent.minimum property int maximum : parent.maximum property int step : parent.step + property bool stepSnap : false property color color : Colors.backgroundDialog property int orientation : Line.Orientation.Vertical property int length : parent.height property int thickness : 1 + property bool textVisible : false + property color textColor : "white" + anchors.fill: parent Repeater { id : _repeater model: (maximum - minimum) / step + 1 Line { id: _line + property int gap : stepSnap ? + ( + (parent.width * (step - (minimum % step))) / (maximum - minimum) + ) : 0 orientation : _root.orientation thickness : _root.thickness color : _root.color length : _root.length - x: (((index * step) * (parent.width - parent.x)) / (maximum - minimum)) + x: (((index * step) * (parent.width - parent.x)) / (maximum - minimum)) + gap y: 0 Text { id : _text visible: textVisible - color: _root.color + color: _root.textColor font.pixelSize: 10 text: (index * step) + minimum anchors {