Add back connecting scheduleUpdateChildrenLayout to legendDataChanged

* This was mistakenly removed
This commit is contained in:
Gaute Lindkvist 2018-07-04 16:53:24 +02:00
parent 2db495662f
commit e5767c4f41

View File

@ -121,6 +121,8 @@ void RiuWellLogPlot::insertTrackPlot(RiuWellLogTrack* trackPlot, size_t index)
legend->contentsWidget()->layout()->setAlignment(Qt::AlignBottom | Qt::AlignHCenter);
m_legends.insert(static_cast<int>(index), legend);
this->connect(trackPlot, SIGNAL(legendDataChanged(const QVariant &, const QList< QwtLegendData > &)), SLOT(scheduleUpdateChildrenLayout()));
if (!m_plotDefinition->areTrackLegendsVisible())
{
legend->hide();