diff options
author | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2016-07-25 23:35:26 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2016-07-25 22:04:27 +0000 |
commit | ed054acb9ca0ca8c86bcba7b290461b3177a7c50 (patch) | |
tree | f135099101febf4dc19d67a2c4581f64a88e8e8e /tests/auto/quick/qquickpincharea/tst_qquickpincharea.cpp | |
parent | 52c66e85f003dbb78b8bd35ce7836b682225b73b (diff) |
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 <frederik.gladhorn@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickpincharea/tst_qquickpincharea.cpp')
-rw-r--r-- | tests/auto/quick/qquickpincharea/tst_qquickpincharea.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); |