From 08f0ba6a5a94ae4b4c70a2d8d726b8dc9c36b5cf Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Mon, 11 Oct 2021 17:42:19 +0200 Subject: Conform with coding style: spacing-only changes Spaces are required around operators, case labels are meant to line up with their switch, no spaces immediately inside parentheses, only one space between words. Change-Id: I4f2182a31247bfe83f43b98ff424e008a4c545fd Reviewed-by: Miikka Heikkinen --- examples/charts/legendmarkers/mainwidget.cpp | 2 +- .../charts/qmlcustomlegend/qml/qmlcustomlegend/ChartViewHighlighted.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/charts/legendmarkers/mainwidget.cpp b/examples/charts/legendmarkers/mainwidget.cpp index e02c4908..bea5ef92 100644 --- a/examples/charts/legendmarkers/mainwidget.cpp +++ b/examples/charts/legendmarkers/mainwidget.cpp @@ -139,7 +139,7 @@ void MainWidget::handleMarkerClicked() switch (marker->type()) //![4] { - case QLegendMarker::LegendMarkerTypeXY: + case QLegendMarker::LegendMarkerTypeXY: { //![5] // Toggle visibility of series diff --git a/examples/charts/qmlcustomlegend/qml/qmlcustomlegend/ChartViewHighlighted.qml b/examples/charts/qmlcustomlegend/qml/qmlcustomlegend/ChartViewHighlighted.qml index 266a6785..1edce7a6 100644 --- a/examples/charts/qmlcustomlegend/qml/qmlcustomlegend/ChartViewHighlighted.qml +++ b/examples/charts/qmlcustomlegend/qml/qmlcustomlegend/ChartViewHighlighted.qml @@ -72,7 +72,7 @@ ChartView { lineSeries.clear(); lineSeries.color = selectedSeries.color; var maxVal = 0.0; - for (var i = 0; i < selectedSeries.upperSeries.count; i++ ) { + for (var i = 0; i < selectedSeries.upperSeries.count; i++) { var y = selectedSeries.upperSeries.at(i).y - selectedSeries.lowerSeries.at(i).y; lineSeries.append(selectedSeries.upperSeries.at(i).x, y); if (maxVal < y) -- cgit v1.2.3