mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4243 Grid Cross Plot: Make legend icons black & white when grouping is enabled and set size from font size
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user