mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2413 2D Intersection View: Create more space in info text
This commit is contained in:
parent
2ff5842f28
commit
fa4535a18e
@ -345,8 +345,9 @@ void Rim2dIntersectionView::updateLegends()
|
|||||||
|
|
||||||
QString overlayInfoText;
|
QString overlayInfoText;
|
||||||
|
|
||||||
overlayInfoText += "<b>Case:</b> " + ownerCase()->caseUserDescription() + "<br>";
|
overlayInfoText += "<b>--" + ownerCase()->caseUserDescription() + "--</b>";
|
||||||
|
|
||||||
|
overlayInfoText += "<p>";
|
||||||
overlayInfoText += "<b>Intersection:</b> " + m_intersection->name() + "<br>";
|
overlayInfoText += "<b>Intersection:</b> " + m_intersection->name() + "<br>";
|
||||||
|
|
||||||
if (m_intersection->simulationWell())
|
if (m_intersection->simulationWell())
|
||||||
@ -364,7 +365,7 @@ void Rim2dIntersectionView::updateLegends()
|
|||||||
m_intersection->firstAncestorOrThisOfType(eclView);
|
m_intersection->firstAncestorOrThisOfType(eclView);
|
||||||
if (eclView)
|
if (eclView)
|
||||||
{
|
{
|
||||||
overlayInfoText += "<b>Cell Result:</b> " + eclView->cellResult()->resultVariableUiShortName() + "</br>";
|
overlayInfoText += "<b>Cell Result:</b> " + eclView->cellResult()->resultVariableUiShortName() + "<br>";
|
||||||
|
|
||||||
m_legendConfig()->setUiValuesFromLegendConfig(eclView->cellResult()->legendConfig());
|
m_legendConfig()->setUiValuesFromLegendConfig(eclView->cellResult()->legendConfig());
|
||||||
m_ternaryLegendConfig()->setUiValuesFromLegendConfig(eclView->cellResult()->ternaryLegendConfig());
|
m_ternaryLegendConfig()->setUiValuesFromLegendConfig(eclView->cellResult()->ternaryLegendConfig());
|
||||||
@ -386,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()->resultVariableName() + "<br>";
|
||||||
|
|
||||||
m_legendConfig()->setUiValuesFromLegendConfig(geoView->cellResult()->legendConfig());
|
m_legendConfig()->setUiValuesFromLegendConfig(geoView->cellResult()->legendConfig());
|
||||||
|
|
||||||
@ -399,6 +400,7 @@ void Rim2dIntersectionView::updateLegends()
|
|||||||
m_viewer->addColorLegendToBottomLeftCorner(legend);
|
m_viewer->addColorLegendToBottomLeftCorner(legend);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
overlayInfoText += "</p>";
|
||||||
m_viewer->setInfoText(overlayInfoText);
|
m_viewer->setInfoText(overlayInfoText);
|
||||||
m_viewer->showInfoText(true);
|
m_viewer->showInfoText(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user