aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.qml
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-24 23:40:18 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-06-24 23:40:18 +0800
commit1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1 (patch)
treef7b957645b11bc19ecf7fb29baaa13530557af7a /Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.qml
parent92ef33d97a437dce2d7b55f06342de388d95f575 (diff)
downloadgo-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.tar
go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.tar.gz
go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.tar.bz2
go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.tar.lz
go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.tar.xz
go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.tar.zst
go-tangerine-1ce40d7581bac2b776d1e47ec49c03c0fcc7fdc1.zip
Godeps: remove mist remnants, add termui deps
Diffstat (limited to 'Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.qml')
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.qml42
1 files changed, 0 insertions, 42 deletions
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.qml
deleted file mode 100644
index 1f4be6dd4..000000000
--- a/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.qml
+++ /dev/null
@@ -1,42 +0,0 @@
-import QtQuick 2.0
-import GoExtensions 1.0
-
-Rectangle {
- width: 640; height: 400
- color: "black"
-
- Gopher {
- id: gopher
- width: 300; height: 300
- anchors.centerIn: parent
-
- NumberAnimation on rotation {
- id: anim
- from: 360; to: 0
- duration: 5000
- loops: Animation.Infinite
- }
-
- MouseArea {
- anchors.fill: parent
-
- property real startX
- property real startR
-
- onPressed: {
- startX = mouse.x
- startR = gopher.rotation
- anim.running = false
- }
- onReleased: {
- anim.from = gopher.rotation + 360
- anim.to = gopher.rotation
- anim.running = true
- }
- onPositionChanged: {
- gopher.rotation = (36000 + (startR - (mouse.x - startX))) % 360
- }
- }
-
- }
-}