aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmlls/utils/data/findUsages/enums/Enums.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qmlls/utils/data/findUsages/enums/Enums.qml')
-rw-r--r--tests/auto/qmlls/utils/data/findUsages/enums/Enums.qml27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/auto/qmlls/utils/data/findUsages/enums/Enums.qml b/tests/auto/qmlls/utils/data/findUsages/enums/Enums.qml
new file mode 100644
index 0000000000..a60bb38053
--- /dev/null
+++ b/tests/auto/qmlls/utils/data/findUsages/enums/Enums.qml
@@ -0,0 +1,27 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+import QtQml
+
+QtObject {
+
+ enum Cats {
+ Patron = 8,
+ Mafik = 7,
+ Kivrik = 2
+ }
+
+ property var inner: QtObject {
+ enum Cats {
+ Patron = -8, // Shouldn't be found
+ Mafik = -7,
+ Kivrik = -2
+ }
+ }
+
+ property int main: Enums.Cats.Patron
+ property int innerVal: Enums.Patron
+ property int illegal1: Cats.Patron // Shouldn't be found
+ property int illegal2: Patron // Shouldn't be found
+ property int alien: EnumsFromAnotherFile.FromAnotherUniverse
+}