diff options
author | Andre Klitzing <aklitzing@gmail.com> | 2024-03-26 11:31:37 +0100 |
---|---|---|
committer | Andre Klitzing <aklitzing@gmail.com> | 2024-03-27 21:14:30 +0100 |
commit | fa081b89f0bf8813e11d00436ab0dc9fb5efb378 (patch) | |
tree | b7ca858b519d63cfeb39adbb536ea4f51f969e30 /tests | |
parent | f080d0309d4c1d0d8a96dabe832162c5f41b881f (diff) |
Fix namespace in namespace detection of a foreign type
Add full qualified name to QML_FOREIGN, otherwise it
won't detect a namespace in a namespace.
Task-number: QTBUG-123535
Pick-to: 6.7 6.5
Change-Id: I679edc2566739ee52bf531ecec64789350fcdd11
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/qmltyperegistrar/enum.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qml/qmltyperegistrar/enum.h b/tests/auto/qml/qmltyperegistrar/enum.h index 4a39c22545..7c10233b6f 100644 --- a/tests/auto/qml/qmltyperegistrar/enum.h +++ b/tests/auto/qml/qmltyperegistrar/enum.h @@ -16,4 +16,15 @@ namespace Hello { Q_ENUM_NS(World) } +namespace Universe { + namespace Galaxy { + Q_NAMESPACE + QML_NAMED_ELEMENT(Solar) + enum class Solar { + Earth, + }; + Q_ENUM_NS(Solar) + } +} + #endif // ENUM_NS_HELLO_H |