Skip to content
Permalink
Browse files

Update sip bindings

  • Loading branch information
m-kuhn committed Sep 22, 2014
1 parent c23b167 commit c1c81eae94e86f3e8f17456ae0c5a8d9f1a9ac15
Showing with 14 additions and 1 deletion.
  1. +12 −0 python/core/qgsvectorlayer.sip
  2. +0 −1 src/core/qgsvectorlayer.cpp
  3. +2 −0 src/core/qgsvectorlayer.h
@@ -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
*
@@ -2296,7 +2296,6 @@ const QgsFeatureIds& QgsVectorLayer::selectedFeaturesIds() const
return mSelectedFeatureIds;
}


QgsFeatureList QgsVectorLayer::selectedFeatures()
{
QgsFeatureList features;
@@ -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();

@@ -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() );

0 comments on commit c1c81ea

Please sign in to comment.
You can’t perform that action at this time.