#2908 Ensemble Curve Sets: Use legend icon for colorlegend-using icon in the normal curve legend

This commit is contained in:
Magne Sjaastad 2018-05-14 09:20:47 +02:00
parent f22dcf0872
commit 17226dabbc

View File

@ -922,13 +922,17 @@ void RimEnsembleCurveSet::updateEnsembleLegendItem()
curvePen.setWidth(2); curvePen.setWidth(2);
symbol->setPen(curvePen); symbol->setPen(curvePen);
symbol->setSize(6, 6);
} }
else if (m_colorMode == BY_ENSEMBLE_PARAM) else if (m_colorMode == BY_ENSEMBLE_PARAM)
{ {
symbol = new QwtSymbol(QwtSymbol::Star1); QPixmap p = QPixmap(":/Legend.png");
symbol = new QwtSymbol;
symbol->setPixmap(p);
symbol->setSize(8, 8);
} }
symbol->setSize(6, 6);
m_qwtPlotCurveForLegendText->setSymbol(symbol); m_qwtPlotCurveForLegendText->setSymbol(symbol);
} }