tests/auto/quick/qquickspringanimation/data/inTransition.qml
raw| 1 | import QtQuick 2.0 |
| 2 | |
| 3 | Rectangle { |
| 4 | width: 250 |
| 5 | height: 250 |
| 6 | |
| 7 | ListView { |
| 8 | anchors.fill: parent |
| 9 | model: ListModel { |
| 10 | ListElement { text: "A" } |
| 11 | ListElement { text: "B" } |
| 12 | } |
| 13 | |
| 14 | populate: Transition { |
| 15 | SpringAnimation { properties: "x"; from: 0; to: 100; spring: 4; damping: 0.3 } |
| 16 | } |
| 17 | |
| 18 | delegate: Text { |
| 19 | text: "Test" |
| 20 | } |
| 21 | } |
| 22 | } |