Logo Search packages:      
Sourcecode: kdbg version File versions

void KTreeView::appendChildItem ( KTreeViewItem newItem,
const KPath &  path 
)

This overloaded function appends a new item to an item, which is specified by a path.

Parameters:
newItem specifies the new item
path specifies the item of which the new item will be a child
See also:
appendChildItem

Definition at line 647 of file ktreeview.cpp.

References appendChildItem(), and itemAt().

{                                
    /* find parent item and append new item to parent's sub tree */
    KTreeViewItem* parentItem = itemAt(thePath);
    if (!parentItem)
      return;
    appendChildItem(parentItem, newItem);
}


Generated by  Doxygen 1.6.0   Back to index