mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
#5327 Well Measurements : Move measurements to first child of parent
Set uiHidden on field, not the contained object
This commit is contained in:
1 parent
49dd2ad307
commit
cc65ce581f
1 file changed
+6
-6
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user