From 26ec9986e834e683b39c51cfffe19adeae85f780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Thu, 23 Jan 2014 07:34:58 +0200 Subject: Updated custom proxy example a bit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9eecfa920d22e928dbe394a3c8ddf649082d2af4 Reviewed-by: Tomi Korpipää --- examples/customproxy/rainfallgraph.cpp | 6 ++++-- 1 file 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")); -- cgit v1.2.3