qtdeclarative/examples/quick/pointerhandlers
Shawn Rutledge d3f2c6ac42 Add TapHandler.exclusiveSignals to enable single/double tap exclusivity
If exclusiveSignals == NotExclusive (the default), behavior remains as
it was: singleTapped() and doubleTapped() are emitted as the taps occur,
so it's not very useful to react on singleTapped() if you mean to
distinguish these two cases.

If exclusiveSignals == SingleTap, the doubleTapped signal will not be
emitted at all, and therefore singleTapped can be emitted immediately
and unambiguously.

If exclusiveSignals == DoubleTap, the singleTapped signal will not be
emitted at all, and therefore doubleTapped can be emitted immediately
and unambiguously.

If exclusiveSignals == SingleTap | DoubleTap, we must wait
qApp->styleHints()->mouseDoubleClickInterval() milliseconds after a tap
is detected before emitting either signal, so that they are distinct and
can be used to drive behavior that should not occur in other cases.
A triple-tap will not trigger either signal.

[ChangeLog][QtQuick][Event Handlers] TapHandler.exclusiveSignals now
lets you make the singleTapped and doubleTapped signals exclusive.

Task-number: QTBUG-65088
Fixes: QTBUG-107264
Change-Id: Ifb2c4b72759246c64b3bfa2f776c28266806b985
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
2022-10-19 06:02:33 +02:00
..
components Add TapHandler.exclusiveSignals to enable single/double tap exclusivity 2022-10-19 06:02:33 +02:00
images Move most of the pointer manual tests to a new pointerhandlers example 2021-09-24 17:03:19 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-09-07 17:01:30 +02:00
fakeFlickable.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
flingAnimation.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
joystick.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
main.cpp Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
map.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
mixer.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
multibuttons.qml Add TapHandler.exclusiveSignals to enable single/double tap exclusivity 2022-10-19 06:02:33 +02:00
pieMenu.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
pinchHandler.qml Examples: Do not use import version numbers anymore 2022-08-31 16:37:35 +02:00
pointerhandlers.pro Fix pointer handlers example build: include piemenu, qmake support 2021-12-12 14:39:36 +01:00
pointerhandlers.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
qml.qrc Fix pointer handlers example build: include piemenu, qmake support 2021-12-12 14:39:36 +01:00
sidebar.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
singlePointHandlerProperties.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
tabletCanvasDrawing.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
tapHandler.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
tapWithModifiers.qml Use SPDX license identifiers 2022-06-11 08:05:15 +02:00