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

QModelIndexList QItemSelectionModel::selectedIndexes (  )  const

Returns a list of all selected model item indexes. The list contains no duplicates, and is not sorted.

Definition at line 1317 of file qitemselectionmodel.cpp.

References QItemSelection::indexes(), and QItemSelection::merge().

Referenced by QColumnView::selectAll(), QTreeView::selectedIndexes(), QTreeWidget::selectedItems(), QTableWidget::selectedItems(), and QListWidget::selectedItems().

{
    Q_D(const QItemSelectionModel);
    QItemSelection selected = d->ranges;
    selected.merge(d->currentSelection, d->currentCommand);
    return selected.indexes();
}


Generated by  Doxygen 1.6.0   Back to index