Skip to content

Commit

Permalink
inline and virtual are no good friends
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 18, 2018
1 parent 9f407d0 commit ddaa8ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsvectorlayer.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ Returns new instance of QgsMapLayerRenderer that will be used for rendering of g
QgsRectangle extent() const final;
QgsRectangle sourceExtent() const final;

QgsFields fields() const;
QgsFields fields() const final;
%Docstring
Returns the list of fields of this layer.
This also includes fields which have not yet been saved to the provider.
Expand Down
5 changes: 5 additions & 0 deletions src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2877,6 +2877,11 @@ bool QgsVectorLayer::deleteFeatures( const QgsFeatureIds &fids )
return res;
}

QgsFields QgsVectorLayer::fields() const
{
return mFields;
}

QgsAttributeList QgsVectorLayer::primaryKeyAttributes() const
{
QgsAttributeList pkAttributesList;
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
*
* \returns A list of fields
*/
inline QgsFields fields() const { return mFields; }
QgsFields fields() const final;

/**
* Returns list of attribute indexes. i.e. a list from 0 ... fieldCount()
Expand Down

0 comments on commit ddaa8ea

Please sign in to comment.