summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/dialogs/dialogs.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-07-11 10:26:48 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2022-07-13 14:35:02 +0200
commit6749d69a15381e05e89f72f6a53bf4449f6d3910 (patch)
tree64c6d4e560d536291a4de45f388864b6afabd331 /src/widgets/doc/snippets/dialogs/dialogs.cpp
parent03a691cecb91ea91394d40b0b7e1b15210fc5687 (diff)
QXcbConnection::xi2ReportTabletEvent(): get device, check capabilities
In Qt 5, RotationStylus was a device type; in Qt 6, we have the Rotation capability flag instead. The event does not tell us whether rotation is valid or not, so to distinguish a valid zero value from a zero that means it's absent, we need to check device capabilities. Anyway it's better to get the QPointingDevice instance earlier and call the newer version of QWindowSystemInterface::handleTabletEvent(). Fixes: QTBUG-104877 Change-Id: I896c02727d586381489f79fd4ebea3451adfa403 Pick-to: 6.2 6.3 6.4 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/dialogs/dialogs.cpp')
0 files changed, 0 insertions, 0 deletions