diff options
author | Tomasz Olszak <olszak.tomasz@gmail.com> | 2013-06-11 18:00:40 +0000 |
---|---|---|
committer | Tomasz Olszak <olszak.tomasz@gmail.com> | 2013-06-11 20:32:54 +0200 |
commit | 77e8ed36392a2a476bb12ea010e2a7a2c13a5c70 (patch) | |
tree | 7124708f4cebe42f9fc6889f365d5d2c0fb3bb54 | |
parent | 4ba28ada830140cbbca9e051e63c213dfaf5b5b0 (diff) |
touch example: ContextMenuPage - circle path animation on anchor point.
Change-Id: Ic66e530aebc920f61f89ddec394178987aca25aa
Reviewed-by: Tomasz Olszak <olszak.tomasz@gmail.com>
-rw-r--r-- | examples/touch/content/ContextMenuPage.qml | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/examples/touch/content/ContextMenuPage.qml b/examples/touch/content/ContextMenuPage.qml index 06de2b7..73174a8 100644 --- a/examples/touch/content/ContextMenuPage.qml +++ b/examples/touch/content/ContextMenuPage.qml @@ -104,15 +104,30 @@ Item { text: "Animate" onClicked: animation.running = !animation.running } - NumberAnimation { + PathAnimation { id:animation target: center - property: "x" - from: 0 - to: parent.width + anchorPoint: Qt.point(center.width/2,center.height/2) loops: Animation.Infinite running: false duration: 5000 + path: Path { + id: myPath + startX: 360; startY: 300 + + PathArc { + x: 360; y: 900 + radiusX: 300 + radiusY: 300 + useLargeArc: true + } + PathArc { + x: 360; y: 300 + radiusX: 300 + radiusY: 300 + useLargeArc: true + } + } } } |