#2413 2D Intersection View: Add geoMech result title to infoText

This commit is contained in:
Rebecca Cox
2018-02-13 14:01:37 +01:00
parent 4eb80e83bb
commit 3b627ce1c4
3 changed files with 17 additions and 1 deletions

View File

@@ -674,6 +674,21 @@ void RimLegendConfig::setTitle(const QString& title)
m_categoryLegend->setTitle(cvfTitle);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RimLegendConfig::title() const
{
if (m_currentScalarMapper == m_categoryMapper)
{
return cvfqt::Utils::toQString(m_categoryLegend->title());
}
else
{
return cvfqt::Utils::toQString(m_scalarMapperLegend->title());
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------