summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/attached/example.qml
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-04-21 00:58:02 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-04-21 00:59:45 (GMT)
commit61f3cb6e79fea0aed80df091013c2228f64955ec (patch)
tree916d4879a326739673f918fc340bc5a4c356bcb9 /examples/declarative/extending/attached/example.qml
parente11a5c4d1a1bb80ac03655227c833b560c7cad3c (diff)
downloadQt-61f3cb6e79fea0aed80df091013c2228f64955ec.zip
Qt-61f3cb6e79fea0aed80df091013c2228f64955ec.tar.gz
Qt-61f3cb6e79fea0aed80df091013c2228f64955ec.tar.bz2
Improve docs and examples for Extending QML in C++
Diffstat (limited to 'examples/declarative/extending/attached/example.qml')
-rw-r--r--examples/declarative/extending/attached/example.qml10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/declarative/extending/attached/example.qml b/examples/declarative/extending/attached/example.qml
index 952eb93..50f0a32 100644
--- a/examples/declarative/extending/attached/example.qml
+++ b/examples/declarative/extending/attached/example.qml
@@ -1,16 +1,17 @@
import People 1.0
BirthdayParty {
- celebrant: Boy {
+ host: Boy {
name: "Bob Jones"
shoe { size: 12; color: "white"; brand: "Nike"; price: 90.0 }
}
// ![1]
Boy {
- name: "Joan Hodges"
- BirthdayParty.rsvp: "2009-07-06"
+ name: "Leo Hodges"
shoe { size: 10; color: "black"; brand: "Reebok"; price: 59.95 }
+
+ BirthdayParty.rsvp: "2009-07-06"
}
// ![1]
Boy {
@@ -19,11 +20,12 @@ BirthdayParty {
}
Girl {
name: "Anne Brown"
- BirthdayParty.rsvp: "2009-07-01"
shoe.size: 7
shoe.color: "red"
shoe.brand: "Marc Jacobs"
shoe.price: 699.99
+
+ BirthdayParty.rsvp: "2009-07-01"
}
}