diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-02-04 18:57:55 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-02-05 09:45:32 +0000 |
commit | 60f0d475b38fb5cfecad2378b78eb446e17e7ff8 (patch) | |
tree | a1d21b41b9292043c645efffbf80e47e2f4b507a | |
parent | 2ff69487a723ca1d3b678d420ebbf7acb0f25480 (diff) |
Fix rounding weirdness
Avoid using binary unrepresentally numbers like 0.1 which rounding is
necessary.
Fixes: QTBUG-90928
Change-Id: Ie7dc31bd98d0af1447bffcfc30a315a743697f67
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit d1f85b5f96944b93edd8b08507c22aef553aa713)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tests/auto/controls/data/tst_scrollbar.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_scrollbar.qml b/tests/auto/controls/data/tst_scrollbar.qml index 88734245..3121f1b0 100644 --- a/tests/auto/controls/data/tst_scrollbar.qml +++ b/tests/auto/controls/data/tst_scrollbar.qml @@ -548,7 +548,7 @@ TestCase { { tag: "NoSnap2", snapMode: ScrollBar.NoSnap, stepSize: 0.2, size: 0.1, width: 200, steps: 180 }, /* 0.9*200 */ { tag: "SnapAlways", snapMode: ScrollBar.SnapAlways, stepSize: 0.1, size: 0.2, width: 100, steps: 10 }, - { tag: "SnapAlways2", snapMode: ScrollBar.SnapAlways, stepSize: 0.2, size: 0.1, width: 200, steps: 5 }, + { tag: "SnapAlways2", snapMode: ScrollBar.SnapAlways, stepSize: 0.2, size: 0.125, width: 200, steps: 5 }, { tag: "SnapOnRelease", snapMode: ScrollBar.SnapOnRelease, stepSize: 0.1, size: 0.2, width: 100, steps: 80 }, /* 0.8*100 */ { tag: "SnapOnRelease2", snapMode: ScrollBar.SnapOnRelease, stepSize: 0.2, size: 0.1, width: 200, steps: 180 }, /* 0.9*200 */ |