Logo Search packages:      
Sourcecode: kdbg version File versions

KTreeView::KTreeView ( QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0 
)

Widget contructor. All parameters are passed on to base TableView, and are not used directly.

Definition at line 574 of file ktreeview.cpp.

References KTreeViewItem::owner, and KTreeViewItem::setExpanded().

                           :
      TableView(parent, name, f),
      clearing(false),
      current(-1),
      drawExpandButton(true),
      drawTree(true),
      expansion(0),
      goingDown(false),
      itemIndent(18),
      showText(true),
      moveCurrentToSibling(false),
      itemCapacity(500),
      visibleItems(0),
      rubberband_mode(false)
{
    setNumRows(0);
    setNumCols(1);
    setBackgroundColor(colorGroup().base());

    treeRoot = new KTreeViewItem;
    treeRoot->setExpanded(true);
    treeRoot->owner = this;

    visibleItems = new KTreeViewItem*[itemCapacity];
    // clear those pointers
    for (int j = itemCapacity-1; j >= 0; j--) {
      visibleItems[j] = 0;
    }
}


Generated by  Doxygen 1.6.0   Back to index