diff options
author | Sami Varanka <sami.varanka@qt.io> | 2021-05-18 16:04:25 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-05-25 04:21:33 +0000 |
commit | 08114577e37380314128ed0b05e9a2a067557824 (patch) | |
tree | 629401fb7fe042adf3d38ff501851143130c1d9c /tests/manual | |
parent | db1a5e82fcd48e82485fe24e214f71b9e0aebfac (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.
Fixes: QTBUG-92995
Change-Id: I5999df841c077be63a9f01d71188c07574b2669e
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 3184afc8c9cea87fdfc71ed003f29cb29c23ed40)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
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 |