summaryrefslogtreecommitdiffstats
path: root/examples/charts
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-10-11 17:42:19 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2021-10-13 11:50:22 +0200
commit08f0ba6a5a94ae4b4c70a2d8d726b8dc9c36b5cf (patch)
tree302ceaf7087c5617e41eec46d51b9a069e46a811 /examples/charts
parentd297f53f91fb44bb8b0bd63a0f004f6818f80a27 (diff)
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 <miikka.heikkinen@qt.io>
Diffstat (limited to 'examples/charts')
-rw-r--r--examples/charts/legendmarkers/mainwidget.cpp2
-rw-r--r--examples/charts/qmlcustomlegend/qml/qmlcustomlegend/ChartViewHighlighted.qml2
2 files changed, 2 insertions, 2 deletions
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)