#6081 Color Results : Update views when color legend content changes

This commit is contained in:
Magne Sjaastad
2020-06-17 13:26:11 +02:00
parent e11557c2be
commit c13f1d752d
16 changed files with 100 additions and 50 deletions

View File

@@ -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();
}
}
//--------------------------------------------------------------------------------------------------