25 , mSelectedFeatures( initialSelection )
31 return mSelectedFeatures.size();
36 mSelectedFeatures += ids;
42 mSelectedFeatures -= ids;
51 mSelectedFeatures = ids;
57 return mSelectedFeatures;
int selectedFeatureCount() override
The number of features that are selected in this layer.
QSet< QgsFeatureId > QgsFeatureIds
void deselect(const QgsFeatureIds &ids) override
Deselect features.
QgsGenericFeatureSelectionManager(QObject *parent=nullptr)
void setSelectedFeatures(const QgsFeatureIds &ids) override
Change selection to the new set of features.
Is an interface class to abstract feature selection handling.
void select(const QgsFeatureIds &ids) override
Select features.
const QgsFeatureIds & selectedFeatureIds() const override
Return reference to identifiers of selected features.
void selectionChanged(const QgsFeatureIds &selected, const QgsFeatureIds &deselected, const bool clearAndSelect)
This signal is emitted when selection was changed.