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

bool QListWidget::isItemSelected ( const QListWidgetItem item  )  const

Returns true if item is selected; otherwise returns false.

This function is deprecated. Use {QListWidgetItem::isSelected()} instead.

Definition at line 1569 of file qlistwidget.cpp.

References QItemSelectionModel::isSelected(), and QAbstractItemView::selectionModel().

Referenced by QListWidgetItem::isSelected().

{
    Q_D(const QListWidget);
    QModelIndex index = d->model()->index(const_cast<QListWidgetItem*>(item));
    return selectionModel()->isSelected(index);
}


Generated by  Doxygen 1.6.0   Back to index