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

void QTreeWidget::setItemHidden ( const QTreeWidgetItem item,
bool  hide 

Hides the given item if hide is true; otherwise shows the item.

Definition at line 2297 of file qtreewidget.cpp.

References QTreeView::header(), headerItem(), QAbstractItemModel::index(), QModelIndex::model(), QModelIndex::parent(), QModelIndex::row(), QWidget::setHidden(), and QTreeView::setRowHidden().

    if (item == headerItem()) {
    } else {
        QModelIndex index = d->model()->index(const_cast<QTreeWidgetItem*>(item), 0);
        QModelIndex parent = index.parent();
        setRowHidden(index.row(), parent, hide);

Generated by  Doxygen 1.6.0   Back to index