diff options
author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2020-10-19 13:57:11 +0200 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2020-10-19 15:33:06 +0200 |
commit | bfa0560938eab328a12fabc57316304580cccf67 (patch) | |
tree | b3f9ec5dad8cc02b4b9afe3120493cb9605d2126 /tests | |
parent | 3a4e62f9b1efee7b1fd0b5e34fca6687be64abfa (diff) |
Native style/Slider: Fix tickmarks and groove for fractional numbers
In QQuickSlider, this was very noticeable for very short ranges (e.g.
a range less than 1). It also caused wrong rendering of the groove on
macOS style.
Change-Id: I8a88b2e107e543f5b0cef5a7093b94b08ebeb398
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/nativestyle/Sliders.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/manual/nativestyle/Sliders.qml b/tests/manual/nativestyle/Sliders.qml index dcc6c79c..84822549 100644 --- a/tests/manual/nativestyle/Sliders.qml +++ b/tests/manual/nativestyle/Sliders.qml @@ -84,6 +84,17 @@ ControlContainer { property int qqc2_style_tickPosition: 2 } + + Slider { + // Should show 9 tickmarks + width: sliderWidth + from: 3.3 + to: 3.7 + stepSize: 0.05 + value: 3.5 + property int qqc2_style_tickPosition: 2 + } + } Row { |