summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmlbars/qml/qmlbars/main.qml
diff options
context:
space:
mode:
authorSami Varanka <sami.varanka@qt.io>2021-05-18 16:04:25 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-05-25 04:21:33 +0000
commit08114577e37380314128ed0b05e9a2a067557824 (patch)
tree629401fb7fe042adf3d38ff501851143130c1d9c /examples/datavisualization/qmlbars/qml/qmlbars/main.qml
parentdb1a5e82fcd48e82485fe24e214f71b9e0aebfac (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 'examples/datavisualization/qmlbars/qml/qmlbars/main.qml')
-rw-r--r--examples/datavisualization/qmlbars/qml/qmlbars/main.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/datavisualization/qmlbars/qml/qmlbars/main.qml b/examples/datavisualization/qmlbars/qml/qmlbars/main.qml
index b32a2aa0..ab855fd9 100644
--- a/examples/datavisualization/qmlbars/qml/qmlbars/main.qml
+++ b/examples/datavisualization/qmlbars/qml/qmlbars/main.qml
@@ -142,7 +142,7 @@ Rectangle {
ColorGradientStop { position: 0.0; color: "#600000" }
}
- onSelectedBarChanged: handleSelectionChange(secondarySeries, position)
+ onSelectedBarChanged: (position)=> handleSelectionChange(secondarySeries, position)
}
//! [3]
@@ -171,7 +171,7 @@ Rectangle {
ColorGradientStop { position: 0.0; color: "#006000" }
}
- onSelectedBarChanged: handleSelectionChange(barSeries, position)
+ onSelectedBarChanged: (position)=> handleSelectionChange(barSeries, position)
}
}
}