mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improved font handling
This commit is contained in:
@@ -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 "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user