#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

@@ -104,7 +104,7 @@ void RimColorLegendCollection::createStandardColorLegends()
QColor colorQ( colorArray[i].r(), colorArray[i].g(), colorArray[i].b() );
RimColorLegendItem* colorLegendItem = new RimColorLegendItem;
colorLegendItem->setValues( colorQ.name(), i, color3f );
colorLegendItem->setValues( colorQ.name(), static_cast<int>( i ), color3f );
colorLegend->appendColorLegendItem( colorLegendItem );
colorLegend->setReadOnly( true );