summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmlcustominput/qml/qmlcustominput
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 /examples/datavisualization/qmlcustominput/qml/qmlcustominput
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 'examples/datavisualization/qmlcustominput/qml/qmlcustominput')
-rw-r--r--examples/datavisualization/qmlcustominput/qml/qmlcustominput/main.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/datavisualization/qmlcustominput/qml/qmlcustominput/main.qml b/examples/datavisualization/qmlcustominput/qml/qmlcustominput/main.qml
index 67972b6a..23fb13ee 100644
--- a/examples/datavisualization/qmlcustominput/qml/qmlcustominput/main.qml
+++ b/examples/datavisualization/qmlcustominput/qml/qmlcustominput/main.qml
@@ -112,14 +112,14 @@ Rectangle {
//! [2]
//! [3]
- onPositionChanged: {
+ onPositionChanged: (mouse)=> {
mouseX = mouse.x;
mouseY = mouse.y;
}
//! [3]
//! [5]
- onWheel: {
+ onWheel: (wheel)=> {
// Adjust zoom level based on what zoom range we're in.
var zoomLevel = scatterGraph.scene.activeCamera.zoomLevel;
if (zoomLevel > 100)