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