#1054 Added sensible information to the Result Info window when picking Flow Diag results.

Also rolled out the use of resultVariableUiName() to places that should use it.
This commit is contained in:
Jacob Støren
2017-01-04 13:13:06 +01:00
parent 03cf09d90a
commit ebddaa31e6
11 changed files with 48 additions and 25 deletions

View File

@@ -515,6 +515,19 @@ RigFlowDiagResultAddress RimEclipseResultDefinition::flowDiagResAddress() const
return RigFlowDiagResultAddress(m_resultVariable().toStdString(), selTracerNames);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RimEclipseResultDefinition::resultVariableUiName()
{
if (resultType() == RimDefines::FLOW_DIAGNOSTICS)
{
return QString::fromStdString(flowDiagResAddress().uiText());
}
return m_resultVariable();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------