Setter for custom name in RimPlotCurve so name can be set programatically.

This commit is contained in:
Gaute Lindkvist 2018-06-29 11:32:32 +02:00
parent 5bc59c1ee9
commit e1fa79c066
2 changed files with 10 additions and 1 deletions

View File

@ -192,6 +192,15 @@ caf::PdmFieldHandle* RimPlotCurve::objectToggleField()
return &m_showCurve;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimPlotCurve::setCustomName(const QString& customName)
{
m_isUsingAutoName = false;
m_customCurveName = customName;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -95,7 +95,7 @@ public:
QString curveName() const { return m_curveName; }
virtual QString curveExportDescription() const { return m_curveName; }
void setCustomName(const QString& customName);
void updateCurveVisibility(bool updateParentPlot);
void updateLegendEntryVisibilityAndPlotLegend();
void updateLegendEntryVisibilityNoPlotUpdate();