Skip to content
Permalink
Browse files

Improve API docs

  • Loading branch information
m-kuhn committed Jun 4, 2018
1 parent 91b0fba commit cb4de25001c2d5ea161ca45699031bd0e227982d
Showing with 13 additions and 7 deletions.
  1. +8 −4 python/core/auto_generated/qgsvectorlayer.sip.in
  2. +5 −3 src/core/qgsvectorlayer.h
@@ -943,10 +943,14 @@ calculated by countSymbolFeatures()

%Docstring
Determines if this vector layer is empty.
A layer is considered empty if either the data provider or
the edit buffer have features in them.
This means, in case the data provider contains features which have all
been deleted in the edit buffer, the result will be false.

.. warning::

A layer is considered empty if neither the data provider nor
the edit buffer have features in them.
This means the returned value may be inaccurate for layers with unsaved changes,
i.e. in the case of all features from the data provider having been
deleted within the edit buffer.

.. versionadded:: 3.2
%End
@@ -931,10 +931,12 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte

/**
* Determines if this vector layer is empty.
* A layer is considered empty if either the data provider or
*
* \warning A layer is considered empty if neither the data provider nor
* the edit buffer have features in them.
* This means, in case the data provider contains features which have all
* been deleted in the edit buffer, the result will be false.
* This means the returned value may be inaccurate for layers with unsaved changes,
* i.e. in the case of all features from the data provider having been
* deleted within the edit buffer.
*
* \since QGIS 3.2
*/

0 comments on commit cb4de25

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