mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5327 Well Measurements : Move measurements to first child of parent
Set uiHidden on field, not the contained object
This commit is contained in:
parent
49dd2ad307
commit
cc65ce581f
@ -109,7 +109,7 @@ RimWellPathCollection::RimWellPathCollection()
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_wellMeasurements, "WellMeasurements", "Measurements", "", "", "" );
|
||||
m_wellMeasurements = new RimWellMeasurementCollection;
|
||||
m_wellMeasurements->uiCapability()->setUiTreeHidden( true );
|
||||
m_wellMeasurements.uiCapability()->setUiTreeHidden( true );
|
||||
|
||||
m_wellPathImporter = new RifWellPathImporter;
|
||||
m_wellPathFormationsImporter = new RifWellPathFormationsImporter;
|
||||
@ -438,16 +438,16 @@ void RimWellPathCollection::defineUiOrdering( QString uiConfigName, caf::PdmUiOr
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPathCollection::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/ )
|
||||
{
|
||||
if ( !wellPaths.empty() )
|
||||
{
|
||||
uiTreeOrdering.add( &wellPaths );
|
||||
}
|
||||
|
||||
if ( !m_wellMeasurements->isEmpty() )
|
||||
{
|
||||
uiTreeOrdering.add( &m_wellMeasurements );
|
||||
}
|
||||
|
||||
if ( !wellPaths.empty() )
|
||||
{
|
||||
uiTreeOrdering.add( &wellPaths );
|
||||
}
|
||||
|
||||
uiTreeOrdering.skipRemainingChildren( true );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user