Skip to content

Commit

Permalink
Update sip bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 22, 2014
1 parent c23b167 commit c1c81ea
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions python/core/qgsvectorlayer.sip
Expand Up @@ -372,6 +372,18 @@ class QgsVectorLayer : QgsMapLayer
*/
QgsFeatureList selectedFeatures();

/**
* Get an iterator of the selected features
*
* @param request You may specify a request, e.g. to limit the set of requested attributes.
* Any filter on the request will be discarded.
*
* @return Iterator over the selected features
*
* @see selectedFeaturesIds()
*/
QgsFeatureIterator selectedFeaturesIterator( QgsFeatureRequest request = QgsFeatureRequest() );

/**
* Return reference to identifiers of selected features
*
Expand Down
1 change: 0 additions & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -2296,7 +2296,6 @@ const QgsFeatureIds& QgsVectorLayer::selectedFeaturesIds() const
return mSelectedFeatureIds;
}


QgsFeatureList QgsVectorLayer::selectedFeatures()
{
QgsFeatureList features;
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayer.h
Expand Up @@ -731,6 +731,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
* @return A list of { @link QgsFeature } 's
*
* @see selectedFeaturesIds()
* @see selectedFeaturesIterator() which is more memory friendly when handling large selections
*/
QgsFeatureList selectedFeatures();

Expand All @@ -743,6 +744,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
* @return Iterator over the selected features
*
* @see selectedFeaturesIds()
* @see selectedFeatures()
*/
QgsFeatureIterator selectedFeaturesIterator( QgsFeatureRequest request = QgsFeatureRequest() );

Expand Down

0 comments on commit c1c81ea

Please sign in to comment.