diff options
author | Michael Brasser <mbrasser@ford.com> | 2018-06-14 21:57:29 -0500 |
---|---|---|
committer | Michael Brasser <michael.brasser@live.com> | 2018-06-29 21:17:39 +0000 |
commit | 090b0978f3546a10784992c3e4b1eb40427e0353 (patch) | |
tree | bf327e92b3937816fc5b02eda0f2c0aeff44e7dd /tests/auto/quick/qquicklistview | |
parent | 55a269407222763c2920d6322511b349a7e701a9 (diff) |
StrictlyEnforceRange should not override valid SnapOne decisions
The changes made in 134d980a7fcf61c5440019bcfb3fdfc39c3f5f3c and
2b779fbd25aaf09897ee2cdc4edffd12a980420b were still a bit too broad.
Tighten the condition further so original behavior is restored
for smaller to medium drags.
Change-Id: I9006e9cea80c1ef79e0b8d6a47b2a497532bef57
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicklistview')
-rw-r--r-- | tests/auto/quick/qquicklistview/tst_qquicklistview.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp index 6e28256697..64a186eade 100644 --- a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp +++ b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp @@ -5553,6 +5553,11 @@ void tst_QQuickListView::snapOneItem_data() QTest::newRow("vertical, top to bottom, no more blindspot") << QQuickListView::Vertical << Qt::LeftToRight << QQuickItemView::TopToBottom << int(QQuickItemView::NoHighlightRange) << QPoint(20, 200) << QPoint(20, 95) << 180.0 << 560.0 << 0.0 << 6.0; + + // StrictlyEnforceRange should not override valid SnapOneItem decisions + QTest::newRow("vertical, top to bottom, no more blindspot, enforce range") + << QQuickListView::Vertical << Qt::LeftToRight << QQuickItemView::TopToBottom << int(QQuickItemView::StrictlyEnforceRange) + << QPoint(20, 200) << QPoint(20, 95) << 180.0 << 580.0 << -20.0 << 6.0; } void tst_QQuickListView::snapOneItem() |