Skip to content

Commit 078a941

Browse files
committed
rename QgsVectorLayer::listAllFeatureIds() to allFeatureIds() (followup dd48cd3)
1 parent 39fab67 commit 078a941

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

python/core/qgsvectorlayer.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class QgsVectorLayer : QgsMapLayer
295295
void selectAll();
296296

297297
/** Get all feature Ids */
298-
QgsFeatureIds listAllFeatureIds();
298+
QgsFeatureIds allFeatureIds();
299299

300300
/**
301301
* Invert selection of features found within the search rectangle (in layer's coordinates)

src/core/qgsvectorlayer.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -792,17 +792,17 @@ void QgsVectorLayer::modifySelection( QgsFeatureIds selectIds, QgsFeatureIds des
792792

793793
void QgsVectorLayer::invertSelection()
794794
{
795-
QgsFeatureIds ids = listAllFeatureIds();
795+
QgsFeatureIds ids = allFeatureIds();
796796
ids.subtract( mSelectedFeatureIds );
797797
setSelectedFeatures( ids );
798798
}
799799

800800
void QgsVectorLayer::selectAll()
801801
{
802-
setSelectedFeatures( listAllFeatureIds() );
802+
setSelectedFeatures( allFeatureIds() );
803803
}
804804

805-
QgsFeatureIds QgsVectorLayer::listAllFeatureIds()
805+
QgsFeatureIds QgsVectorLayer::allFeatureIds()
806806
{
807807
QgsFeatureIterator fit = getFeatures( QgsFeatureRequest()
808808
.setFlags( QgsFeatureRequest::NoGeometry )
@@ -2675,7 +2675,7 @@ void QgsVectorLayer::setSelectedFeatures( const QgsFeatureIds& ids )
26752675

26762676
mSelectedFeatureIds = ids;
26772677

2678-
QgsFeatureIds allIds = listAllFeatureIds();
2678+
QgsFeatureIds allIds = allFeatureIds();
26792679
QgsFeatureIds::iterator id = mSelectedFeatureIds.begin();
26802680
while ( id != mSelectedFeatureIds.end() )
26812681
{

src/core/qgsvectorlayer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
632632
void selectAll();
633633

634634
/** Get all feature Ids */
635-
QgsFeatureIds listAllFeatureIds();
635+
QgsFeatureIds allFeatureIds();
636636

637637
/**
638638
* Invert selection of features found within the search rectangle (in layer's coordinates)

0 commit comments

Comments
 (0)