diff options
Diffstat (limited to 'src/gui/kernel/qeventpoint_p.h')
-rw-r--r-- | src/gui/kernel/qeventpoint_p.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/kernel/qeventpoint_p.h b/src/gui/kernel/qeventpoint_p.h index 147d134bda..f10739343f 100644 --- a/src/gui/kernel/qeventpoint_p.h +++ b/src/gui/kernel/qeventpoint_p.h @@ -62,7 +62,9 @@ Q_DECLARE_LOGGING_CATEGORY(lcEPDetach); class QPointingDevice; -struct QEventPointPrivate { +class QEventPointPrivate : public QSharedData +{ +public: QEventPointPrivate(int id, const QPointingDevice *device) : device(device), pointId(id) { } @@ -108,7 +110,6 @@ struct QEventPointPrivate { ulong lastTimestamp = 0; ulong pressTimestamp = 0; QPointingDeviceUniqueId uniqueId; - int refCount = 1; int pointId = -1; QEventPoint::State state = QEventPoint::State::Unknown; bool accept = false; |