summaryrefslogtreecommitdiffstats
path: root/examples/surface/surfacegraph.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2013-12-18 14:19:33 +0200
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2013-12-18 14:37:50 +0200
commit5273db8cbc592ee5d2da767e3a8e873f2a83784f (patch)
treebc2573b712d79d93344612b3f4acbaa04ccf33c4 /examples/surface/surfacegraph.cpp
parentea0442bc81ae034d22c5742b6075dee993fdd54d (diff)
Fix minor cosmetic issues in examples
Task-id: QTRD-2741 Change-Id: Ifdd49bc9541c2893a7c6f3629cde12e2d15ad7c0 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'examples/surface/surfacegraph.cpp')
-rw-r--r--examples/surface/surfacegraph.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/surface/surfacegraph.cpp b/examples/surface/surfacegraph.cpp
index 24ab3715..7ebb6b72 100644
--- a/examples/surface/surfacegraph.cpp
+++ b/examples/surface/surfacegraph.cpp
@@ -49,6 +49,7 @@ SurfaceGraph::SurfaceGraph(Q3DSurface *surface)
QImage heightMapImage(":/maps/mountain");
m_heightMapProxy = new QHeightMapSurfaceDataProxy(heightMapImage);
m_heightMapSeries = new QSurface3DSeries(m_heightMapProxy);
+ m_heightMapSeries->setItemLabelFormat(QStringLiteral("(@xLabel, @zLabel): @yLabel"));
m_heightMapProxy->setValueRanges(34.0f, 40.0f, 18.0f, 24.0f);
//! [2]
m_heightMapWidth = heightMapImage.width();