From 8f3407fdad75cbdada7d0f46d9b1e323b9d70090 Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Thu, 29 Oct 2020 22:26:55 +0100 Subject: manual test, nativestyle: add vertical slider with tick marks on both sides MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show an example of having tick marks on both side of a slider. This API is currently private. Change-Id: I1a458754aff40b60b16dce5aac2fa41789eeae69 Reviewed-by: Jan Arve Sæther --- tests/manual/nativestyle/Sliders.qml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/manual/nativestyle/Sliders.qml b/tests/manual/nativestyle/Sliders.qml index 84822549..81afa26c 100644 --- a/tests/manual/nativestyle/Sliders.qml +++ b/tests/manual/nativestyle/Sliders.qml @@ -92,7 +92,7 @@ ControlContainer { to: 3.7 stepSize: 0.05 value: 3.5 - property int qqc2_style_tickPosition: 2 + property int qqc2_style_tickPosition: 3 } } @@ -138,6 +138,16 @@ ControlContainer { property int qqc2_style_tickPosition: 2 } + Slider { + // Should show 9 tickmarks + height: sliderHeight + orientation: Qt.Vertical + from: 3.3 + to: 3.7 + stepSize: 0.05 + value: 3.5 + property int qqc2_style_tickPosition: 3 + } } } } -- cgit v1.2.3