Logo Search packages:      
Sourcecode: kdbg version File versions

void KTreeView::itemPath ( KTreeViewItem item,
KPath &  path 
) const [protected]

Finds the logical path of the specified item. The specified path variable should be empty.

item specifies the item whose path is to determine
path receives the path of the item
See also:



Definition at line 1460 of file ktreeview.cpp.

References KTreeViewItem::getParent(), KTreeViewItem::getText(), itemPath(), and KTreeViewItem::owner.

    assert(item != 0);
    assert(item->owner == this);
    if (item != treeRoot) {
      itemPath(item->getParent(), path);
      path.push(new QString(item->getText()));

Generated by  Doxygen 1.6.0   Back to index