summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2018-07-27 19:21:05 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2018-07-30 10:27:50 +0000
commit0e38ce39cd63318f2a10239239b173f17725eecf (patch)
tree7c2f9c66cf08a96d173d2abe3a5e148e412ecdad
parent67f88f2342427e8ceb50acdd63444eaa527675b9 (diff)
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> (cherry picked from commit 1d815780e020a7315dfc4762b6b0280834203e7e)
-rw-r--r--src/quick/items/qquickevents_p_p.h2
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 3735d68a85..ca73143481 100644
--- a/src/quick/items/qquickevents_p_p.h
+++ b/src/quick/items/qquickevents_p_p.h
@@ -326,7 +326,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)