aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickevents.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-06-30 12:36:55 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2020-06-30 12:43:33 +0200
commit2800b99f06372bb4da9b091b3ed29d57173f0227 (patch)
treebf3c75ecf971f153be63c772530eb2670d95b05a /src/quick/items/qquickevents.cpp
parentd152bc5326f5c274b1e258ef8e9140c511453784 (diff)
Avoid unnecessary use of private API
Use QInputDevice::id() instead of QInputDevicePrivate::id. Change-Id: I796a32219f5743f8445bab918f7be1969cb01945 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents.cpp')
-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 7c376d7edf..d380eb1142 100644
--- a/src/quick/items/qquickevents.cpp
+++ b/src/quick/items/qquickevents.cpp
@@ -1356,7 +1356,7 @@ QQuickPointerEvent *QQuickPointerNativeGestureEvent::reset(QEvent *event)
default:
break;
}
- quint64 deviceId = QInputDevicePrivate::get(ev->device())->id;
+ quint64 deviceId = ev->device()->id();
m_point->reset(state, ev->scenePosition(), deviceId << 24, ev->timestamp());
return this;
}