diff options
| author | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-02-16 21:49:42 -0700 |
|---|---|---|
| committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-02-21 06:27:53 -0700 |
| commit | 32a56ba8f08ddefa3d20c3003ed8599553b6d960 (patch) | |
| tree | 4959c8cfdac54f24888b62bd1dd80ce5ae9eacad /src/quick/doc/snippets/pointerHandlers | |
| parent | 5f7b25a694eb46cc520b6dd2651f1e3f99e310f0 (diff) | |
Accept mouse or touchpad in snippets with acceptedDevices
This is a workaround for platforms (such as Wayland and macOS) that are
sometimes failing to distinguish mouse and touchpad. It's better for
illustrative purposes anyway, since a laptop user may really be using a
touchpad rather than a mouse, and we hope to eventually distinguish
them on as many platforms as possible.
Task-number: QTBUG-63363
Task-number: QTBUG-112432
Pick-to: 6.5 6.6 6.7
Change-Id: Ic7a374f1257d4aa57f29385b44da85ccaf4f5ec6
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
Reviewed-by: Doris Verria <doris.verria@qt.io>
Diffstat (limited to 'src/quick/doc/snippets/pointerHandlers')
| -rw-r--r-- | src/quick/doc/snippets/pointerHandlers/hoverMouseOrStylus.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/doc/snippets/pointerHandlers/hoverMouseOrStylus.qml b/src/quick/doc/snippets/pointerHandlers/hoverMouseOrStylus.qml index f79133df8d..40c9367f6a 100644 --- a/src/quick/doc/snippets/pointerHandlers/hoverMouseOrStylus.qml +++ b/src/quick/doc/snippets/pointerHandlers/hoverMouseOrStylus.qml @@ -15,7 +15,7 @@ Rectangle { HoverHandler { id: mouse - acceptedDevices: PointerDevice.Mouse + acceptedDevices: PointerDevice.Mouse | PointerDevice.TouchPad cursorShape: Qt.PointingHandCursor } } |
