|
QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
#include <qgsfeatureselectionmodel.h>

Public Slots | |
| void | select (const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) override |
| Overwritten to do NOTHING (we handle selection ourselves) More... | |
| void | select (const QModelIndex &index, QItemSelectionModel::SelectionFlags command) override |
| Overwritten to do NOTHING (we handle selection ourselves) More... | |
| virtual void | selectFeatures (const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) |
| Select features on this table. More... | |
| virtual void | setFeatureSelectionManager (QgsIFeatureSelectionManager *featureSelectionManager) |
Signals | |
| void | requestRepaint () |
| Request a repaint of the visible items of connected views. More... | |
| void | requestRepaint (const QModelIndexList &indexes) |
| Request a repaint of a list of model indexes. More... | |
Public Member Functions | |
| QgsFeatureSelectionModel (QAbstractItemModel *model, QgsFeatureModel *featureModel, QgsIFeatureSelectionManager *featureSelectionHandler, QObject *parent) | |
| void | enableSync (bool enable) |
| Enables or disables synchronisation to the QgsVectorLayer When synchronisation is disabled, any selection change will be buffered inside this selection model. More... | |
| virtual bool | isSelected (const QModelIndex &index) |
| Returns the selection status of a given QModelIndex. More... | |
| virtual bool | isSelected (QgsFeatureId fid) |
| Returns the selection status of a given feature id. More... | |
Definition at line 31 of file qgsfeatureselectionmodel.h.
|
explicit |
Definition at line 22 of file qgsfeatureselectionmodel.cpp.
| void QgsFeatureSelectionModel::enableSync | ( | bool | enable | ) |
Enables or disables synchronisation to the QgsVectorLayer When synchronisation is disabled, any selection change will be buffered inside this selection model.
When enabled, any buffered changes are communicated to the layer and the buffer is emptied. Mainly to be used for performance reasons, because selection change on the layer can cost time as it repaints the layer.
| enable | The synchronisation status to set. |
Definition at line 31 of file qgsfeatureselectionmodel.cpp.
|
virtual |
Returns the selection status of a given QModelIndex.
| index | The index to determine the selection status of |
Definition at line 67 of file qgsfeatureselectionmodel.cpp.
|
virtual |
Returns the selection status of a given feature id.
| fid | The featureid to determine the selection status of |
Definition at line 53 of file qgsfeatureselectionmodel.cpp.
|
signal |
Request a repaint of the visible items of connected views.
Views using this model should connect to and properly process this signal.
|
signal |
Request a repaint of a list of model indexes.
Views using this model should connect to and properly process this signal.
| indexes | The model indexes which need to be repainted |
|
inlineoverrideslot |
Overwritten to do NOTHING (we handle selection ourselves)
Definition at line 97 of file qgsfeatureselectionmodel.h.
|
inlineoverrideslot |
Overwritten to do NOTHING (we handle selection ourselves)
Definition at line 90 of file qgsfeatureselectionmodel.h.
|
virtualslot |
Select features on this table.
Is to be used in favor of the stock select methods.
| selection | The QItemSelection which will be selected |
| command | The command to apply. Select, Deselect and ClearAndSelect are processed. |
Definition at line 72 of file qgsfeatureselectionmodel.cpp.
|
virtualslot |
Definition at line 156 of file qgsfeatureselectionmodel.cpp.