blob: cb9683f3aa2d21837151a179e9de10888fb3cb12 (
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
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import examples.valuesource.people
BirthdayParty {
HappyBirthdaySong on announcement { name: "Bob Jones" }
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"
}
}
|