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

void QTreeWidget::expandItem ( const QTreeWidgetItem item  )  [slot]

Expands the item. This causes the tree containing the item's children to be expanded.

Definition at line 2356 of file qtreewidget.cpp.

References QTreeView::expand(), QAbstractItemModel::index(), and QModelIndex::model().

{
    Q_ASSERT(item);
    Q_D(QTreeWidget);
    QModelIndex index = d->model()->index(const_cast<QTreeWidgetItem*>(item), 0);
    expand(index);
}


Generated by  Doxygen 1.6.0   Back to index