From bfa0560938eab328a12fabc57316304580cccf67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Arve=20S=C3=A6ther?= Date: Mon, 19 Oct 2020 13:57:11 +0200 Subject: 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 --- tests/manual/nativestyle/Sliders.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/manual') 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 { -- cgit v1.2.3