#4243 Grid Cross Plot: Make legend icons black & white when grouping is enabled and set size from font size

This commit is contained in:
Gaute Lindkvist
2019-03-28 20:09:25 +01:00
parent ee5935aad6
commit 75b0905e26
10 changed files with 113 additions and 6 deletions

View File

@@ -448,6 +448,13 @@ void RimGridCrossPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
const QVariant& oldValue,
const QVariant& newValue)
{
if (changedField == &m_legendFontSize)
{
for (auto curveSet : m_crossPlotCurveSets)
{
curveSet->updateLegendIcons();
}
}
onLoadDataAndUpdate();
}
@@ -636,6 +643,14 @@ void RimGridCrossPlot::setYAxisInverted(bool inverted)
m_yAxisProperties->setAxisInverted(inverted);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
int RimGridCrossPlot::legendFontSize() const
{
return m_legendFontSize;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------