From ebc5bc3d8b2d7ea135a430d5cbc77f9f97cb78b0 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Tue, 1 Aug 2017 16:45:50 +0300 Subject: Minor coding style fixes to examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-60662 Change-Id: I0edd88328b403d09faa27d30b89ac91c802121dc Reviewed-by: André Hartmann Reviewed-by: Tomi Korpipää Reviewed-by: Miikka Heikkinen --- examples/charts/temperaturerecords/main.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'examples/charts/temperaturerecords/main.cpp') 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); -- cgit v1.2.3