diff options
author | Evgeniy A. Dushistov <dushistov@mail.ru> | 2020-06-16 23:52:24 +0300 |
---|---|---|
committer | Evgeniy A. Dushistov <dushistov@mail.ru> | 2020-06-17 14:04:42 +0300 |
commit | 3615c72b666633cef9045012bbb05d5372c35cdf (patch) | |
tree | 8c6a456db529bd46e2bec9f6b23e0990c8e4fd2f /tests/auto/qml/qmllint/data | |
parent | 1b10ce6a08edbc2ac7e8fd7e97e3fc691f2081df (diff) |
qmllint: fix wrong warning about enum usage
Fixes: QTBUG-83796
Change-Id: I635bbfd98cf7be8418b454626ba7725e92b71c2c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/data')
-rw-r--r-- | tests/auto/qml/qmllint/data/EnumAccess1.qml | 9 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/data/EnumAccess2.qml | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/EnumAccess1.qml b/tests/auto/qml/qmllint/data/EnumAccess1.qml new file mode 100644 index 0000000000..8392930b65 --- /dev/null +++ b/tests/auto/qml/qmllint/data/EnumAccess1.qml @@ -0,0 +1,9 @@ +import QtQuick 2.0 + +Item { + enum Status { + On, Off + } + + property int status: EnumAccess1.Off +} diff --git a/tests/auto/qml/qmllint/data/EnumAccess2.qml b/tests/auto/qml/qmllint/data/EnumAccess2.qml new file mode 100644 index 0000000000..9aa6e1bac8 --- /dev/null +++ b/tests/auto/qml/qmllint/data/EnumAccess2.qml @@ -0,0 +1,9 @@ +import QtQuick 2.0 + +Item { + enum Status { + On, Off + } + + property int status: EnumAccess1.Status.Off +} |