Skip to content

Commit 4efd410

Browse files
committed
Update sip
1 parent 7819d19 commit 4efd410

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

python/core/auto_generated/layertree/qgslayertreemodellegendnode.sip.in

+6-6
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Default implementation calls drawSymbol() and drawSymbolText() methods.
9696
If ctx is ``None``, this is just first stage when preparing layout - without actual rendering.
9797
%End
9898

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

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

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

205205

206-
virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
206+
virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;
207207

208208

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

394394

395-
virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
395+
virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;
396396

397397

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

428428

429-
virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
429+
virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;
430430

431431

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

461461

462-
virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
462+
virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;
463463

464464

465465
virtual void invalidateMapBasedData();

python/core/auto_generated/qgslegendrenderer.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Draws the legend using a given render ``context``. The legend will occupy the ar
7878
.. versionadded:: 3.6
7979
%End
8080

81-
void drawLegend( QJsonObject &json );
81+
void exportLegendToJson( const QgsRenderContext &context, QJsonObject &json );
8282
%Docstring
8383
Renders the legend in a ``json`` object.
8484

0 commit comments

Comments
 (0)