aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2020-03-06 11:11:32 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2020-03-07 07:31:29 +0100
commit12ddd8da1b2dcfbbca10a6915547456601a726c0 (patch)
treee3115f251440c2fe0af052d8db9c5754e9d1053b /src
parentec33541cf3873bc311522d3ae24c75cf6aa28a6b (diff)
Avoid using deprecated QTabletEvent::device()
That member was removed in qtbase dev. Change-Id: Ia2e69ee53e154fdb9b8b4c707ac5a463011cf0c1 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/quick/items/qquickevents.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickevents.cpp b/src/quick/items/qquickevents.cpp
index 2b3ea7d63d..15f138583f 100644
--- a/src/quick/items/qquickevents.cpp
+++ b/src/quick/items/qquickevents.cpp
@@ -680,7 +680,7 @@ QQuickPointerDevice *QQuickPointerDevice::tabletDevice(const QTabletEvent *event
// TODO Qt 6: we can't know for sure about XTilt or YTilt until we have a
// QTabletDevice populated with capabilities provided by QPA plugins
- switch (event->device()) {
+ switch (event->deviceType()) {
case QTabletEvent::Stylus:
type = QQuickPointerDevice::Stylus;
buttonCount = 3;