Skip to content
Permalink
Browse files

inline and virtual are no good friends

  • Loading branch information
m-kuhn committed Sep 18, 2018
1 parent 9f407d0 commit ddaa8ea4afb7d7005dfc8da32de2b5de54c87946
Showing with 7 additions and 2 deletions.
  1. +1 −1 python/core/auto_generated/qgsvectorlayer.sip.in
  2. +5 −0 src/core/qgsvectorlayer.cpp
  3. +1 −1 src/core/qgsvectorlayer.h
@@ -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.
@@ -2877,6 +2877,11 @@ bool QgsVectorLayer::deleteFeatures( const QgsFeatureIds &fids )
return res;
}

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

QgsAttributeList QgsVectorLayer::primaryKeyAttributes() const
{
QgsAttributeList pkAttributesList;
@@ -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()

0 comments on commit ddaa8ea

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