diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-10-29 22:26:55 +0100 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-10-30 11:35:03 +0100 |
commit | 8f3407fdad75cbdada7d0f46d9b1e323b9d70090 (patch) | |
tree | 0743a77f8d0ac3183f73776e72f5c8f7c1e5fa5c | |
parent | 73e46cd87a214682bc8ee1a3445256bb87ddb482 (diff) |
manual test, nativestyle: add vertical slider with tick marks on both sides
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 <jan-arve.saether@qt.io>
-rw-r--r-- | tests/manual/nativestyle/Sliders.qml | 12 |
1 files changed, 11 insertions, 1 deletions
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 + } } } } |