blob: 75add22afc3c44f74a533a312454f05df54ba507 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import People
BirthdayParty {
id: theParty
HappyBirthdaySong on announcement { name: theParty.host.name }
onPartyStarted: (time) => { console.log("This party started rockin' at " + time); }
host: Boy {
name: "Bob Jones"
shoe_size: 12
}
Boy {
name: "Leo Hodges"
BirthdayParty.rsvp: "2009-07-06"
}
Boy {
name: "Jack Smith"
}
Girl {
name: "Anne Brown"
BirthdayParty.rsvp: "2009-07-01"
}
}
|