Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use view transitions in drag'n'drop example
Change-Id: Idc661225acf9e517d26928cafba650ac48ca880a
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
  • Loading branch information
Bea Lam authored and Qt by Nokia committed Mar 2, 2012
1 parent 82a252a commit cc462d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/qtquick/draganddrop/views/gridview.qml
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cc462d6

Please sign in to comment.