This commit is contained in:
Nyall Dawson 2020-05-01 15:48:01 +10:00
parent 9364196444
commit d0ca4f31f8
3 changed files with 9 additions and 1 deletions

View File

@ -408,6 +408,8 @@ Returns the QgsExpression for this label settings. May be ``None`` if isExpressi
Returns the polygon placement flags, which dictate how polygon labels can be placed.
.. seealso:: :py:func:`setPolygonPlacementFlags`
.. versionadded:: 3.14
%End
void setPolygonPlacementFlags( QgsLabeling::PolygonPlacementFlags flags );
@ -415,6 +417,8 @@ Returns the polygon placement flags, which dictate how polygon labels can be pla
Sets the polygon placement ``flags``, which dictate how polygon labels can be placed.
.. seealso:: :py:func:`polygonPlacementFlags`
.. versionadded:: 3.14
%End
bool centroidWhole;

View File

@ -322,6 +322,7 @@ class CORE_EXPORT QgsLabelFeature
* Returns the polygon placement flags, which dictate how polygon labels can be placed.
*
* \see setPolygonPlacementFlags()
* \since QGIS 3.14
*/
QgsLabeling::PolygonPlacementFlags polygonPlacementFlags() const { return mPolygonPlacementFlags; }
@ -329,6 +330,7 @@ class CORE_EXPORT QgsLabelFeature
* Sets the polygon placement \a flags, which dictate how polygon labels can be placed.
*
* \see polygonPlacementFlags()
* \since QGIS 3.14
*/
void setPolygonPlacementFlags( QgsLabeling::PolygonPlacementFlags flags ) { mPolygonPlacementFlags = flags; }

View File

@ -443,7 +443,7 @@ class CORE_EXPORT QgsPalLayerSettings
LinePlacementOptions = 99, //!< Line placement flags
OverrunDistance = 102, //!< Distance which labels can extend past either end of linear features
LabelAllParts = 103, //!< Whether all parts of multi-part features should be labeled
PolygonLabelOutside = 109, //!< Whether labels outside a polygon feature are permitted, or should be forced
PolygonLabelOutside = 109, //!< Whether labels outside a polygon feature are permitted, or should be forced (since QGIS 3.14)
// rendering
ScaleVisibility = 23,
@ -652,6 +652,7 @@ class CORE_EXPORT QgsPalLayerSettings
* Returns the polygon placement flags, which dictate how polygon labels can be placed.
*
* \see setPolygonPlacementFlags()
* \since QGIS 3.14
*/
QgsLabeling::PolygonPlacementFlags polygonPlacementFlags() const { return mPolygonPlacementFlags; }
@ -659,6 +660,7 @@ class CORE_EXPORT QgsPalLayerSettings
* Sets the polygon placement \a flags, which dictate how polygon labels can be placed.
*
* \see polygonPlacementFlags()
* \since QGIS 3.14
*/
void setPolygonPlacementFlags( QgsLabeling::PolygonPlacementFlags flags ) { mPolygonPlacementFlags = flags; }