summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qml3doscilloscope
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/qml3doscilloscope
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/qml3doscilloscope')
-rw-r--r--examples/datavisualization/qml3doscilloscope/qml/qml3doscilloscope/main.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/datavisualization/qml3doscilloscope/qml/qml3doscilloscope/main.qml b/examples/datavisualization/qml3doscilloscope/qml/qml3doscilloscope/main.qml
index 70484c18..ba733c21 100644
--- a/examples/datavisualization/qml3doscilloscope/qml/qml3doscilloscope/main.qml
+++ b/examples/datavisualization/qml3doscilloscope/qml/qml3doscilloscope/main.qml
@@ -75,7 +75,7 @@ Item {
axisZ.segmentCount: 4
measureFps: true
- onCurrentFpsChanged: {
+ onCurrentFpsChanged: (fps)=> {
if (fps > 10)
fpsText.text = "FPS: " + Math.round(surfaceGraph.currentFps)
else
@@ -118,7 +118,7 @@ Item {
Rectangle {
width: parent.width
- height: flatShadingToggle.height * 2
+ height: flatShadingToggle.implicitHeight * 2
anchors.left: parent.left
anchors.top: parent.top
color: surfaceGraph.theme.backgroundColor