summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-10-25 12:36:58 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-10-25 12:41:52 +0300
commitae279ce977e7c45e6afcf4ec4d4484a813857909 (patch)
treef95734b990c8f1a9a9d90d823c86d5b62e02367c /examples
parent034ddfcbc09aabeb1a2cc63c82f7396e906d3b53 (diff)
Tech preview RC fixes
Change-Id: I5a47053c8708b9a9c37b845bc55166f02fc99de3 Change-Id: I5a47053c8708b9a9c37b845bc55166f02fc99de3 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/bars/graphmodifier.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/bars/graphmodifier.cpp b/examples/bars/graphmodifier.cpp
index 0b33bde0..e2ace423 100644
--- a/examples/bars/graphmodifier.cpp
+++ b/examples/bars/graphmodifier.cpp
@@ -78,6 +78,7 @@ GraphModifier::GraphModifier(Q3DBars *bargraph)
m_graph->addDataProxy(m_temperatureData);
//! [4]
+ changePresetCamera();
resetTemperatureData();
}
//! [0]
@@ -141,7 +142,7 @@ void GraphModifier::changeStyle(int style)
void GraphModifier::changePresetCamera()
{
- static int preset = QDataVis::CameraPresetFrontLow;
+ static int preset = QDataVis::CameraPresetFront;
m_graph->scene()->activeCamera()->setCameraPreset((QDataVis::CameraPreset)preset);