diff options
author | Sami Varanka <sami.varanka@qt.io> | 2021-05-18 16:04:25 +0300 |
---|---|---|
committer | Sami Varanka <sami.varanka@qt.io> | 2021-05-25 07:05:50 +0300 |
commit | 3184afc8c9cea87fdfc71ed003f29cb29c23ed40 (patch) | |
tree | 17a003a9ceb8cd61c686266f419da96f2db5f3c1 /tests/manual | |
parent | 60339e4bbd99bc4e9596adaaf056fc59a453a4f4 (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')
-rw-r--r-- | tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml | 4 | ||||
-rw-r--r-- | tests/manual/qmlgradient/qml/qmlgradient/main.qml | 2 | ||||
-rw-r--r-- | tests/manual/qmlperf/qml/qmlperf/main.qml | 20 |
3 files changed, 13 insertions, 13 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) diff --git a/tests/manual/qmlgradient/qml/qmlgradient/main.qml b/tests/manual/qmlgradient/qml/qmlgradient/main.qml index 8aff340c..7df90def 100644 --- a/tests/manual/qmlgradient/qml/qmlgradient/main.qml +++ b/tests/manual/qmlgradient/qml/qmlgradient/main.qml @@ -122,7 +122,7 @@ Rectangle { axisX.title: "Latitude" axisZ.title: "Longitude" - Surface3DSeries{ + Surface3DSeries { id: heightSeries drawMode: Surface3DSeries.DrawSurface visible: true diff --git a/tests/manual/qmlperf/qml/qmlperf/main.qml b/tests/manual/qmlperf/qml/qmlperf/main.qml index 84ad4a71..1ff64ad5 100644 --- a/tests/manual/qmlperf/qml/qmlperf/main.qml +++ b/tests/manual/qmlperf/qml/qmlperf/main.qml @@ -136,17 +136,17 @@ Rectangle { fpsText.text = itemCount + " : " + scatterPlot.currentFps.toFixed(1); } -// theme: Theme3D { -// type: Theme3D.ThemeRetro -// colorStyle: Theme3D.ColorStyleRangeGradient -// baseGradients: customGradient + theme: Theme3D { + type: Theme3D.ThemeRetro + colorStyle: Theme3D.ColorStyleRangeGradient + baseGradients: customGradient -// ColorGradient { -// id: customGradient -// ColorGradientStop { position: 1.0; color: "red" } -// ColorGradientStop { position: 0.0; color: "blue" } -// } -// } + ColorGradient { + id: customGradient + ColorGradientStop { position: 1.0; color: "red" } + ColorGradientStop { position: 0.0; color: "blue" } + } + } Scatter3DSeries { id: scatterSeries |