Logo Search packages:      
Sourcecode: kdbg version File versions

void KTreeView::setTreeDrawing ( bool  enable  ) 

If enable is TRUE (default), lines depicting the structure of the tree will be drawn, otherwise they will not.

Definition at line 1153 of file ktreeview.cpp.

References forEveryItem().

{
    if (drawTree == enable)
      return;
    drawTree = enable;

    // the user parameter is cast to a bool in setItemTreeDrawing
    forEveryItem(&KTreeView::setItemTreeDrawing, enable ? &enable : 0);

    if (autoUpdate() && isVisible())
      repaint();
}


Generated by  Doxygen 1.6.0   Back to index