aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-08-16 11:31:51 +0200
committerUlf Hermann <ulf.hermann@qt.io>2019-08-30 10:34:25 +0200
commit8b396cb21606c3b384d1bab71851767ea7b24ca5 (patch)
treeec3128a0527d04f766bbde305842258b471130a6 /tests/auto/qml/qmllint/data
parent02f43807c6e2a35dc28b7ef477db55bb8312e60c (diff)
qmllint: Warn about magic signal handlers
Those are typically part of Connections elements. We want to use functions instead. Change-Id: I08b65eae8b8a6ba95f7a3570f5465961abbb506e Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/data')
-rw-r--r--tests/auto/qml/qmllint/data/UnmatchedSignalHandler.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/UnmatchedSignalHandler.qml b/tests/auto/qml/qmllint/data/UnmatchedSignalHandler.qml
new file mode 100644
index 0000000000..064444e182
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/UnmatchedSignalHandler.qml
@@ -0,0 +1,15 @@
+import QtQuick 2.12
+
+Item {
+ width: 640
+ height: 480
+
+ MouseArea {
+ anchors.fill: parent
+ onClicked: console.log("okok")
+
+ Connections {
+ onClicked: console.log(mouse.x)
+ }
+ }
+}