aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/onAssignment.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-02-12 14:35:48 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-02-16 14:44:48 +0000
commit04c16d7c1e06d6bfc33c61e7fda0c59e45c4daaa (patch)
tree33e9d642de6db48065894cdb6be55ca7e7973acf /tests/auto/qml/qmllint/data/onAssignment.qml
parentc0775e9a9cfb9541fc61d788516cfc635338b4f8 (diff)
qmllint: Don't create properties for "on" assignments
"on" assignments are assignments to the default property, with the property given interpreted as the target for the inner object. Change-Id: Ia93a171f759964d2c00d6c0293a5434f588123af Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 67c8afff346eae27c6fb833661d179326dd8b153) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/qml/qmllint/data/onAssignment.qml')
-rw-r--r--tests/auto/qml/qmllint/data/onAssignment.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/onAssignment.qml b/tests/auto/qml/qmllint/data/onAssignment.qml
new file mode 100644
index 0000000000..b754a7f311
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/onAssignment.qml
@@ -0,0 +1,7 @@
+import QtQuick
+
+Item {
+ property bool pressed: false
+ SequentialAnimation on pressed {}
+ property int wrong: pressed.loops
+}