Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
rename QgsVectorLayer::listAllFeatureIds() to allFeatureIds() (follow…
…up dd48cd3)
  • Loading branch information
jef-n committed Sep 15, 2013
1 parent 39fab67 commit 078a941
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/core/qgsvectorlayer.sip
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -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 )
Expand Down Expand Up @@ -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() )
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.h
Expand Up @@ -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)
Expand Down

0 comments on commit 078a941

Please sign in to comment.