diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-07-27 19:21:05 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-07-27 22:16:02 +0000 |
commit | 1d815780e020a7315dfc4762b6b0280834203e7e (patch) | |
tree | 57a73fe8ab8ba80f3377deec292f8770640627fd | |
parent | 90ab10ed2d8c96a7288c23b2482037fac36b1286 (diff) | |
download | qtdeclarative-1d815780e020a7315dfc4762b6b0280834203e7e.tar.gz |
Remove const from QQuickPointerEvent::device property
A property never has const pointer as its type. Getting this wrong also
causes problems with the QML type registration not matching the actual type.
Task-number: QTBUG-61749
Change-Id: Ic3c47499cc4dff6df0beecf5b1413c76509ca6f5
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r-- | src/quick/items/qquickevents_p_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h index bb6726706d..3f70ad8c2d 100644 --- a/src/quick/items/qquickevents_p_p.h +++ b/src/quick/items/qquickevents_p_p.h @@ -385,7 +385,7 @@ private: class Q_QUICK_PRIVATE_EXPORT QQuickPointerEvent : public QObject { Q_OBJECT - Q_PROPERTY(const QQuickPointerDevice *device READ device) + Q_PROPERTY(QQuickPointerDevice *device READ device) Q_PROPERTY(Qt::KeyboardModifiers modifiers READ modifiers) Q_PROPERTY(Qt::MouseButtons button READ button) Q_PROPERTY(Qt::MouseButtons buttons READ buttons) |