A couple of callouts dox fixes

This commit is contained in:
nirvn 2019-07-22 17:41:46 +07:00 committed by Mathieu Pellerin
parent aab8e511bd
commit bc524b0e2e
2 changed files with 4 additions and 4 deletions

View File

@ -374,7 +374,7 @@ Returns the offset distance from the anchor point at which to start the line. Un
.. seealso:: :py:func:`offsetFromAnchorUnit`
%End
void setOffsetFromAnchor( double length );
void setOffsetFromAnchor( double distance );
%Docstring
Sets the offset ``distance`` from the anchor point at which to start the line. Units are specified through setOffsetFromAnchorUnit().
@ -414,7 +414,7 @@ Sets the map unit ``scale`` for the offset from anchor.
const QgsMapUnitScale &offsetFromAnchorMapUnitScale() const;
%Docstring
Returns the map unit scale for the minimum callout length.
Returns the map unit scale for the offset from anchor.
.. seealso:: :py:func:`setOffsetFromAnchorMapUnitScale`

View File

@ -398,7 +398,7 @@ class CORE_EXPORT QgsSimpleLineCallout : public QgsCallout
* \see offsetFromAnchor()
* \see setOffsetFromAnchorUnit()
*/
void setOffsetFromAnchor( double length ) { mOffsetFromAnchorDistance = length; }
void setOffsetFromAnchor( double distance ) { mOffsetFromAnchorDistance = distance; }
/**
* Sets the \a unit for the offset from anchor distance.
@ -423,7 +423,7 @@ class CORE_EXPORT QgsSimpleLineCallout : public QgsCallout
void setOffsetFromAnchorMapUnitScale( const QgsMapUnitScale &scale ) { mOffsetFromAnchorScale = scale; }
/**
* Returns the map unit scale for the minimum callout length.
* Returns the map unit scale for the offset from anchor.
* \see setOffsetFromAnchorMapUnitScale()
* \see offsetFromAnchorUnit()
* \see offsetFromAnchor()