@@ -118,14 +118,12 void ChartTheme::decorate(QLegend *legend) | |||||
118 | QPen pen; |
|
118 | QPen pen; | |
119 | QBrush brush; |
|
119 | QBrush brush; | |
120 |
|
120 | |||
121 |
if (pen == legend->pen() || |
|
121 | if (pen == legend->pen() || m_force) | |
122 |
legend->setPen( |
|
122 | legend->setPen(m_axisLinePen); | |
123 | } |
|
|||
124 |
|
123 | |||
125 |
if (brush == legend->brush() || |
|
124 | if (brush == legend->brush() || m_force) | |
126 | legend->setBrush(m_chartBackgroundGradient); |
|
125 | legend->setBrush(m_chartBackgroundGradient); | |
127 | } |
|
126 | } | |
128 | } |
|
|||
129 |
|
127 | |||
130 | void ChartTheme::decorate(QAreaSeries *series, int index) |
|
128 | void ChartTheme::decorate(QAreaSeries *series, int index) | |
131 | { |
|
129 | { |
@@ -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(Q |
|
392 | m_brush(QBrush()), | |
393 |
m_pen(Q |
|
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