summaryrefslogtreecommitdiffstats
path: root/animators/test/TestBehaviorPropertyAnimation.qml
diff options
context:
space:
mode:
Diffstat (limited to 'animators/test/TestBehaviorPropertyAnimation.qml')
-rw-r--r--animators/test/TestBehaviorPropertyAnimation.qml79
1 files changed, 0 insertions, 79 deletions
diff --git a/animators/test/TestBehaviorPropertyAnimation.qml b/animators/test/TestBehaviorPropertyAnimation.qml
deleted file mode 100644
index 245655a..0000000
--- a/animators/test/TestBehaviorPropertyAnimation.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-import QtQuick 2.0
-import Animators 1.0 as Rt
-
-Rectangle {
- id: root
- width: 320
- height: 480
- color: "black"
- property var out33in60: [ 0.33, 0.0, 0.40, 1.0, 1.0, 1.0 ]
- property var out60in33: [ 0.60, 0.0, 0.67, 1.0, 1.0, 1.0 ]
-
- Timer {
- repeat: false
- interval: 1000
- running: true
- onTriggered: {
- console.log("onTriggered: setting rotation to 360")
- renderThreadItem.rotation = 360
- mainThreadItem.rotation = 360
- }
- }
-
- Rt.Item {
- id: renderThreadItem
- width: parent.width
- height: parent.height / 2
- visible: !renderThreadAnimationsDisabled
-
- Text {
- anchors.centerIn: parent
- text: "Render thread animation"
- smooth: true
- color: "white"
- font.pixelSize: 20
- }
-
- Behavior on rotation {
- Rt.NumberAnimation {
- duration: 6000
- easing.type: Easing.Bezier
- easing.bezierCurve: out60in33
- onRunningChanged: console.log("onRunningChanged (renderThreadItem): " + running)
- onStarted: console.log("onStarted (renderThreadItem): " + running)
- }
- }
- }
-
- Item {
- id: mainThreadItem
- y: parent.height / 2
- width: parent.width
- height: parent.height / 2
- visible: !mainThreadAnimationsDisabled
-
- Text {
- anchors.centerIn: parent
- text: "Main thread animation"
- smooth: true
- color: "white"
- font.pixelSize: 20
- }
-
- Behavior on rotation {
- NumberAnimation {
- duration: 6000
- easing.type: Easing.Bezier
- easing.bezierCurve: out60in33
- onRunningChanged: console.log("onRunningChanged (mainThreadItem): " + running)
- onStarted: console.log("onStarted (mainThreadItem): " + running)
- }
- }
- }
-
- Control {
- id: control
- anchors.bottom: parent.bottom
- running: true
- }
-}