aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/snippets/pointerHandlers/dragHandlerDifferentTarget.qml
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2018-09-10 18:13:03 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2018-09-11 13:37:24 +0000
commit87cf774d4e91472d9630b4ae9efbf0a11f3d3a48 (patch)
treeaad5e52cadc12f32d15c4f78d2e927961fdb219b /src/quick/doc/snippets/pointerHandlers/dragHandlerDifferentTarget.qml
parentf681bf66155a18fa0367401d17559ab4c93abd46 (diff)
Doc: Show that DragHandler is now a multi-point handler
Inheritance changed, and that means it has a centroid property. Amends ca7cdd71ee33f0d77eb6bf1367d2532e26155cb2 Task-number: QTBUG-68106 Change-Id: Ie68eb1376868b143dd56564a3abc896dd7e745c6 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quick/doc/snippets/pointerHandlers/dragHandlerDifferentTarget.qml')
-rw-r--r--src/quick/doc/snippets/pointerHandlers/dragHandlerDifferentTarget.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/doc/snippets/pointerHandlers/dragHandlerDifferentTarget.qml b/src/quick/doc/snippets/pointerHandlers/dragHandlerDifferentTarget.qml
index a21ea1b39d..7e7662539f 100644
--- a/src/quick/doc/snippets/pointerHandlers/dragHandlerDifferentTarget.qml
+++ b/src/quick/doc/snippets/pointerHandlers/dragHandlerDifferentTarget.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2018 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
@@ -57,8 +57,8 @@ Item {
Rectangle {
id: feedback
border.color: "red"
- width: Math.max(10, handler.point.ellipseDiameters.width)
- height: Math.max(10, handler.point.ellipseDiameters.height)
+ width: Math.max(10, handler.centroid.ellipseDiameters.width)
+ height: Math.max(10, handler.centroid.ellipseDiameters.height)
radius: Math.max(width, height) / 2
visible: handler.active
}