~ubuntu-branches/ubuntu/saucy/qtdeclarative-opensource-src/saucy

« back to all changes in this revision

Viewing changes to tests/auto/quick/qquicksmoothedanimation/data/smoothedanimationBehavior.qml

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2013-02-05 14:17:19 UTC
  • Revision ID: package-import@ubuntu.com-20130205141719-qqeyml8wslpyez52
Tags: upstream-5.0.1
ImportĀ upstreamĀ versionĀ 5.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
 
 
3
Rectangle {
 
4
     width: 400; height: 400; color: "blue"
 
5
 
 
6
    Rectangle {
 
7
        id: rect1
 
8
        color: "red"
 
9
        width: 60; height: 60;
 
10
        x: 100; y: 100;
 
11
        SmoothedAnimation on x { to: 200; velocity: 500 }
 
12
        SmoothedAnimation on y { to: 200; velocity: 500 }
 
13
    }
 
14
 
 
15
     Rectangle {
 
16
         objectName: "theRect"
 
17
         color: "green"
 
18
         width: 60; height: 60;
 
19
         x: rect1.x; y: rect1.y;
 
20
         // id are needed for SmoothedAnimation in order to avoid deferred creation
 
21
         Behavior on x { SmoothedAnimation { id: anim1; objectName: "easeX"; velocity: 400 } }
 
22
         Behavior on y { SmoothedAnimation { id: anim2; objectName: "easeY"; velocity: 400 } }
 
23
     }
 
24
 }