summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-04-20 03:23:34 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-04-21 00:59:44 (GMT)
commite11a5c4d1a1bb80ac03655227c833b560c7cad3c (patch)
tree6d377860ee054e95d7e3a285c8b0f9e7d9cc891a
parentb65cfb07a5bdf9e4ea1ea6e652688824f7b5da15 (diff)
downloadQt-e11a5c4d1a1bb80ac03655227c833b560c7cad3c.zip
Qt-e11a5c4d1a1bb80ac03655227c833b560c7cad3c.tar.gz
Qt-e11a5c4d1a1bb80ac03655227c833b560c7cad3c.tar.bz2
Make property value source examples work
-rw-r--r--doc/src/declarative/extending.qdoc2
-rw-r--r--examples/declarative/extending/binding/example.qml2
-rw-r--r--examples/declarative/extending/valuesource/example.qml2
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/declarative/extending.qdoc b/doc/src/declarative/extending.qdoc
index a1d8a10..d0e5f9e 100644
--- a/doc/src/declarative/extending.qdoc
+++ b/doc/src/declarative/extending.qdoc
@@ -427,7 +427,7 @@ implement the onPartyStarted signal property.
\snippet examples/declarative/extending/valuesource/example.qml 0
\snippet examples/declarative/extending/valuesource/example.qml 1
-The QML snippet shown above assigns a property value to the speaker property.
+The QML snippet shown above applies a property value source to the speaker property.
A property value source generates a value for a property that changes over time.
Property value sources are most commonly used to do animation. Rather than
diff --git a/examples/declarative/extending/binding/example.qml b/examples/declarative/extending/binding/example.qml
index b66bc86..b67049b 100644
--- a/examples/declarative/extending/binding/example.qml
+++ b/examples/declarative/extending/binding/example.qml
@@ -4,7 +4,7 @@ import People 1.0
BirthdayParty {
id: theParty
- speaker: HappyBirthday { name: theParty.celebrant.name }
+ HappyBirthday on speaker { name: theParty.celebrant.name }
celebrant: Boy {
name: "Bob Jones"
diff --git a/examples/declarative/extending/valuesource/example.qml b/examples/declarative/extending/valuesource/example.qml
index 7cdf8c0..ed4d788 100644
--- a/examples/declarative/extending/valuesource/example.qml
+++ b/examples/declarative/extending/valuesource/example.qml
@@ -2,7 +2,7 @@ import People 1.0
// ![0]
BirthdayParty {
- speaker: HappyBirthday { name: "Bob Jones" }
+ HappyBirthday on speaker { name: "Bob Jones" }
// ![0]
onPartyStarted: console.log("This party started rockin' at " + time);