#6164 Color Legend : Adjust UI names

This commit is contained in:
Magne Sjaastad
2020-07-01 09:02:41 +02:00
parent 18e0c8999e
commit c68c0d0321
3 changed files with 5 additions and 7 deletions

View File

@@ -696,8 +696,7 @@ void RimRegularLegendConfig::updateCategoryItems()
for ( auto item : m_colorLegend->colorLegendItems() )
{
cvf::Color3ub ubColor( item->color() );
QString categoryName = item->categoryName() + QString( " [%1]" ).arg( item->categoryValue() );
categories.push_back( std::make_tuple( categoryName, item->categoryValue(), ubColor ) );
categories.push_back( std::make_tuple( item->itemName(), item->categoryValue(), ubColor ) );
}
}