Logo Search packages:      
Sourcecode: kdbg version File versions

void KTreeView::appendChildItem ( const char *  text,
const QPixmap &  pixmap,
int  index 

Appends a new child item to the item at the specified row. If that item already has children, the new item is appended below these children. A KTreeViewItem is created for which the delete-children flag is set to true.

text specifies text for the new item; must not be 0
pixmap specifies a pixmap for the new item
index specifies the item of which the new item will be a child

Definition at line 617 of file ktreeview.cpp.

References KTreeViewItem::setDeleteChildren().

Referenced by appendChildItem().

    KTreeViewItem* item = new KTreeViewItem(theText, thePixmap);
    appendChildItem(item, index);

Generated by  Doxygen 1.6.0   Back to index