summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-01-23 07:34:58 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-01-23 07:36:10 +0200
commit26ec9986e834e683b39c51cfffe19adeae85f780 (patch)
treed7967d8875e76707bae87339f3bc35328d101af0
parent733c87119a9f4bd742407905a779d85cf0aa5d67 (diff)
Updated custom proxy example a bit
Change-Id: I9eecfa920d22e928dbe394a3c8ddf649082d2af4 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
-rw-r--r--examples/customproxy/rainfallgraph.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/customproxy/rainfallgraph.cpp b/examples/customproxy/rainfallgraph.cpp
index a9113643..ff3c9246 100644
--- a/examples/customproxy/rainfallgraph.cpp
+++ b/examples/customproxy/rainfallgraph.cpp
@@ -74,12 +74,14 @@ RainfallGraph::RainfallGraph(Q3DBars *rainfall)
// Set theme
m_graph->activeTheme()->setType(Q3DTheme::ThemeArmyBlue);
- // Set font to theme
+ // Override font in theme
m_graph->activeTheme()->setFont(QFont("Century Gothic", 30));
+ // Override label background for theme
+ m_graph->activeTheme()->setLabelBackgroundEnabled(false);
+
// Set camera position and zoom
m_graph->scene()->activeCamera()->setCameraPreset(Q3DCamera::CameraPresetIsometricRightHigh);
- m_graph->scene()->activeCamera()->setZoomLevel(75);
// Set window title
m_graph->setTitle(QStringLiteral("Monthly rainfall in Northern Finland"));