diff --git a/python/core/qgsvectorlayer.sip b/python/core/qgsvectorlayer.sip index d277e2934e7f..a2b3c3b112ca 100644 --- a/python/core/qgsvectorlayer.sip +++ b/python/core/qgsvectorlayer.sip @@ -295,7 +295,7 @@ class QgsVectorLayer : QgsMapLayer void selectAll(); /** Get all feature Ids */ - QgsFeatureIds listAllFeatureIds(); + QgsFeatureIds allFeatureIds(); /** * Invert selection of features found within the search rectangle (in layer's coordinates) diff --git a/src/core/qgsvectorlayer.cpp b/src/core/qgsvectorlayer.cpp index 1ecb05c46a1c..47fba49394a0 100644 --- a/src/core/qgsvectorlayer.cpp +++ b/src/core/qgsvectorlayer.cpp @@ -792,17 +792,17 @@ void QgsVectorLayer::modifySelection( QgsFeatureIds selectIds, QgsFeatureIds des void QgsVectorLayer::invertSelection() { - QgsFeatureIds ids = listAllFeatureIds(); + QgsFeatureIds ids = allFeatureIds(); ids.subtract( mSelectedFeatureIds ); setSelectedFeatures( ids ); } void QgsVectorLayer::selectAll() { - setSelectedFeatures( listAllFeatureIds() ); + setSelectedFeatures( allFeatureIds() ); } -QgsFeatureIds QgsVectorLayer::listAllFeatureIds() +QgsFeatureIds QgsVectorLayer::allFeatureIds() { QgsFeatureIterator fit = getFeatures( QgsFeatureRequest() .setFlags( QgsFeatureRequest::NoGeometry ) @@ -2675,7 +2675,7 @@ void QgsVectorLayer::setSelectedFeatures( const QgsFeatureIds& ids ) mSelectedFeatureIds = ids; - QgsFeatureIds allIds = listAllFeatureIds(); + QgsFeatureIds allIds = allFeatureIds(); QgsFeatureIds::iterator id = mSelectedFeatureIds.begin(); while ( id != mSelectedFeatureIds.end() ) { diff --git a/src/core/qgsvectorlayer.h b/src/core/qgsvectorlayer.h index c30773e38ff3..5fc1cbc629ac 100644 --- a/src/core/qgsvectorlayer.h +++ b/src/core/qgsvectorlayer.h @@ -632,7 +632,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer void selectAll(); /** Get all feature Ids */ - QgsFeatureIds listAllFeatureIds(); + QgsFeatureIds allFeatureIds(); /** * Invert selection of features found within the search rectangle (in layer's coordinates)