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

bool QTreeWidget::isItemSelected ( const QTreeWidgetItem item  )  const

Returns true if the item is selected; otherwise returns false.

Definition at line 2227 of file qtreewidget.cpp.

References QAbstractItemModel::index(), QItemSelectionModel::isSelected(), QModelIndex::model(), and QAbstractItemView::selectionModel().

Referenced by QTreeWidgetItemIterator::matchesFlags().

    Q_D(const QTreeWidget);
    QModelIndex index = d->model()->index(const_cast<QTreeWidgetItem*>(item), 0);
    return selectionModel()->isSelected(index);


Generated by  Doxygen 1.6.0   Back to index