42 #ifndef QITEMSELECTIONMODEL_P_H 43 #define QITEMSELECTIONMODEL_P_H 56 #include "private/qobject_p.h" 60 #ifndef QT_NO_ITEMVIEWS 71 QItemSelectionModel::SelectionFlags command)
const;
109 #endif // QT_NO_ITEMVIEWS 113 #endif // QITEMSELECTIONMODEL_P_H The QItemSelectionModel class keeps track of a view's selected items.
void merge(const QItemSelection &other, QItemSelectionModel::SelectionFlags command)
Merges the other selection with this QItemSelection using the command given.
#define QT_END_NAMESPACE
This macro expands to.
#define it(className, varName)
void _q_columnsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
QList< QPersistentModelIndex > savedPersistentIndexes
void _q_columnsAboutToBeInserted(const QModelIndex &parent, int start, int end)
Split selection ranges if columns are about to be inserted in the middle.
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
QPointer< QAbstractItemModel > model
void _q_rowsAboutToBeInserted(const QModelIndex &parent, int start, int end)
Split selection ranges if rows are about to be inserted in the middle.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QItemSelectionModel::SelectionFlags currentCommand
QList< QPersistentModelIndex > savedPersistentCurrentIndexes
void clear()
Removes all items from the list.
void _q_layoutChanged()
Merge the selected indexes into selection ranges again.
QItemSelection currentSelection
The QAbstractItemModel class provides the abstract interface for item model classes.
QItemSelection expandSelection(const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) const
#define Q_DECLARE_PUBLIC(Class)
The QItemSelection class manages information about selected items in a model.
QPersistentModelIndex currentIndex
The QPersistentModelIndex class is used to locate data in a data model.
The QModelIndex class is used to locate data in a data model.
void _q_layoutAboutToBeChanged()
Split selection into individual (persistent) indexes.
void initModel(QAbstractItemModel *model)
QPersistentModelIndex tableParent
static const KeyPair *const end
QItemSelectionModelPrivate()
void _q_rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the list...
int removeAll(const T &t)
Removes all occurrences of value in the list and returns the number of entries removed.