summaryrefslogtreecommitdiffstats
path: root/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml
diff options
context:
space:
mode:
authorSami Varanka <sami.varanka@qt.io>2021-05-18 16:04:25 +0300
committerSami Varanka <sami.varanka@qt.io>2021-05-25 07:05:50 +0300
commit3184afc8c9cea87fdfc71ed003f29cb29c23ed40 (patch)
tree17a003a9ceb8cd61c686266f419da96f2db5f3c1 /tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml
parent60339e4bbd99bc4e9596adaaf056fc59a453a4f4 (diff)
Fix warnings in datavisualization examples
Injection of parameters into signal handlers is deprecated. So those signal handlers using parameters needed to be changed to use formal parameters instead. Uncommented the theme in qmlperf manual test. Added missing space to qmlgradient manual test. Pick-to: 6.1 Fixes: QTBUG-92995 Change-Id: I5999df841c077be63a9f01d71188c07574b2669e Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml')
-rw-r--r--tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml b/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml
index d5a8506e..25bf3486 100644
--- a/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml
+++ b/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml
@@ -158,12 +158,12 @@ Rectangle {
property int mouseX: -1
property int mouseY: -1
- onPositionChanged: {
+ onPositionChanged: (mouse)=> {
mouseX = mouse.x;
mouseY = mouse.y;
}
- onWheel: {
+ onWheel: (wheel)=> {
// Adjust zoom level based on what zoom range we're in.
var zoomLevel = scatterGraph.scene.activeCamera.zoomLevel;
if (zoomLevel > 100)