Skip to content
Permalink
Browse files

Extend documentation of QgsFeatureRequest::setSubsetOfAttributes

Like suggested by Nyall
  • Loading branch information
elpaso committed Oct 19, 2018
1 parent 71e85cc commit 99f3419446b27ab0e66a12810bd8838ed8248125
Showing with 8 additions and 0 deletions.
  1. +4 −0 python/core/auto_generated/qgsfeaturerequest.sip.in
  2. +4 −0 src/core/qgsfeaturerequest.h
@@ -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;
@@ -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 );

0 comments on commit 99f3419

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