Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void QTreeWidget::setHeaderItem ( QTreeWidgetItem item  ) 

Sets the header item for the tree widget. The label for each column in the header is supplied by the corresponding label in the item.

See also:

Definition at line 2000 of file qtreewidget.cpp.

References QAbstractItemView::model(), QTreeWidgetItem::model, and QTreeWidgetItem::view.


    // FIXME When we by default autogenerate the numbers when NULL then accept this

    delete d->model()->header;
    item->model = d->model();
    item->view = this;
    d->model()->header = item;

Generated by  Doxygen 1.6.0   Back to index