diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-16 21:28:33 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-16 21:28:33 +0800 |
commit | 702218008ee2b6d708d6b2821cdef80736bb3224 (patch) | |
tree | d55ff7ce88187082378e7d8e4c2f3aad14d23b4e /Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.qml | |
parent | 202362d9258335c695eb75f55f4be74a50a1af33 (diff) | |
download | go-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.tar go-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.tar.gz go-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.tar.bz2 go-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.tar.lz go-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.tar.xz go-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.tar.zst go-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.zip |
Add versioned dependencies from godep
Diffstat (limited to 'Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.qml')
-rw-r--r-- | Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.qml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.qml new file mode 100644 index 000000000..8c59fc351 --- /dev/null +++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.qml @@ -0,0 +1,66 @@ +import QtQuick 2.0 +import GoExtensions 1.0 + +Rectangle { + id: root + + width: 640 + height: 280 + color: "black" + + Rectangle { + x: 20; y: 20; width: 100; height: 100 + color: "red" + + SequentialAnimation on x { + loops: Animation.Infinite + NumberAnimation { from: 20; to: 120; duration: 4000; easing.type: Easing.InOutQuad } + NumberAnimation { from: 120; to: 20; duration: 4000; easing.type: Easing.InOutQuad } + } + } + + Rectangle { + x: 40; y: 40; width: 100; height: 100 + color: "yellow" + opacity: 0.7 + + SequentialAnimation on x { + loops: Animation.Infinite + NumberAnimation { from: 40; to: 220; duration: 4000; easing.type: Easing.InOutQuad } + NumberAnimation { from: 220; to: 40; duration: 4000; easing.type: Easing.InOutQuad } + } + } + + GoRect { + x: 60; y: 60; width: 100; height: 100 + + SequentialAnimation on x { + loops: Animation.Infinite + NumberAnimation { from: 60; to: 320; duration: 4000; easing.type: Easing.InOutQuad } + NumberAnimation { from: 320; to: 60; duration: 4000; easing.type: Easing.InOutQuad } + } + } + + Rectangle { + x: 80; y: 80; width: 100; height: 100 + color: "yellow" + opacity: 0.7 + + SequentialAnimation on x { + loops: Animation.Infinite + NumberAnimation { from: 80; to: 420; duration: 4000; easing.type: Easing.InOutQuad } + NumberAnimation { from: 420; to: 80; duration: 4000; easing.type: Easing.InOutQuad } + } + } + + Rectangle { + x: 100; y: 100; width: 100; height: 100 + color: "red" + + SequentialAnimation on x { + loops: Animation.Infinite + NumberAnimation { from: 100; to: 520; duration: 4000; easing.type: Easing.InOutQuad } + NumberAnimation { from: 520; to: 100; duration: 4000; easing.type: Easing.InOutQuad } + } + } +} |