@@ -407,10 +407,8 void QLegend::hideEvent(QHideEvent *event) | |||
|
407 | 407 | */ |
|
408 | 408 | void QLegend::showEvent(QShowEvent *event) |
|
409 | 409 | { |
|
410 |
if (isAttachedToChart()) |
|
|
411 | d_ptr->items()->setVisible(false); | |
|
410 | if (isAttachedToChart()) | |
|
412 | 411 | layout()->invalidate(); |
|
413 | } | |
|
414 | 412 | QGraphicsWidget::showEvent(event); |
|
415 | 413 | //layout activation will show the items |
|
416 | 414 | } |
General Comments 0
You need to be logged in to leave comments.
Login now