Logo Search packages:      
Sourcecode: kdbg version File versions

void KTreeView::appendChildItem ( const char *  text,
const QPixmap &  pixmap,
const KPath &  path 
)

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

Parameters:
text specifies text for the new item; must not be 0
pixmap specifies a pixmap for the new item
path specifies the item of which the new item will be a child
See also:
appendChildItem

Definition at line 627 of file ktreeview.cpp.

References appendChildItem(), and KTreeViewItem::setDeleteChildren().

{
    KTreeViewItem* item = new KTreeViewItem(theText, thePixmap);
    item->setDeleteChildren(true);
    appendChildItem(item, thePath);
}


Generated by  Doxygen 1.6.0   Back to index