diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2022-11-28 10:33:55 +0100 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-11-29 12:32:27 +0100 |
| commit | 43ef237f99d9f466b0889eaecff49b5898e6e8f3 (patch) | |
| tree | 236d0f0ab111b05298cf76cc78515cc908536fab /tests/auto/qml/qmlcppcodegen/data/namespaceWithEnum.qml | |
| parent | 4f8485796dc96af91dadeb9c266451528e6520b7 (diff) | |
qmltyperegistrar: Generate accessSemantics="none" for foreign namespaces
If the local type is a namespace, the resulting type can only be a
namespace, too, no matter what kind of tag the foreign one has.
Furthermore, we can re-use types with other QML_* tags this way.
Task-number: QTBUG-108883
Change-Id: Ib2ae08d5b081b8faa35124314f97d406d7b4f76f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/namespaceWithEnum.qml')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/namespaceWithEnum.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/namespaceWithEnum.qml b/tests/auto/qml/qmlcppcodegen/data/namespaceWithEnum.qml new file mode 100644 index 0000000000..aa73a78441 --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/namespaceWithEnum.qml @@ -0,0 +1,7 @@ +pragma Strict +import QtQml +import TestTypes + +QtObject { + property int i: NamespaceWithEnum.CONNECTED +} |
