From ed054acb9ca0ca8c86bcba7b290461b3177a7c50 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Mon, 25 Jul 2016 23:35:26 +0200 Subject: Fix tst_QQuickPinchArea::cancel The cancel event must have the device set, otherwise it may not be delivered properly. Change-Id: I7f7899fdbfd8fd68e9e19bcd043a46ddb31516cd Reviewed-by: Frederik Gladhorn --- tests/auto/quick/qquickpincharea/tst_qquickpincharea.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/auto/quick/qquickpincharea') diff --git a/tests/auto/quick/qquickpincharea/tst_qquickpincharea.cpp b/tests/auto/quick/qquickpincharea/tst_qquickpincharea.cpp index 1d7273f6df..c1a51fd659 100644 --- a/tests/auto/quick/qquickpincharea/tst_qquickpincharea.cpp +++ b/tests/auto/quick/qquickpincharea/tst_qquickpincharea.cpp @@ -511,6 +511,7 @@ void tst_QQuickPinchArea::cancel() QCOMPARE(blackRect->scale(), 1.5); QTouchEvent cancelEvent(QEvent::TouchCancel); + cancelEvent.setDevice(device); QCoreApplication::sendEvent(window, &cancelEvent); QQuickTouchUtils::flush(window); -- cgit v1.2.3