summaryrefslogtreecommitdiffstats
path: root/examples/charts/temperaturerecords/main.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2017-08-01 16:45:50 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2017-08-03 07:54:28 +0000
commitebc5bc3d8b2d7ea135a430d5cbc77f9f97cb78b0 (patch)
tree3b872b582ddeab668e0cc4b809640a53b114c282 /examples/charts/temperaturerecords/main.cpp
parenteedb1c76538cac3c11e7ac57eaa571d6ce07a632 (diff)
Minor coding style fixes to examples
Task-number: QTBUG-60662 Change-Id: I0edd88328b403d09faa27d30b89ac91c802121dc Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'examples/charts/temperaturerecords/main.cpp')
-rw-r--r--examples/charts/temperaturerecords/main.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/examples/charts/temperaturerecords/main.cpp b/examples/charts/temperaturerecords/main.cpp
index a41724ba..b521dee7 100644
--- a/examples/charts/temperaturerecords/main.cpp
+++ b/examples/charts/temperaturerecords/main.cpp
@@ -46,8 +46,10 @@ int main(int argc, char *argv[])
QBarSet *low = new QBarSet("Min");
QBarSet *high = new QBarSet("Max");
- *low << -52 << -50 << -45.3 << -37.0 << -25.6 << -8.0 << -6.0 << -11.8 << -19.7 << -32.8 << -43.0 << -48.0;
- *high << 11.9 << 12.8 << 18.5 << 26.5 << 32.0 << 34.8 << 38.2 << 34.8 << 29.8 << 20.4 << 15.1 << 11.8;
+ *low << -52 << -50 << -45.3 << -37.0 << -25.6 << -8.0
+ << -6.0 << -11.8 << -19.7 << -32.8 << -43.0 << -48.0;
+ *high << 11.9 << 12.8 << 18.5 << 26.5 << 32.0 << 34.8
+ << 38.2 << 34.8 << 29.8 << 20.4 << 15.1 << 11.8;
//![1]
//![2]
@@ -64,8 +66,9 @@ int main(int argc, char *argv[])
//![3]
//![4]
- QStringList categories;
- categories << "Jan" << "Feb" << "Mar" << "Apr" << "May" << "Jun" << "Jul" << "Aug" << "Sep" << "Oct" << "Nov" << "Dec";
+ QStringList categories = {
+ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
+ };
QBarCategoryAxis *axis = new QBarCategoryAxis();
axis->append(categories);