Index: sources/gui/qml/components/Slider.qml =================================================================== diff -u -r4f8cbe0045e2a06a67a44894bb02b41a02eca5dd -r38cb7a4ff6d12878d078fb10c8d6915a31dc1df9 --- sources/gui/qml/components/Slider.qml (.../Slider.qml) (revision 4f8cbe0045e2a06a67a44894bb02b41a02eca5dd) +++ sources/gui/qml/components/Slider.qml (.../Slider.qml) (revision 38cb7a4ff6d12878d078fb10c8d6915a31dc1df9) @@ -42,7 +42,7 @@ property bool isActive : true property alias progressRectMargin : _progressRect.margin - property int tickMarksThinkness : 2 + property int tickMarksThickness : 2 signal progressRectClicked() signal progressRectDragged() @@ -124,13 +124,13 @@ function setHandlerPosition() { if ( _progressRect.width <= 0 ) { - _handler.x = 0 - _root.tickMarksThinkness + _handler.x = 0 - _root.tickMarksThickness } else - if ( _progressRect.width >= _root.width - _root.tickMarksThinkness ) { - _handler.x = _root.width - _handler.width + _root.tickMarksThinkness + if ( _progressRect.width >= _root.width - _root.tickMarksThickness ) { + _handler.x = _root.width - _handler.width + _root.tickMarksThickness } else { - _handler.x = _progressRect.width - _handler.width / 2 + _handler.x = _progressRect.width - _handler.width / 2 } } @@ -158,6 +158,7 @@ _root.released(vMouseEvent) } onWidthChanged: { + // TODO: DEN-5603 : Still has some issues on high resolution sliders [ handler jumps to the 0 ]. // setHandlerPosition() } } @@ -168,7 +169,7 @@ active : ticks anchors.fill : parent sourceComponent : TickMarks { - thickness : _root.tickMarksThinkness + thickness : _root.tickMarksThickness decimal : _root.decimal minimum : _root.minimum maximum : _root.maximum