Add missing transfer annotation (#31482)

This commit is contained in:
Nyall Dawson 2019-08-30 04:12:23 +10:00 committed by Denis Rouzaud
parent c1e8cf8f19
commit 0e3a4478d9
2 changed files with 8 additions and 6 deletions

View File

@ -515,11 +515,11 @@ or by simply specificing a start and end color.
.. versionadded:: 2.3
%End
void setColorRamp( QgsColorRamp *ramp );
void setColorRamp( QgsColorRamp *ramp /Transfer/ );
%Docstring
Sets the color ramp used to draw the shapeburst fill. Color ramps are only used if setColorType is set ShapeburstColorType.ColorRamp.
Sets the color ``ramp`` used to draw the shapeburst fill. Color ramps are only used if setColorType is set ShapeburstColorType.ColorRamp.
:param ramp: color ramp to use for shapeburst fill
Ownership of ``ramp`` is transferred to the fill.
.. seealso:: :py:func:`setColorType`

View File

@ -485,13 +485,15 @@ class CORE_EXPORT QgsShapeburstFillSymbolLayer : public QgsFillSymbolLayer
ShapeburstColorType colorType() const { return mColorType; }
/**
* Sets the color ramp used to draw the shapeburst fill. Color ramps are only used if setColorType is set ShapeburstColorType::ColorRamp.
* \param ramp color ramp to use for shapeburst fill
* Sets the color \a ramp used to draw the shapeburst fill. Color ramps are only used if setColorType is set ShapeburstColorType::ColorRamp.
*
* Ownership of \a ramp is transferred to the fill.
*
* \see setColorType
* \see colorRamp
* \since QGIS 2.3
*/
void setColorRamp( QgsColorRamp *ramp );
void setColorRamp( QgsColorRamp *ramp SIP_TRANSFER );
/**
* Returns the color ramp used for the shapeburst fill. The color ramp is only used if the colorType is set to ShapeburstColorType::ColorRamp