summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/coercion/example.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/extending/coercion/example.qml')
-rw-r--r--examples/declarative/extending/coercion/example.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/declarative/extending/coercion/example.qml b/examples/declarative/extending/coercion/example.qml
new file mode 100644
index 0000000..64d26b0
--- /dev/null
+++ b/examples/declarative/extending/coercion/example.qml
@@ -0,0 +1,15 @@
+import People 1.0
+
+// ![0]
+BirthdayParty {
+ celebrant: Boy {
+ name: "Bob Jones"
+ shoeSize: 12
+ }
+ guests: [
+ Boy { name: "Joan Hodges" },
+ Boy { name: "Jack Smith" },
+ Girl { name: "Anne Brown" }
+ ]
+}
+// ![0]