Skip to content
Commit 6d0289d7 authored by Filip Fila's avatar Filip Fila 🌆
Browse files

[QQC2 Slider Style] Fix wrong handle positioning when initial value is 1

Summary:
Old code was not reading value properly when initial value was 1, misplacing the handle as a result.

BUG: 405471

Test Plan:
Tested by running qmlscene with:

```
import QtQuick.Controls 2.5

Slider {
    from: 1
    to: 5
    stepSize: 1
    //orientation: Qt.Vertical
}
```
Tested both in horizontal and vertical orientation.

You can also test this in the Mouse KCM, with the Pointer Speed slider.

Reviewers: mart, #plasma, ngraham, broulik

Reviewed By: mart, #plasma, ngraham

Subscribers: broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D21075
parent 37b3928f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment