summaryrefslogtreecommitdiffstats
path: root/examples/bars/graphmodifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bars/graphmodifier.cpp')
-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);