Logo Search packages:      
Sourcecode: kdbg version File versions

void KTreeView::collapseItem ( int  index,
bool  emitSignal 

Collapses the sub-tree at the specified row index. If the index is out of range, or the item is already collpased, nothing happens.

index specifies the row index
emitSignal specifies whether the signal collapsed should be emitted

Definition at line 737 of file ktreeview.cpp.

References collapseSubTree(), and itemAt().

    KTreeViewItem* item = itemAt(index);
    if (item)
      collapseSubTree(item, emitSignal);

Generated by  Doxygen 1.6.0   Back to index