summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2013-11-25 12:19:18 +0200
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2013-11-25 14:22:32 +0200
commite029d0ea1d486dd3dbbfa4519a2125da202f22e4 (patch)
treefc9f87f637a9adcca5a555355d96717d43eddc77 /src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp
parente7e01ec065d3874d28e9e28d213783c4275d8813 (diff)
Change qreals to floats
+ Fix default axes to sensible + Fix some rounding errors in surface creation Task-number: QTRD-2622 Change-Id: I44450efc1e77ac8d8dbefc75814345949b8fb1f1 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp')
-rw-r--r--src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp b/src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp
index 6d855ecb..d0cd0346 100644
--- a/src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp
+++ b/src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp
@@ -35,7 +35,7 @@ int main(int argc, char **argv)
//! [1]
QBar3DSeries *series = new QBar3DSeries;
QBarDataRow *data = new QBarDataRow;
- *data << 1.0 << 3.0 << 7.5 << 5.0 << 2.2;
+ *data << 1.0f << 3.0f << 7.5f << 5.0f << 2.2f;
series->dataProxy()->addRow(data);
bars.addSeries(series);
//! [1]