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