Improved font handling

This commit is contained in:
Gaute Lindkvist
2020-01-07 12:03:40 +01:00
parent 7bd62052ca
commit f279e85c2c
16 changed files with 96 additions and 79 deletions

View File

@@ -290,13 +290,15 @@ QString RimGridCrossPlotDataSet::createAutoName() const
nameTags += timeStepString();
}
QString fullTitle = nameTags.join( ", " );
if ( m_nameConfig->addGrouping() && groupParameter() != "None" )
{
QString catTitle = groupTitle();
if ( !catTitle.isEmpty() ) nameTags += catTitle;
if ( !catTitle.isEmpty() ) fullTitle += QString( " [%1]" ).arg( catTitle );
}
return nameTags.join( ", " );
return fullTitle;
}
//--------------------------------------------------------------------------------------------------
@@ -306,7 +308,7 @@ QString RimGridCrossPlotDataSet::groupTitle() const
{
if ( m_grouping != NO_GROUPING )
{
return QString( "Grouped by %1" ).arg( groupParameter() );
return QString( "[%1]" ).arg( groupParameter() );
}
return "";
}