(#455) Improved use of Custom Curve Name

This commit is contained in:
Magne Sjaastad
2015-09-18 13:43:09 +02:00
parent 842363eebd
commit 4ea3387e79
4 changed files with 45 additions and 9 deletions

View File

@@ -127,7 +127,6 @@ void RimWellLogFileCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedFie
if (changedField == &m_wellPath)
{
this->updatePlotTitle();
this->updatePlotData();
if (wellLoglot)
@@ -143,7 +142,6 @@ void RimWellLogFileCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedFie
}
else if (changedField == &m_wellLogChannnelName)
{
this->updatePlotTitle();
this->updatePlotData();
if (wellLoglot)
@@ -240,6 +238,17 @@ QList<caf::PdmOptionItemInfo> RimWellLogFileCurve::calculateValueOptions(const c
//--------------------------------------------------------------------------------------------------
QString RimWellLogFileCurve::createCurveName()
{
return "The method or operation is not implemented.";
if (m_wellPath())
{
QString txt;
txt += m_wellPath()->name();
txt += " : ";
txt += m_wellLogChannnelName;
return txt;
}
return "Empty curve";
}