15#ifndef QGSFEATURESELECTIONMODEL_H
16#define QGSFEATURESELECTIONMODEL_H
21#include <QItemSelectionModel>
66 virtual bool isSelected(
const QModelIndex &index );
91 void select(
const QModelIndex &index, QItemSelectionModel::SelectionFlags command )
override
102 void select(
const QItemSelection &selection, QItemSelectionModel::SelectionFlags command )
override
104 Q_UNUSED( selection )
114 virtual void selectFeatures(
const QItemSelection &selection, QItemSelectionModel::SelectionFlags command );
122 QModelIndexList expandIndexToRow(
const QModelIndex &index )
const;
145 bool mClearAndSelectBuffer;
Base class for feature models.
void enableSync(bool enable)
Enables or disables synchronisation to the QgsVectorLayer When synchronisation is disabled,...
virtual bool isSelected(QgsFeatureId fid)
Returns the selection status of a given feature id.
QgsFeatureSelectionModel(QAbstractItemModel *model, QgsFeatureModel *featureModel, QgsIFeatureSelectionManager *featureSelectionHandler, QObject *parent)
void select(const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) override
Overwritten to do NOTHING (we handle selection ourselves).
void requestRepaint(const QModelIndexList &indexes)
Request a repaint of a list of model indexes.
void requestRepaint()
Request a repaint of the visible items of connected views.
void select(const QModelIndex &index, QItemSelectionModel::SelectionFlags command) override
Overwritten to do NOTHING (we handle selection ourselves).
Is an interface class to abstract feature selection handling.
Represents a vector layer which manages a vector based dataset.
QSet< QgsFeatureId > QgsFeatureIds
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features