diff options
author | mae <qt-info@nokia.com> | 2010-07-08 15:49:23 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2010-07-08 16:34:25 (GMT) |
commit | b22a5e13003ff9f23b075284a1a1e0a6b0e46250 (patch) | |
tree | 178f70df43aa34851efd82b1286a472c3f1fd500 /doc/src/snippets/declarative/gridview/gridview.qml | |
parent | d5d16b3d3304774df11f40df0206d90ed5f840de (diff) | |
download | Qt-b22a5e13003ff9f23b075284a1a1e0a6b0e46250.zip Qt-b22a5e13003ff9f23b075284a1a1e0a6b0e46250.tar.gz Qt-b22a5e13003ff9f23b075284a1a1e0a6b0e46250.tar.bz2 |
Follow -> Behavior
Replace the usages of Follows with Behaviors, update docs.
Diffstat (limited to 'doc/src/snippets/declarative/gridview/gridview.qml')
-rw-r--r-- | doc/src/snippets/declarative/gridview/gridview.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/snippets/declarative/gridview/gridview.qml b/doc/src/snippets/declarative/gridview/gridview.qml index 7377cee..e92a429 100644 --- a/doc/src/snippets/declarative/gridview/gridview.qml +++ b/doc/src/snippets/declarative/gridview/gridview.qml @@ -108,8 +108,10 @@ Component { Rectangle { width: view.cellWidth; height: view.cellHeight color: "lightsteelblue"; radius: 5 - SpringFollow on x { to: view.currentItem.x; spring: 3; damping: 0.2 } - SpringFollow on y { to: view.currentItem.y; spring: 3; damping: 0.2 } + x: view.currentItem.x + y: view.currentItem.y + Behavior on x { SpringAnimation { spring: 3; damping: 0.2 } } + Behavior on y { SpringAnimation { spring: 3; damping: 0.2 } } } } |