@@ -247,6 +247,8 QPen QLegend::pen() const | |||||
247 | void QLegend::setFont(const QFont &font) |
|
247 | void QLegend::setFont(const QFont &font) | |
248 | { |
|
248 | { | |
249 | if (d_ptr->m_font != font) { |
|
249 | if (d_ptr->m_font != font) { | |
|
250 | // Hide items to avoid flickering | |||
|
251 | d_ptr->items()->setVisible(false); | |||
250 | d_ptr->m_font = font; |
|
252 | d_ptr->m_font = font; | |
251 | foreach (QLegendMarker *marker, d_ptr->markers()) { |
|
253 | foreach (QLegendMarker *marker, d_ptr->markers()) { | |
252 | marker->setFont(d_ptr->m_font); |
|
254 | marker->setFont(d_ptr->m_font); |
General Comments 0
You need to be logged in to leave comments.
Login now