mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2908 Ensemble Curve Sets: Use legend icon for colorlegend-using icon in the normal curve legend
This commit is contained in:
parent
f22dcf0872
commit
17226dabbc
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user