summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-06-12 00:56:38 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-06-12 00:56:38 (GMT)
commite0d86a3b3da044c565a34f3a66335e3e977e1d63 (patch)
tree6290d53bb45464fa00d284a333fcbe44624156ae /examples
parent1c0529462067e5ae91199ff51ced56fd40244b36 (diff)
downloadQt-e0d86a3b3da044c565a34f3a66335e3e977e1d63.zip
Qt-e0d86a3b3da044c565a34f3a66335e3e977e1d63.tar.gz
Qt-e0d86a3b3da044c565a34f3a66335e3e977e1d63.tar.bz2
Behavior fixes.
You can now write x: Behavior { NumericAnimation { duration: 500 } }, rather than having to specify the target and property for the animation explicitly. Also other minor fixes.
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/behaviours/test.qml15
1 files changed, 4 insertions, 11 deletions
diff --git a/examples/declarative/behaviours/test.qml b/examples/declarative/behaviours/test.qml
index bb7109e..e6a50cd 100644
--- a/examples/declarative/behaviours/test.qml
+++ b/examples/declarative/behaviours/test.qml
@@ -54,7 +54,7 @@ Rect {
width: 100
height: 100
id: bluerect
- x: Behaviour {
+ x: Behavior {
SequentialAnimation {
NumericAnimation {
target: bluerect
@@ -73,13 +73,9 @@ Rect {
duration: 250
}
}
- NumericAnimation {
- target: bluerect
- property: "x"
- duration: 500
- }
+ NumericAnimation { duration: 500 }
}
- parent: Behaviour {
+ parent: Behavior {
SequentialAnimation {
NumericAnimation {
target: bluerect
@@ -87,10 +83,7 @@ Rect {
to: 0
duration: 150
}
- SetPropertyAction {
- target: bluerect
- property: "parent"
- }
+ SetPropertyAction {}
NumericAnimation {
target: bluerect
properties: "opacity"