aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltyperegistrar/enum.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmltyperegistrar/enum.h')
-rw-r--r--tests/auto/qml/qmltyperegistrar/enum.h11
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