aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-07-02 15:51:03 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2021-07-12 11:25:34 +0200
commit7a895c1f45986ed2c114684cb7de72203e50d454 (patch)
tree7de2671b87ec67f9fa55e3163b297b037568ca15
parentdb395bff4e14eb031c048f079a1ccfdac1a08474 (diff)
tst_splitview.qml: ensure hover events are sent to handles
Task-number: QTBUG-94968 Change-Id: I7bc4ef907097fe7b1517f9419942fbfe06a4cc62 Reviewed-by: Igor Bugaev <freedbrt@gmail.com> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit b3d9dd9af3d867f9b5fad195d91c011618bb8c61) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/controls/data/tst_splitview.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_splitview.qml b/tests/auto/controls/data/tst_splitview.qml
index 5281e1e8..b9ace27e 100644
--- a/tests/auto/controls/data/tst_splitview.qml
+++ b/tests/auto/controls/data/tst_splitview.qml
@@ -2127,7 +2127,7 @@ TestCase {
// Move the mouse over the handle.
var handles = findHandles(control)
var targetHandle = handles[0]
- // Test fails if we don't do two moves for some reason...
+ // Test fails if we don't do two moves for some reason... QTBUG-94968
mouseMove(targetHandle, targetHandle.width / 2, targetHandle.height / 2)
mouseMove(targetHandle, targetHandle.width / 2, targetHandle.height / 2)
verify(targetHandle.SplitHandle.hovered)
@@ -2138,6 +2138,7 @@ TestCase {
// Move the mouse back over the handle.
mouseMove(targetHandle, targetHandle.width / 2, targetHandle.height / 2)
+ mouseMove(targetHandle, targetHandle.width / 2, targetHandle.height / 2)
verify(targetHandle.SplitHandle.hovered)
// Move the mouse to the MouseArea on the right. The handle should no longer be hovered.