diff options
author | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2016-08-04 10:59:36 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2016-08-08 10:23:31 +0000 |
commit | 72e6195925f5390670d78f115a405971162cb4eb (patch) | |
tree | b8be8a483858b0d3d3801ce76e32c8773fa5ace8 /src/quick/items/qquickwindow.cpp | |
parent | 1f4bfc099b7e48e2cc3dd9488b7b42a96122b299 (diff) |
Remove impossible condition
We don't pre-grab any more. The first if checks for touchMouseId==-1.
Then we only set touchMouseId if the event was accepted.
Change-Id: I507c72930af958732ec8f4ef8ea2750ce3ea8f2d
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickwindow.cpp')
-rw-r--r-- | src/quick/items/qquickwindow.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp index ec0c50f09d..16cbb2aa2f 100644 --- a/src/quick/items/qquickwindow.cpp +++ b/src/quick/items/qquickwindow.cpp @@ -670,9 +670,6 @@ bool QQuickWindowPrivate::deliverTouchAsMouse(QQuickItem *item, QQuickPointerEve return true; } - // The event was not accepted but touchMouseId was set. - if (touchMouseId != -1) - return false; // try the next point // Touch point was there before and moved |