diff options
Diffstat (limited to 'examples/quick/animation/behaviors/wigglytext.qml')
-rw-r--r-- | examples/quick/animation/behaviors/wigglytext.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/quick/animation/behaviors/wigglytext.qml b/examples/quick/animation/behaviors/wigglytext.qml index 4bb94da100..67e6da3fbb 100644 --- a/examples/quick/animation/behaviors/wigglytext.qml +++ b/examples/quick/animation/behaviors/wigglytext.qml @@ -86,8 +86,10 @@ Rectangle { id: letter property variant follow +//! [0] x: follow ? follow.x + follow.width : container.width / 6 y: follow ? follow.y : container.height / 2 +//! [0] font.pixelSize: 40; font.bold: true color: "#999999"; styleColor: "#222222"; style: Text.Raised @@ -99,8 +101,10 @@ Rectangle { onReleased: letter.color = "#999999" } +//! [1] Behavior on x { enabled: container.animated; SpringAnimation { spring: 3; damping: 0.3; mass: 1.0 } } Behavior on y { enabled: container.animated; SpringAnimation { spring: 3; damping: 0.3; mass: 1.0 } } +//! [1] } } |