##// END OF EJS Templates
Fixed decoration of QLegend
Tero Ahola -
r1455:ed7ab8a85450
parent child
Show More
@@ -118,13 +118,11 void ChartTheme::decorate(QLegend *legend)
118 QPen pen;
118 QPen pen;
119 QBrush brush;
119 QBrush brush;
120
120
121 if (pen == legend->pen() || m_force){
121 if (pen == legend->pen() || m_force)
122 legend->setPen(Qt::NoPen);
122 legend->setPen(m_axisLinePen);
123 }
124
123
125 if (brush == legend->brush() || m_force) {
124 if (brush == legend->brush() || m_force)
126 legend->setBrush(m_chartBackgroundGradient);
125 legend->setBrush(m_chartBackgroundGradient);
127 }
128 }
126 }
129
127
130 void ChartTheme::decorate(QAreaSeries *series, int index)
128 void ChartTheme::decorate(QAreaSeries *series, int index)
@@ -389,8 +389,8 QLegendPrivate::QLegendPrivate(ChartPresenter* presenter, QChart *chart, QLegend
389 m_chart(chart),
389 m_chart(chart),
390 m_markers(new QGraphicsItemGroup(q)),
390 m_markers(new QGraphicsItemGroup(q)),
391 m_alignment(Qt::AlignTop),
391 m_alignment(Qt::AlignTop),
392 m_brush(Qt::SolidPattern),
392 m_brush(QBrush()),
393 m_pen(Qt::SolidLine),
393 m_pen(QPen()),
394 m_offsetX(0),
394 m_offsetX(0),
395 m_offsetY(0),
395 m_offsetY(0),
396 m_minWidth(0),
396 m_minWidth(0),
General Comments 0
You need to be logged in to leave comments. Login now