mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2413 2D Intersection View: Add geoMech result title to infoText
This commit is contained in:
@@ -387,7 +387,7 @@ void Rim2dIntersectionView::updateLegends()
|
|||||||
m_intersection->firstAncestorOrThisOfType(geoView);
|
m_intersection->firstAncestorOrThisOfType(geoView);
|
||||||
if (geoView)
|
if (geoView)
|
||||||
{
|
{
|
||||||
overlayInfoText += "<b>Cell Result:</b> " + geoView->cellResult()->legendConfig()->resultVariableName() + "<br>";
|
overlayInfoText += "<b>Cell Result:</b> " + geoView->cellResult()->legendConfig()->title() + "<br>";
|
||||||
|
|
||||||
m_legendConfig()->setUiValuesFromLegendConfig(geoView->cellResult()->legendConfig());
|
m_legendConfig()->setUiValuesFromLegendConfig(geoView->cellResult()->legendConfig());
|
||||||
|
|
||||||
|
|||||||
@@ -674,6 +674,21 @@ void RimLegendConfig::setTitle(const QString& title)
|
|||||||
m_categoryLegend->setTitle(cvfTitle);
|
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());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -115,6 +115,7 @@ public:
|
|||||||
QString categoryNameFromCategoryValue(double categoryResultValue) const;
|
QString categoryNameFromCategoryValue(double categoryResultValue) const;
|
||||||
|
|
||||||
void setTitle(const QString& title);
|
void setTitle(const QString& title);
|
||||||
|
QString title() const;
|
||||||
|
|
||||||
void setUiValuesFromLegendConfig(const RimLegendConfig* otherLegendConfig);
|
void setUiValuesFromLegendConfig(const RimLegendConfig* otherLegendConfig);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user