aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickdraghandler.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2018-08-21 17:52:41 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2018-08-22 11:51:01 +0000
commitd83cb16d3cecad7ec2e9b45416620b87b52f2885 (patch)
treef0135fbd96a9514f7faac2b4b4f038bd35cd69a5 /src/quick/handlers/qquickdraghandler.cpp
parent8bda9227a227dafac93c574bdf1071277b7b6f90 (diff)
Doc: clarify the type and meaning of QQuickMultiPointHandler::centroid
Amends 52d35526f256bf4c8155f5e660a214ab8a2efbdf : it's now a QQuickHandlerPoint rather than QPointF, and is inherited from MultiPointHandler to DragHandler and PinchHandler. So the docs can be inherited too, but in PinchHandler it seems more appropriate to keep the overridden docs which explain that transformation around the centroid depends on pinchOrigin. Task-number: QTBUG-70074 Change-Id: I8875b38439fe80c311a685ab9e3dedc9357415e8 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickdraghandler.cpp')
-rw-r--r--src/quick/handlers/qquickdraghandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/quick/handlers/qquickdraghandler.cpp b/src/quick/handlers/qquickdraghandler.cpp
index d9f0e477d1..ffdaa909dd 100644
--- a/src/quick/handlers/qquickdraghandler.cpp
+++ b/src/quick/handlers/qquickdraghandler.cpp
@@ -81,7 +81,9 @@ Q_LOGGING_CATEGORY(lcDragHandler, "qt.quick.handler.drag")
a (default) single-finger DragHandler and a PinchHandler on the same Item,
and thus can be used to adjust some other feature independently of the
usual pinch behavior: for example adjust a tilt transformation, or adjust
- some other numeric value.
+ some other numeric value, if the \c target is set to null. But if the
+ \l target is an Item, \l centroid is the point at which the drag begins and
+ to which the \c target will be moved (subject to constraints).
At this time, drag-and-drop is not yet supported.