mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6081 Color Results : Update views when color legend content changes
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RimColorLegendItem.h"
|
||||
#include "RimColorLegend.h"
|
||||
|
||||
#include "cvfColor3.h"
|
||||
|
||||
@@ -113,6 +114,12 @@ void RimColorLegendItem::fieldChangedByUi( const caf::PdmFieldHandle* changedFie
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue )
|
||||
{
|
||||
RimColorLegend* colorLegend = nullptr;
|
||||
this->firstAncestorOrThisOfType( colorLegend );
|
||||
if ( colorLegend )
|
||||
{
|
||||
colorLegend->onColorLegendItemHasChanged();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user