aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJan Arve Sæther <jan-arve.saether@qt.io>2020-09-03 10:51:01 +0200
committerJan Arve Sæther <jan-arve.saether@qt.io>2020-09-04 19:42:01 +0200
commit8d3a91016506fd0afedb0be535f7c34a4ca762f6 (patch)
treecf8a799cf13e03d53850ca81ea3f27f122f914f7 /examples
parenta1c91787264f6f535b5cf094b57ee53058856df4 (diff)
Fix TapHandler so that it actually registers a tap
This bug caused all quick examples that used the shared\LauncherList.qml to be broken. In QtGui, QSinglePointEvent will construct itself with a point id of 0 if there is a valid point, and with a point id of -1 if the point is invalid (the default constructor does the latter). However, QQuickSinglePointHandler::wantsPointerEvent() did not agree with that, because it assumed that a point id of 0 meant uninitialized/invalid point. The fix is to change QQuickSinglePointHandler::wantsPointerEvent() and QQuickHandlerPoint so that it assumes that the id -1 is now an invalid point, (instead of 0) Change-Id: I8c9683dfe06ebb77c5342a26f08174b67e7cbd90 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions