aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/badBinding.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-02-18 11:40:31 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-02-24 08:33:21 +0100
commit120eb155ef1f0da51c473b080880169a85e5ceb2 (patch)
treeb8bc85734d68f125d424b1f45f2576d20c885a43 /tests/auto/qml/qmllint/data/badBinding.qml
parentae68d95b8c1c56ae907cbe88122dd79bafd20b72 (diff)
qmllint: Check for existence of property types
For each binding there should be a property and that property should have a type we recognize. Enums can be property types in C++. We support this by adding child scopes for such enums. The child scopes are then referenced by the QQmlJSMetaEnums and derive from int. The test then reveals that we were missing a few properties in QtQuick.tooling. Add those. Change-Id: I1deef94393ee0e17d34c2dc5980ebfbf25417f36 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 08c8e8ac3ba8eb23ae5c158990f5d029ac9988ed)
Diffstat (limited to 'tests/auto/qml/qmllint/data/badBinding.qml')
-rw-r--r--tests/auto/qml/qmllint/data/badBinding.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/badBinding.qml b/tests/auto/qml/qmllint/data/badBinding.qml
new file mode 100644
index 0000000000..8e781710a2
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/badBinding.qml
@@ -0,0 +1,5 @@
+import QtQml
+
+QtObject {
+ doesNotExist: 12
+}