Category legend improvements

* Show text after value in category legend
* Use integer slider for category results
* Do not allow min larger than max and max lower than min
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2023-05-22 15:41:48 +02:00
1 parent b83fe73395
commit ee724633b5
3 files changed
+90 -15

No files matched your search

@@ -682,7 +682,7 @@ void RimEclipseResultDefinitionTools::updateCellResultLegend( const RimEclipseRe
[value]( const RimColorLegendItem* const item ) { return item->categoryValue() == value; } );
if ( it != items.end() && !( *it )->categoryName().isEmpty() )
{
valueTxt = QString( "%1 (%2)" ).arg( ( *it )->categoryName() ).arg( value );
valueTxt = QString( "%1 %2" ).arg( value ).arg( ( *it )->categoryName() );
}
else
{