Logo Search packages:      
Sourcecode: kdbg version File versions

void KTreeView::itemPath ( int  row,
KPath &  path 

Fills path with the logical path to the item at the specified row. The specified path variable should be empty. Any strings popped from the path must be deleted by the caller. If the row is invalid, path remains unchanged (i.e. empty).

row specifies the row index
path receives the path of the specified item
See also:


Definition at line 930 of file ktreeview.cpp.

References itemAt().

Referenced by itemPath().

    KTreeViewItem* item = itemAt(row);
    if (item != 0) {
      itemPath(item, path);

Generated by  Doxygen 1.6.0   Back to index