Skip to content

Commit

Permalink
Extend documentation of QgsFeatureRequest::setSubsetOfAttributes
Browse files Browse the repository at this point in the history
Like suggested by Nyall
  • Loading branch information
elpaso committed Oct 19, 2018
1 parent 71e85cc commit 99f3419
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/core/auto_generated/qgsfeaturerequest.sip.in
Expand Up @@ -509,6 +509,10 @@ Sets flags that affect how features will be fetched
QgsFeatureRequest &setSubsetOfAttributes( const QgsAttributeList &attrs );
%Docstring
Set a subset of attributes that will be fetched.

An empty attributes list indicates that no attributes will be fetched.
To revert a call to setSubsetOfAttributes and fetch all available attributes,
the SubsetOfAttributes flag should be removed from the request.
%End

QgsAttributeList subsetOfAttributes() const;
Expand Down
4 changes: 4 additions & 0 deletions src/core/qgsfeaturerequest.h
Expand Up @@ -494,6 +494,10 @@ class CORE_EXPORT QgsFeatureRequest

/**
* Set a subset of attributes that will be fetched.
*
* An empty attributes list indicates that no attributes will be fetched.
* To revert a call to setSubsetOfAttributes and fetch all available attributes,
* the SubsetOfAttributes flag should be removed from the request.
*/
QgsFeatureRequest &setSubsetOfAttributes( const QgsAttributeList &attrs );

Expand Down

0 comments on commit 99f3419

Please sign in to comment.