Skip to content
Permalink
Browse files
Fix docs, better check
  • Loading branch information
nyalldawson committed Jun 28, 2021
1 parent 7a07e0d commit d6709e014508d4a26876132958ff69209d6e66df
@@ -543,12 +543,18 @@ should be canceled.
void copyRendererData( QgsFeatureRenderer *destRenderer ) const;
%Docstring
Clones generic renderer data to another renderer.

Currently clones

- Order By
- Paint Effect
- Order by
- Paint effect
- Reference scale
- Symbol levels enabled/disabled
- Force raster render enabled/disabled

:param destRenderer: destination renderer for copied effect

.. versionadded:: 3.22
%End

protected:
@@ -51,10 +51,12 @@ QPointF QgsFeatureRenderer::_getPoint( QgsRenderContext &context, const QgsPoint

void QgsFeatureRenderer::copyRendererData( QgsFeatureRenderer *destRenderer ) const
{
if ( !destRenderer || !mPaintEffect )
if ( !destRenderer )
return;

destRenderer->setPaintEffect( mPaintEffect->clone() );
if ( mPaintEffect )
destRenderer->setPaintEffect( mPaintEffect->clone() );

destRenderer->setForceRasterRender( mForceRaster );
destRenderer->setUsingSymbolLevels( mUsingSymbolLevels );
destRenderer->mOrderBy = mOrderBy;
@@ -529,12 +529,17 @@ class CORE_EXPORT QgsFeatureRenderer

/**
* Clones generic renderer data to another renderer.
*
* Currently clones
*
* - Order By
* - Paint Effect
* - Order by
* - Paint effect
* - Reference scale
* - Symbol levels enabled/disabled
* - Force raster render enabled/disabled
*
* \param destRenderer destination renderer for copied effect
* \since QGIS 3.22
*/
void copyRendererData( QgsFeatureRenderer *destRenderer ) const;

0 comments on commit d6709e0

Please sign in to comment.