summaryrefslogtreecommitdiffstats
path: root/examples/bars/graphmodifier.cpp
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-01-24 08:26:09 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-01-24 08:27:55 +0200
commit8802cf50ef296ce8cc56a2ba97fa237237f62d15 (patch)
treefafd0f2fb8a99b13ccfb85128f547668c9240c31 /examples/bars/graphmodifier.cpp
parentf5a67847b72cf372f076657405769b024d5f6756 (diff)
Multiseries bars uniform scaling support added
Task-number: QTRD-2805 Change-Id: I7172662b2bed0a222ceb7560718450bcabd2879d Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/bars/graphmodifier.cpp')
-rw-r--r--examples/bars/graphmodifier.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/bars/graphmodifier.cpp b/examples/bars/graphmodifier.cpp
index 1b84ae7b..4a50c77d 100644
--- a/examples/bars/graphmodifier.cpp
+++ b/examples/bars/graphmodifier.cpp
@@ -56,6 +56,7 @@ GraphModifier::GraphModifier(Q3DBars *bargraph)
m_graph->activeTheme()->setBackgroundEnabled(false);
m_graph->activeTheme()->setFont(QFont("Times New Roman", m_fontSize));
m_graph->activeTheme()->setLabelBackgroundEnabled(true);
+ m_graph->setMultiSeriesUniform(true);
//! [2]
m_months << "January" << "February" << "March" << "April" << "May" << "June" << "July" << "August" << "September" << "October" << "November" << "December";
@@ -266,11 +267,4 @@ void GraphModifier::setSmoothBars(int smooth)
void GraphModifier::setSeriesVisibility(int enabled)
{
m_secondarySeries->setVisible(bool(enabled));
- if (enabled) {
- m_graph->setBarThickness(2.0f);
- m_graph->setBarSpacing(QSizeF(1.0, 3.0));
- } else {
- m_graph->setBarThickness(1.0f);
- m_graph->setBarSpacing(QSizeF(1.0, 1.0));
- }
}