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

bool QTreeWidget::isItemExpanded ( const QTreeWidgetItem item  )  const

Returns true if the given item is open; otherwise returns false.

Definition at line 2313 of file qtreewidget.cpp.

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

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


Generated by  Doxygen 1.6.0   Back to index