##// END OF EJS Templates
fix: legend detaching/attaching now invalidates chart layout
sauimone -
r2392:ca970450e5ca
parent child
Show More
@@ -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