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

This commit is contained in:
Gaute Lindkvist committed 2018-07-02 10:29:30 +02:00
1 parent 5bc59c1ee9
commit e1fa79c066
2 files changed
+10 -1

No files matched your search

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