aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2022-07-27 16:40:21 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-07-29 07:16:03 +0000
commit34e7142ed40a4fd2a745c5ffe6f374f3a4a32842 (patch)
tree1d7bd8ff7233b9cdfdcaa87a0513802276fc2c50 /tests
parent9e38d85b8943a9f6236f74ba92c64a8a8edeec24 (diff)
tst_qquickpincharea: fix signal handler parameter injection warning
The warning was: pinchproperties.qml:45:13 Parameter "pinch" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead. Change-Id: Iac453ae128cd4ac4b621d9548f439a121f83c407 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 384ba7dfa83b1680d435d4924e9098adcbfdf654) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/quick/qquickpincharea/data/pinchproperties.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/quick/qquickpincharea/data/pinchproperties.qml b/tests/auto/quick/qquickpincharea/data/pinchproperties.qml
index 899c6380da..42096d0b77 100644
--- a/tests/auto/quick/qquickpincharea/data/pinchproperties.qml
+++ b/tests/auto/quick/qquickpincharea/data/pinchproperties.qml
@@ -31,18 +31,18 @@ Rectangle {
pinch.maximumScale: 2.0
pinch.minimumRotation: 0.0
pinch.maximumRotation: 90.0
- onPinchStarted: {
+ onPinchStarted: (pinch) => {
whiteRect.center = pinch.center
whiteRect.scale = pinch.scale
whiteRect.pointCount = pinch.pointCount;
whiteRect.pinchActive = true;
}
- onPinchUpdated: {
+ onPinchUpdated: (pinch) => {
whiteRect.center = pinch.center
whiteRect.scale = pinch.scale
whiteRect.pointCount = pinch.pointCount;
}
- onPinchFinished: {
+ onPinchFinished: (pinch) => {
whiteRect.center = pinch.center
whiteRect.scale = pinch.scale
whiteRect.pointCount = pinch.pointCount;