Skip to content

Commit d0ca4f3

Browse files
committedMay 3, 2020
Since
1 parent 9364196 commit d0ca4f3

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
 

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,17 @@ Returns the QgsExpression for this label settings. May be ``None`` if isExpressi
408408
Returns the polygon placement flags, which dictate how polygon labels can be placed.
409409

410410
.. seealso:: :py:func:`setPolygonPlacementFlags`
411+
412+
.. versionadded:: 3.14
411413
%End
412414

413415
void setPolygonPlacementFlags( QgsLabeling::PolygonPlacementFlags flags );
414416
%Docstring
415417
Sets the polygon placement ``flags``, which dictate how polygon labels can be placed.
416418

417419
.. seealso:: :py:func:`polygonPlacementFlags`
420+
421+
.. versionadded:: 3.14
418422
%End
419423

420424
bool centroidWhole;

‎src/core/labeling/qgslabelfeature.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,13 +322,15 @@ class CORE_EXPORT QgsLabelFeature
322322
* Returns the polygon placement flags, which dictate how polygon labels can be placed.
323323
*
324324
* \see setPolygonPlacementFlags()
325+
* \since QGIS 3.14
325326
*/
326327
QgsLabeling::PolygonPlacementFlags polygonPlacementFlags() const { return mPolygonPlacementFlags; }
327328

328329
/**
329330
* Sets the polygon placement \a flags, which dictate how polygon labels can be placed.
330331
*
331332
* \see polygonPlacementFlags()
333+
* \since QGIS 3.14
332334
*/
333335
void setPolygonPlacementFlags( QgsLabeling::PolygonPlacementFlags flags ) { mPolygonPlacementFlags = flags; }
334336

‎src/core/labeling/qgspallabeling.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ class CORE_EXPORT QgsPalLayerSettings
443443
LinePlacementOptions = 99, //!< Line placement flags
444444
OverrunDistance = 102, //!< Distance which labels can extend past either end of linear features
445445
LabelAllParts = 103, //!< Whether all parts of multi-part features should be labeled
446-
PolygonLabelOutside = 109, //!< Whether labels outside a polygon feature are permitted, or should be forced
446+
PolygonLabelOutside = 109, //!< Whether labels outside a polygon feature are permitted, or should be forced (since QGIS 3.14)
447447

448448
// rendering
449449
ScaleVisibility = 23,
@@ -652,13 +652,15 @@ class CORE_EXPORT QgsPalLayerSettings
652652
* Returns the polygon placement flags, which dictate how polygon labels can be placed.
653653
*
654654
* \see setPolygonPlacementFlags()
655+
* \since QGIS 3.14
655656
*/
656657
QgsLabeling::PolygonPlacementFlags polygonPlacementFlags() const { return mPolygonPlacementFlags; }
657658

658659
/**
659660
* Sets the polygon placement \a flags, which dictate how polygon labels can be placed.
660661
*
661662
* \see polygonPlacementFlags()
663+
* \since QGIS 3.14
662664
*/
663665
void setPolygonPlacementFlags( QgsLabeling::PolygonPlacementFlags flags ) { mPolygonPlacementFlags = flags; }
664666

0 commit comments

Comments
 (0)
Please sign in to comment.