Logo Search packages:      
Sourcecode: kdbg version File versions

KTreeViewItem * KTreeView::itemAt ( const KPath &  path  ) 

Returns a pointer to the item at the end of the path, or 0 if there is no such item.

Parameters:
path specifies a path through the tree
Returns:
the item at the end of the specified path
See also:
itemRow

itemPath

Definition at line 915 of file ktreeview.cpp.

References recursiveFind().

{
    if (path.isEmpty())
      return 0;

    // need a copy of the path because recursiveFind will destroy it
    KPath pathCopy;
    pathCopy.setAutoDelete(false);
    pathCopy = path;

    return recursiveFind(pathCopy);
}


Generated by  Doxygen 1.6.0   Back to index