@@ -185,6 +185,11 void ChartPresenter::setTheme(QChart::ChartTheme theme,bool force) | |||||
185 | m_chartTheme->decorate(m_chart); |
|
185 | m_chartTheme->decorate(m_chart); | |
186 | m_chartTheme->decorate(m_chart->legend()); |
|
186 | m_chartTheme->decorate(m_chart->legend()); | |
187 | resetAllElements(); |
|
187 | resetAllElements(); | |
|
188 | ||||
|
189 | // We do not want "force" to stay on. | |||
|
190 | // Bar/pie are calling decorate when adding/removing slices/bars which means | |||
|
191 | // that to preserve users colors "force" must not be on. | |||
|
192 | m_chartTheme->setForced(false); | |||
188 | } |
|
193 | } | |
189 |
|
194 | |||
190 | QChart::ChartTheme ChartPresenter::theme() |
|
195 | QChart::ChartTheme ChartPresenter::theme() |
General Comments 0
You need to be logged in to leave comments.
Login now