Logo Search packages:      
Sourcecode: ktechlab version File versions

ItemList Item::children ( bool  includeGrandChildren = false  )  const [inherited]

Returns the list of children.

if includeGrandChildren is true then this list will also contain the children's children, and so on recursively, instead of just the immediate children.

Definition at line 384 of file item.cpp.

Referenced by MechanicsGroup::removeChildren(), and FlowContainer::updateContainedVisibility().

      if (!includeGrandChildren)
            return m_children;
      ItemList children = m_children;
      ItemList::const_iterator end = m_children.end();
      for ( ItemList::const_iterator it = m_children.begin(); it != end; ++it )
            if (!*it)
            children += (*it)->children(true);
      return children;

Generated by  Doxygen 1.6.0   Back to index