Skip to content
Permalink
Browse files

Followup 71712a, add missing SIP bindings

Also change QPointF& -> QPointF (faster)
  • Loading branch information
nyalldawson committed May 23, 2016
1 parent 7a8c3e0 commit 3e45369f77a881e08f50a68a312e6d60fff824e9
Showing with 5 additions and 1 deletion.
  1. +4 −0 python/core/symbology-ng/qgssymbolv2.sip
  2. +1 −1 src/core/symbology-ng/qgssymbolv2.cpp
@@ -264,6 +264,10 @@ class QgsSymbolV2
//! @deprecated since 2.14, use QgsSymbolLayerV2::isCompatibleWithSymbol instead
bool isSymbolLayerCompatible( SymbolType layerType );

//! Render editing vertex marker at specified point
//! @note added in QGIS 2.16
void renderVertexMarker( QPointF pt, QgsRenderContext& context, int currentVertexMarkerType, int currentVertexMarkerSize );

private:
QgsSymbolV2( const QgsSymbolV2& );
};
@@ -950,7 +950,7 @@ QgsSymbolV2RenderContext* QgsSymbolV2::symbolRenderContext()
return mSymbolRenderContext;
}

void QgsSymbolV2::renderVertexMarker( QPointF& pt, QgsRenderContext& context, int currentVertexMarkerType, int currentVertexMarkerSize )
void QgsSymbolV2::renderVertexMarker( QPointF pt, QgsRenderContext& context, int currentVertexMarkerType, int currentVertexMarkerSize )
{
QgsVectorLayer::drawVertexMarker( pt.x(), pt.y(), *context.painter(), static_cast< QgsVectorLayer::VertexMarkerType >( currentVertexMarkerType ), currentVertexMarkerSize );
}

0 comments on commit 3e45369

Please sign in to comment.
You can’t perform that action at this time.