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

KDirTreeViewItem * KDirTreeView::locate ( KFileInfo wanted,
bool  lazy = true,
bool  doClone = true 
)

Locate the counterpart to an original tree item "wanted" somewhere within this view tree. Returns 0 on failure. If "lazy" is set, only the open part of the tree is searched. "doClone" specifies whether or not to (deferred) clone nodes that are not cloned yet. This is only used if "lazy" is false.

Definition at line 561 of file kdirtreeview.cpp.

References firstChild(), KDirStat::KDirTreeViewItem::locate(), and KDirStat::KDirTreeViewItem::next().

Referenced by addChild(), deleteChild(), finalizeLocal(), and selectItem().

{
    KDirTreeViewItem *child = firstChild();

    while ( child )
    {
      KDirTreeViewItem *wantedChild = child->locate( wanted, lazy, doClone, 0 );

      if ( wantedChild )
          return wantedChild;
      else
          child = child->next();
    }

    return 0;
}

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