Skip to content

Commit

Permalink
Update sip
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Mar 20, 2019
1 parent 7819d19 commit 4efd410
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -96,7 +96,7 @@ Default implementation calls drawSymbol() and drawSymbolText() methods.
If ctx is ``None``, this is just first stage when preparing layout - without actual rendering.
%End

void exportToJson( const QgsLegendSettings &settings, QJsonObject &json );
void exportToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json );
%Docstring
Entry point called from QgsLegendRenderer to do the rendering in a
JSON object.
Expand All @@ -118,7 +118,7 @@ Draws symbol on the left side of the item
:return: Real size of the symbol (may be bigger than "normal" symbol size from settings)
%End

virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;
%Docstring
Adds a symbol in base64 string within a JSON object with the key "icon".

Expand Down Expand Up @@ -203,7 +203,7 @@ Constructor for QgsSymbolLegendNode.
virtual QSizeF drawSymbol( const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight ) const;


virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;


virtual void setEmbeddedInParent( bool embedded );
Expand Down Expand Up @@ -392,7 +392,7 @@ Constructor for QgsImageLegendNode.
virtual QSizeF drawSymbol( const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight ) const;


virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;


};
Expand Down Expand Up @@ -426,7 +426,7 @@ Constructor for QgsRasterSymbolLegendNode.
virtual QSizeF drawSymbol( const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight ) const;


virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;


};
Expand Down Expand Up @@ -459,7 +459,7 @@ Constructor for QgsWmsLegendNode.
virtual QSizeF drawSymbol( const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight ) const;


virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;


virtual void invalidateMapBasedData();
Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgslegendrenderer.sip.in
Expand Up @@ -78,7 +78,7 @@ Draws the legend using a given render ``context``. The legend will occupy the ar
.. versionadded:: 3.6
%End

void drawLegend( QJsonObject &json );
void exportLegendToJson( const QgsRenderContext &context, QJsonObject &json );
%Docstring
Renders the legend in a ``json`` object.

Expand Down

0 comments on commit 4efd410

Please sign in to comment.