diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-04-28 11:47:23 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-05-02 16:44:15 +0200 |
| commit | fbb22873530c200b4ddb9b2da91764948bb9da71 (patch) | |
| tree | 88c64bde71483b6f68c5770e145268282f856c8f /examples/qml/referenceexamples/methods/People | |
| parent | 2c166425cf4143a6c5f6744ffa959a1b77b13e36 (diff) | |
Port the QML reference examples to QML module usage
As a drive-by fix the example origin where applicable.
Task-number: PYSIDE-2206
Task-number: QTBUG-111033
Pick-to: 6.5
Change-Id: If3b17435c17310c3f6c196f7653c7025ad359366
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'examples/qml/referenceexamples/methods/People')
| -rw-r--r-- | examples/qml/referenceexamples/methods/People/Main.qml | 19 | ||||
| -rw-r--r-- | examples/qml/referenceexamples/methods/People/qmldir | 3 |
2 files changed, 22 insertions, 0 deletions
diff --git a/examples/qml/referenceexamples/methods/People/Main.qml b/examples/qml/referenceexamples/methods/People/Main.qml new file mode 100644 index 000000000..69b2119ab --- /dev/null +++ b/examples/qml/referenceexamples/methods/People/Main.qml @@ -0,0 +1,19 @@ +// Copyright (C) 2017 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +import QtQuick +import People + +BirthdayParty { + host: Person { + name: "Bob Jones" + shoe_size: 12 + } + guests: [ + Person { name: "Leo Hodges" }, + Person { name: "Jack Smith" }, + Person { name: "Anne Brown" } + ] + + Component.onCompleted: invite("William Green") +} diff --git a/examples/qml/referenceexamples/methods/People/qmldir b/examples/qml/referenceexamples/methods/People/qmldir new file mode 100644 index 000000000..a2bd9515a --- /dev/null +++ b/examples/qml/referenceexamples/methods/People/qmldir @@ -0,0 +1,3 @@ +module People +typeinfo coercion.qmltypes +Main 1.0 Main.qml |
