Skip to content

Commit 05ff817

Browse files
committedMar 11, 2019
Update docs
1 parent 6b42ccb commit 05ff817

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
 

‎python/core/auto_generated/qgspallabeling.sip.in

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,20 @@ class QgsPalLayerSettings
261261
AlwaysShow
262262
};
263263

264+
265+
bool prepare( const QgsRenderContext &context, QSet<QString> &attributeNames /In,Out/, const QgsFields &fields, const QgsMapSettings &mapSettings, const QgsCoordinateReferenceSystem &crs );
266+
%Docstring
267+
Prepare for registration of features.
268+
The ``context``, ``mapSettings`` and ``fields`` parameters give more
269+
information about the rendering environment.
270+
If target ``crs`` is not specified, the targetCrs from ``mapSettings``
271+
will be taken.
272+
The parameter ``attributeNames`` should be updated to contain all the field
273+
names which the labeling requires for the rendering.
274+
275+
.. versionadded:: 3.8
276+
%End
277+
264278
static const QgsPropertiesDefinition &propertyDefinitions();
265279
%Docstring
266280
Returns the labeling property definitions.

‎src/core/qgspallabeling.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,20 @@ class CORE_EXPORT QgsPalLayerSettings
370370
AlwaysShow = 20
371371
};
372372

373+
374+
/**
375+
* Prepare for registration of features.
376+
* The \a context, \a mapSettings and \a fields parameters give more
377+
* information about the rendering environment.
378+
* If target \a crs is not specified, the targetCrs from \a mapSettings
379+
* will be taken.
380+
* The parameter \a attributeNames should be updated to contain all the field
381+
* names which the labeling requires for the rendering.
382+
*
383+
* \since QGIS 3.8
384+
*/
385+
bool prepare( const QgsRenderContext &context, QSet<QString> &attributeNames SIP_INOUT, const QgsFields &fields, const QgsMapSettings &mapSettings, const QgsCoordinateReferenceSystem &crs );
386+
373387
/**
374388
* Returns the labeling property definitions.
375389
* \since QGIS 3.0

0 commit comments

Comments
 (0)
Please sign in to comment.