Logo Search packages:      
Sourcecode: k4dirstat version File versions  Download package

void KDirTreeViewItem::closeAllExceptThis (  )

Close all tree branches except this one from the root on.

Definition at line 1601 of file kdirtreeview.cpp.

References closeAllExceptThis(), closeSubtree(), KDirStat::KDirTreeView::firstChild(), firstChild(), next(), and setOpen().

Referenced by KDirStat::KDirTreeView::closeAllExcept(), and closeAllExceptThis().

{
    KDirTreeViewItem *sibling = _parent ?
      _parent->firstChild() : _view->firstChild();

    while ( sibling )
    {
      if ( sibling != this )
          sibling->closeSubtree();  // Recurse down

      sibling = sibling->next();
    }

    setOpen( true );

    if ( _parent )
      _parent->closeAllExceptThis();      // Recurse up
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index