aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/IsNotAnEntryOfEnum.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint/data/IsNotAnEntryOfEnum.qml')
-rw-r--r--tests/auto/qml/qmllint/data/IsNotAnEntryOfEnum.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/IsNotAnEntryOfEnum.qml b/tests/auto/qml/qmllint/data/IsNotAnEntryOfEnum.qml
new file mode 100644
index 0000000000..8b20fe9ae9
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/IsNotAnEntryOfEnum.qml
@@ -0,0 +1,14 @@
+import QtQuick
+
+Item {
+ id: item
+ visible: true
+
+ enum Mode {
+ Hours,
+ Minutes
+ }
+
+ property int mode: item.Mode.Hours
+ property string s: item.mode === IsNotAnEntryOfEnum.Mode.Hour ? "green" : "tomato"
+}