aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2012-02-28 12:00:26 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-02 08:26:52 +0100
commitcc462d6a161b453e57523e71cd5d11deb4840f21 (patch)
tree2232d48d6c3fb376ce75355824d1fed5d3758d0e /examples
parent82a252afdd0f920357b1e543f2ee97f92c34919b (diff)
Use view transitions in drag'n'drop example
Change-Id: Idc661225acf9e517d26928cafba650ac48ca880a Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/qtquick/draganddrop/views/gridview.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/qtquick/draganddrop/views/gridview.qml b/examples/qtquick/draganddrop/views/gridview.qml
index 04d8dee463..b18078f48d 100644
--- a/examples/qtquick/draganddrop/views/gridview.qml
+++ b/examples/qtquick/draganddrop/views/gridview.qml
@@ -45,6 +45,10 @@ GridView {
width: 320; height: 480
cellWidth: 80; cellHeight: 80
+ displaced: Transition {
+ NumberAnimation { properties: "x,y"; easing.type: Easing.OutQuad }
+ }
+
model: VisualDataModel {
id: visualModel
model: ListModel {
@@ -93,7 +97,7 @@ GridView {
color: model.color
radius: 3
- Drag.active: delegateRoot.pressed
+ Drag.active: delegateRoot.drag.active
Drag.source: delegateRoot
Drag.hotSpot.x: 36
Drag.hotSpot.y: 36