##// END OF EJS Templates
Fix QBoxSet color setting...
Titta Heikkala -
r2675:235cef4135ee
parent child
Show More
@@ -82,8 +82,15 void BoxPlotChartItem::handleDataStructureChanged()
82 connect(box, SIGNAL(hovered(bool, QBoxSet *)), set, SIGNAL(hovered(bool)));
82 connect(box, SIGNAL(hovered(bool, QBoxSet *)), set, SIGNAL(hovered(bool)));
83
83
84 // Set the decorative issues for the newly created box
84 // Set the decorative issues for the newly created box
85 box->setBrush(m_series->brush());
85 // so that the brush and pen already defined for the set are kept.
86 box->setPen(m_series->pen());
86 if (set->brush() == Qt::NoBrush)
87 box->setBrush(m_series->brush());
88 else
89 box->setBrush(set->brush());
90 if (set->pen() == Qt::NoPen)
91 box->setPen(m_series->pen());
92 else
93 box->setPen(set->pen());
87 box->setBoxOutlined(m_series->boxOutlineVisible());
94 box->setBoxOutlined(m_series->boxOutlineVisible());
88 box->setBoxWidth(m_series->boxWidth());
95 box->setBoxWidth(m_series->boxWidth());
89 }
96 }
General Comments 0
You need to be logged in to leave comments. Login now