Skip to content
Permalink
Browse files

rename QgsVectorLayer::listAllFeatureIds() to allFeatureIds() (follow…

…up dd48cd3)
  • Loading branch information
jef-n committed Sep 15, 2013
1 parent 39fab67 commit 078a941f85dd6ddc2cf386748535d2dff9058c86
Showing with 6 additions and 6 deletions.
  1. +1 −1 python/core/qgsvectorlayer.sip
  2. +4 −4 src/core/qgsvectorlayer.cpp
  3. +1 −1 src/core/qgsvectorlayer.h
@@ -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)
@@ -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() )
{
@@ -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)

0 comments on commit 078a941

Please sign in to comment.