@@ -339,7 +339,8 Qt::Alignment QLegend::alignment() const | |||||
339 | void QLegend::detachFromChart() |
|
339 | void QLegend::detachFromChart() | |
340 | { |
|
340 | { | |
341 | d_ptr->m_attachedToChart = false; |
|
341 | d_ptr->m_attachedToChart = false; | |
342 | layout()->invalidate(); |
|
342 | // layout()->invalidate(); | |
|
343 | d_ptr->m_chart->layout()->invalidate(); | |||
343 | setParent(0); |
|
344 | setParent(0); | |
344 |
|
345 | |||
345 | } |
|
346 | } | |
@@ -350,7 +351,8 void QLegend::detachFromChart() | |||||
350 | void QLegend::attachToChart() |
|
351 | void QLegend::attachToChart() | |
351 | { |
|
352 | { | |
352 | d_ptr->m_attachedToChart = true; |
|
353 | d_ptr->m_attachedToChart = true; | |
353 | layout()->invalidate(); |
|
354 | // layout()->invalidate(); | |
|
355 | d_ptr->m_chart->layout()->invalidate(); | |||
354 | setParent(d_ptr->m_chart); |
|
356 | setParent(d_ptr->m_chart); | |
355 | } |
|
357 | } | |
356 |
|
358 |
General Comments 0
You need to be logged in to leave comments.
Login now