summaryrefslogtreecommitdiffstats
path: root/src/boxplotchart/boxplotchartitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boxplotchart/boxplotchartitem.cpp')
-rw-r--r--src/boxplotchart/boxplotchartitem.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/boxplotchart/boxplotchartitem.cpp b/src/boxplotchart/boxplotchartitem.cpp
index e9f9ea20..eff7388c 100644
--- a/src/boxplotchart/boxplotchartitem.cpp
+++ b/src/boxplotchart/boxplotchartitem.cpp
@@ -85,6 +85,7 @@ void BoxPlotChartItem::handleDataStructureChanged()
box->setBrush(m_series->brush());
box->setPen(m_series->pen());
box->setBoxOutlined(m_series->boxOutlineVisible());
+ box->setBoxWidth(m_series->boxWidth());
}
updateBoxGeometry(box, s);
@@ -103,6 +104,7 @@ void BoxPlotChartItem::handleUpdatedBars()
item->setBrush(m_series->brush());
item->setPen(m_series->pen());
item->setBoxOutlined(m_series->boxOutlineVisible());
+ item->setBoxWidth(m_series->boxWidth());
}
// Override with QBoxSet specific settings
foreach (QBoxSet *set, m_boxTable.keys()) {
@@ -146,6 +148,8 @@ void BoxPlotChartItem::handleLayoutChanged()
if (m_animation)
m_animation->setAnimationStart(item);
+ item->setBoxWidth(m_series->boxWidth());
+
bool dirty = updateBoxGeometry(item, item->m_data.m_index);
if (dirty && m_animation)
presenter()->startAnimation(m_animation->boxChangeAnimation(item));