Logo Search packages:      
Sourcecode: kdbg version File versions

void KTreeView::appendChildItem ( KTreeViewItem newItem,
int  index 

Appends the specified item as a child of the item that is at the specified row. If that item already has children, the new item is appended below these children.

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

Definition at line 636 of file ktreeview.cpp.

References appendChildItem(), and itemAt().

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

Generated by  Doxygen 1.6.0   Back to index