diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-06-30 12:36:55 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-06-30 12:43:33 +0200 |
commit | 2800b99f06372bb4da9b091b3ed29d57173f0227 (patch) | |
tree | bf3c75ecf971f153be63c772530eb2670d95b05a /src/quick/items/qquickevents.cpp | |
parent | d152bc5326f5c274b1e258ef8e9140c511453784 (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.cpp | 2 |
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; } |