mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3957 Restore UI-order in Well Path Valve property editor
This commit is contained in:
parent
f2668eae4e
commit
314a5747db
@ -79,7 +79,7 @@ void RimWellPathValve::perforationIntervalUpdated()
|
||||
this->firstAncestorOrThisOfType(perfInterval);
|
||||
double startMD = perfInterval->startMD();
|
||||
double endMD = perfInterval->endMD();
|
||||
m_measuredDepth = cvf::Math::clamp(m_measuredDepth(), startMD, endMD);
|
||||
m_measuredDepth = cvf::Math::clamp(m_measuredDepth(), std::min(startMD, endMD), std::max(startMD, endMD));
|
||||
}
|
||||
else if (componentType() == RiaDefines::ICD || componentType() == RiaDefines::AICD)
|
||||
{
|
||||
@ -464,12 +464,6 @@ void RimWellPathValve::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering
|
||||
}
|
||||
}
|
||||
|
||||
if (m_valveTemplate())
|
||||
{
|
||||
caf::PdmUiGroup* group = uiOrdering.addNewGroup("Parameters from Template");
|
||||
m_valveTemplate->uiOrdering("InsideValve", *group);
|
||||
}
|
||||
|
||||
if (componentType() == RiaDefines::ICV || componentType() == RiaDefines::ICD)
|
||||
{
|
||||
if (componentType() == RiaDefines::ICV)
|
||||
@ -487,7 +481,7 @@ void RimWellPathValve::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering
|
||||
m_measuredDepth.uiCapability()->setUiName("Measured Depth [ft]");
|
||||
}
|
||||
}
|
||||
uiOrdering.add(&m_measuredDepth);
|
||||
uiOrdering.add(&m_measuredDepth, { true, 3, 1 });
|
||||
}
|
||||
}
|
||||
|
||||
@ -497,6 +491,12 @@ void RimWellPathValve::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering
|
||||
m_multipleValveLocations->uiOrdering(uiConfigName, *group);
|
||||
}
|
||||
|
||||
if (m_valveTemplate())
|
||||
{
|
||||
caf::PdmUiGroup* group = uiOrdering.addNewGroup("Parameters from Template");
|
||||
m_valveTemplate->uiOrdering("InsideValve", *group);
|
||||
}
|
||||
|
||||
uiOrdering.skipRemainingFields(true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user