diff options
author | Frederik Gladhorn <[email protected]> | 2014-10-09 18:13:54 +0200 |
---|---|---|
committer | Frederik Gladhorn <[email protected]> | 2014-10-09 18:14:56 +0200 |
commit | e1dfb78667bd7e8dc418e12a9669404adea7e2cb (patch) | |
tree | 16f40a9852281a63c1f98af21c680bddedaa5258 /src/quick/items/qquickdrag.cpp | |
parent | 28949c9699014b4f7abba396c28dea207b29821e (diff) | |
parent | 26bbd784d67d151eee531e5ff57977a5353549f5 (diff) |
Merge remote-tracking branch 'origin/5.4' into dev
Conflicts:
src/quick/items/context2d/qquickcanvasitem.cpp
src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp
src/quick/scenegraph/coreapi/qsgrenderer.cpp
src/quick/scenegraph/qsgadaptationlayer.cpp
src/quick/scenegraph/qsgrenderloop.cpp
src/quick/scenegraph/qsgthreadedrenderloop.cpp
src/quick/scenegraph/qsgwindowsrenderloop.cpp
src/quick/scenegraph/util/qsgatlastexture.cpp
src/quick/scenegraph/util/qsgtexture.cpp
src/quick/util/qquickprofiler_p.h
Change-Id: Ie274c3baf72a8a0711c87d67238d68e2b2887429
Diffstat (limited to 'src/quick/items/qquickdrag.cpp')
-rw-r--r-- | src/quick/items/qquickdrag.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/quick/items/qquickdrag.cpp b/src/quick/items/qquickdrag.cpp index c85b1416f6..e49347351c 100644 --- a/src/quick/items/qquickdrag.cpp +++ b/src/quick/items/qquickdrag.cpp @@ -112,23 +112,23 @@ public: \ingroup qtquick-input \brief For specifying drag and drop events for moved Items - Using the Drag attached property any Item can be made a source of drag and drop + Using the Drag attached property, any Item can be made a source of drag and drop events within a scene. - When a drag is \l active on an item any change in that item's position will + When a drag is \l active on an item, any change in that item's position will generate a drag event that will be sent to any DropArea that intersects with the new position of the item. Other items which implement drag and drop event handlers can also receive these events. The following snippet shows how an item can be dragged with a MouseArea. - However, dragging is not limited to mouse drags, anything that can move an item - can generate drag events, this can include touch events, animations and bindings. + However, dragging is not limited to mouse drags; anything that can move an item + can generate drag events, including touch events, animations and bindings. \snippet qml/drag.qml 0 A drag can be terminated either by canceling it with Drag.cancel() or setting Drag.active to false, or it can be terminated with a drop event by calling - Drag.drop(). If the drop event is accepted Drag.drop() will return the + Drag.drop(). If the drop event is accepted, Drag.drop() will return the \l {supportedActions}{drop action} chosen by the recipient of the event, otherwise it will return Qt.IgnoreAction. @@ -314,7 +314,8 @@ void QQuickDragAttached::setActive(bool active) \qmlattachedproperty Object QtQuick::Drag::source This property holds an object that is identified to recipients of drag events as - the source of the events. By default this is the item Drag property is attached to. + the source of the events. By default this is the item that the Drag + property is attached to. Changing the source while a drag is active will reset the sequence of drag events by sending a drag leave event followed by a drag enter event with the new source. |