summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmlspectrogram
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/qmlspectrogram
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/qmlspectrogram')
-rw-r--r--examples/datavisualization/qmlspectrogram/qml/qmlspectrogram/main.qml10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/datavisualization/qmlspectrogram/qml/qmlspectrogram/main.qml b/examples/datavisualization/qmlspectrogram/qml/qmlspectrogram/main.qml
index 3e7478ef..35143179 100644
--- a/examples/datavisualization/qmlspectrogram/qml/qmlspectrogram/main.qml
+++ b/examples/datavisualization/qmlspectrogram/qml/qmlspectrogram/main.qml
@@ -221,12 +221,10 @@ Window {
Layout.fillHeight: true
text: "Toggle axis grid on top"
onClicked: {
- onClicked: {
- if (surfaceGraph.flipHorizontalGrid === true) {
- surfaceGraph.flipHorizontalGrid = false;
- } else {
- surfaceGraph.flipHorizontalGrid = true;
- }
+ if (surfaceGraph.flipHorizontalGrid === true) {
+ surfaceGraph.flipHorizontalGrid = false;
+ } else {
+ surfaceGraph.flipHorizontalGrid = true;
}
}
}