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