mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Rename several child() and children() functions
This commit is contained in:
@@ -183,7 +183,7 @@ RimGeoMechCase::RimGeoMechCase( void )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimGeoMechCase::~RimGeoMechCase( void )
|
||||
{
|
||||
geoMechViews.deleteAllChildObjects();
|
||||
geoMechViews.deleteChildren();
|
||||
|
||||
RimProject* project = RimProject::current();
|
||||
if ( project )
|
||||
@@ -418,7 +418,7 @@ std::vector<Rim3dView*> RimGeoMechCase::allSpecialViews() const
|
||||
void RimGeoMechCase::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/ )
|
||||
{
|
||||
std::vector<PdmObjectHandle*> children;
|
||||
geoMechViews.childObjects( &children );
|
||||
geoMechViews.children( &children );
|
||||
|
||||
for ( auto child : children )
|
||||
uiTreeOrdering.add( child );
|
||||
|
||||
@@ -28,7 +28,7 @@ RimGeoMechContourMapViewCollection::~RimGeoMechContourMapViewCollection()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimGeoMechContourMapView*> RimGeoMechContourMapViewCollection::views()
|
||||
{
|
||||
return m_contourMapViews.childObjects();
|
||||
return m_contourMapViews.children();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -52,7 +52,7 @@ RimGeoMechModels::~RimGeoMechModels( void )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimGeoMechCase*> RimGeoMechModels::cases() const
|
||||
{
|
||||
return m_cases.childObjects();
|
||||
return m_cases.children();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -68,7 +68,7 @@ void RimGeoMechModels::addCase( RimGeoMechCase* thecase )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGeoMechModels::removeCase( RimGeoMechCase* thecase )
|
||||
{
|
||||
m_cases.removeChildObject( thecase );
|
||||
m_cases.removeChild( thecase );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -69,7 +69,7 @@ void RimGeoMechPartCollection::syncWithCase( RimGeoMechCase* geoCase )
|
||||
|
||||
if ( count != (int)m_parts.size() )
|
||||
{
|
||||
m_parts.clear();
|
||||
m_parts.clearWithoutDelete();
|
||||
|
||||
for ( int i = 0; i < count; i++ )
|
||||
{
|
||||
@@ -91,7 +91,7 @@ void RimGeoMechPartCollection::syncWithCase( RimGeoMechCase* geoCase )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimGeoMechPart*> RimGeoMechPartCollection::parts() const
|
||||
{
|
||||
return m_parts.childObjects();
|
||||
return m_parts.children();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user