Definition at line 127 of file qitemselectionmodel.h.
#include <qitemselectionmodel.h>

Public Types |
|
| enum |
SelectionFlag { NoUpdate = 0x0000, Clear = 0x0001, Select = 0x0002, Deselect = 0x0004, Toggle = 0x0008, Current = 0x0010, Rows = 0x0020, Columns = 0x0040, SelectCurrent = Select | Current, ToggleCurrent = Toggle | Current, ClearAndSelect = Clear | Select } |
Public Slots |
|
| void | setCurrentIndex (const QModelIndex &index, QItemSelectionModel::SelectionFlags command) |
| virtual void | select (const QModelIndex &index, QItemSelectionModel::SelectionFlags command) |
| virtual void | select (const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) |
| virtual void | clear () |
| virtual void | reset () |
| void | clearSelection () |
Signals |
|
| void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
| void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) |
| void | currentRowChanged (const QModelIndex ¤t, const QModelIndex &previous) |
| void | currentColumnChanged (const QModelIndex ¤t, const QModelIndex &previous) |
Public Member Functions |
|
| QItemSelectionModel (QAbstractItemModel *model) | |
| QItemSelectionModel (QAbstractItemModel *model, QObject *parent) | |
| virtual | ~QItemSelectionModel () |
| QModelIndex | currentIndex () const |
| bool | isSelected (const QModelIndex &index) const |
| bool | isRowSelected (int row, const QModelIndex &parent) const |
| bool | isColumnSelected (int column, const QModelIndex &parent) const |
| bool | rowIntersectsSelection (int row, const QModelIndex &parent) const |
| bool | columnIntersectsSelection (int column, const QModelIndex &parent) const |
| bool | hasSelection () const |
| QModelIndexList | selectedIndexes () const |
| QModelIndexList | selectedRows (int column=0) const |
| QModelIndexList | selectedColumns (int row=0) const |
| const QItemSelection | selection () const |
| const QAbstractItemModel * | model () const |
Protected Member Functions |
|
| QItemSelectionModel (QItemSelectionModelPrivate &dd, QAbstractItemModel *model) | |
| void | emitSelectionChanged (const QItemSelection &newSelection, const QItemSelection &oldSelection) |
| enum SelectionFlag |
| NoUpdate | |
| Clear | |
| Select | |
| Deselect | |
| Toggle | |
| Current | |
| Rows | |
| Columns | |
| SelectCurrent | |
| ToggleCurrent | |
| ClearAndSelect |
Definition at line 135 of file qitemselectionmodel.h.
| QItemSelectionModel | ( | QAbstractItemModel * | model | ) | [explicit] |
| QItemSelectionModel | ( | QAbstractItemModel * | model, |
| QObject * | parent | ||
| ) | [explicit] |
| virtual ~QItemSelectionModel | ( | ) | [virtual] |
| QItemSelectionModel | ( | QItemSelectionModelPrivate & | dd, |
| QAbstractItemModel * | model | ||
| ) | [protected] |
| QModelIndex currentIndex | ( | ) | const |
| bool isSelected | ( | const QModelIndex & | index | ) | const |
| bool isRowSelected | ( | int | row, |
| const QModelIndex & | parent | ||
| ) | const |
| bool isColumnSelected | ( | int | column, |
| const QModelIndex & | parent | ||
| ) | const |
| bool rowIntersectsSelection | ( | int | row, |
| const QModelIndex & | parent | ||
| ) | const |
| bool columnIntersectsSelection | ( | int | column, |
| const QModelIndex & | parent | ||
| ) | const |
| bool hasSelection | ( | ) | const |
| QModelIndexList selectedIndexes | ( | ) | const |
| QModelIndexList selectedRows | ( | int | column = 0 |
) | const |
| QModelIndexList selectedColumns | ( | int | row = 0 |
) | const |
| const QItemSelection selection | ( | ) | const |
| const QAbstractItemModel* model | ( | ) | const |
| void setCurrentIndex | ( | const QModelIndex & | index, |
| QItemSelectionModel::SelectionFlags | command | ||
| ) | [slot] |
| virtual void select | ( | const QModelIndex & | index, |
| QItemSelectionModel::SelectionFlags | command | ||
| ) | [virtual, slot] |
| virtual void select | ( | const QItemSelection & | selection, |
| QItemSelectionModel::SelectionFlags | command | ||
| ) | [virtual, slot] |
| virtual void clear | ( | ) | [virtual, slot] |
| virtual void reset | ( | ) | [virtual, slot] |
| void clearSelection | ( | ) | [slot] |
| void selectionChanged | ( | const QItemSelection & | selected, |
| const QItemSelection & | deselected | ||
| ) | [signal] |
| void currentChanged | ( | const QModelIndex & | current, |
| const QModelIndex & | previous | ||
| ) | [signal] |
| void currentRowChanged | ( | const QModelIndex & | current, |
| const QModelIndex & | previous | ||
| ) | [signal] |
| void currentColumnChanged | ( | const QModelIndex & | current, |
| const QModelIndex & | previous | ||
| ) | [signal] |
| void emitSelectionChanged | ( | const QItemSelection & | newSelection, |
| const QItemSelection & | oldSelection | ||
| ) | [protected] |