summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlbehaviour.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/util/qmlbehaviour.cpp')
-rw-r--r--src/declarative/util/qmlbehaviour.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/declarative/util/qmlbehaviour.cpp b/src/declarative/util/qmlbehaviour.cpp
index 58e515f..354c7e3 100644
--- a/src/declarative/util/qmlbehaviour.cpp
+++ b/src/declarative/util/qmlbehaviour.cpp
@@ -105,15 +105,19 @@ public:
\qmlclass Behaviour QmlBehaviour
\brief The Behaviour element allows you to specify a default animation for a property change.
- In example below, Rect1 will use a bounce easing curve over 200 millisecond for any changes to its y property:
+ In example below, the rect will use a bounce easing curve over 200 millisecond for any changes to its y property:
\code
- <Rect id="Rect1" y="200" width="20" height="20" color="#00ff00">
- <y>
- <Behaviour>
- <NumericAnimation easing="easeOutBounce(amplitude:100)" duration="200" />
- </Behaviour>
- </y>
- </Rect>
+ Rect {
+ width: 20; height: 20
+ color: "#00ff00"
+ y: 200 //initial value
+ y: Behaviour {
+ NumericAnimation {
+ easing: "easeOutBounce(amplitude:100)"
+ duration: 200
+ }
+ }
+ }
\endcode
*/