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.

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

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)
    appendChildItem(parentItem, newItem);

Generated by  Doxygen 1.6.0   Back to index