diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-16 11:31:51 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-30 10:34:25 +0200 |
commit | 8b396cb21606c3b384d1bab71851767ea7b24ca5 (patch) | |
tree | ec3128a0527d04f766bbde305842258b471130a6 /tests/auto/qml/qmllint/data | |
parent | 02f43807c6e2a35dc28b7ef477db55bb8312e60c (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.qml | 15 |
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) + } + } +} |