mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#987 Summary Auto Title : Add support for auto plot title and improve curve names
This commit is contained in:
@@ -369,11 +369,13 @@ QList<caf::PdmOptionItemInfo> RimSummaryCurve::calculateValueOptions(const caf::
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimSummaryCurve::createCurveAutoName()
|
||||
{
|
||||
QString name = m_curveNameConfig->curveName(m_yValuesCurveVariable->address());
|
||||
RimSummaryPlot* plot = nullptr;
|
||||
firstAncestorOrThisOfTypeAsserted(plot);
|
||||
|
||||
QString name = m_curveNameConfig->curveName(m_yValuesCurveVariable->address(), plot->activePlotTitleHelper());
|
||||
if (isCrossPlotCurve())
|
||||
{
|
||||
QString xCurveName = m_curveNameConfig->curveName(m_xValuesCurveVariable->address());
|
||||
QString xCurveName = m_curveNameConfig->curveName(m_xValuesCurveVariable->address(), plot->activePlotTitleHelper());
|
||||
|
||||
name += " | " + xCurveName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user