Skip to content

Commit

Permalink
Followup 71712a, add missing SIP bindings
Browse files Browse the repository at this point in the history
Also change QPointF& -> QPointF (faster)
  • Loading branch information
nyalldawson committed May 23, 2016
1 parent 7a8c3e0 commit 3e45369
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions python/core/symbology-ng/qgssymbolv2.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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& );
};
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgssymbolv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 3e45369

Please sign in to comment.