@@ -96,7 +96,7 @@ Default implementation calls drawSymbol() and drawSymbolText() methods.
96
96
If ctx is ``None``, this is just first stage when preparing layout - without actual rendering.
97
97
%End
98
98
99
- void exportToJson( const QgsLegendSettings &settings, QJsonObject &json );
99
+ void exportToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json );
100
100
%Docstring
101
101
Entry point called from QgsLegendRenderer to do the rendering in a
102
102
JSON object.
@@ -118,7 +118,7 @@ Draws symbol on the left side of the item
118
118
:return: Real size of the symbol (may be bigger than "normal" symbol size from settings)
119
119
%End
120
120
121
- virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
121
+ virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;
122
122
%Docstring
123
123
Adds a symbol in base64 string within a JSON object with the key "icon".
124
124
@@ -203,7 +203,7 @@ Constructor for QgsSymbolLegendNode.
203
203
virtual QSizeF drawSymbol( const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight ) const;
204
204
205
205
206
- virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
206
+ virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;
207
207
208
208
209
209
virtual void setEmbeddedInParent( bool embedded );
@@ -392,7 +392,7 @@ Constructor for QgsImageLegendNode.
392
392
virtual QSizeF drawSymbol( const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight ) const;
393
393
394
394
395
- virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
395
+ virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;
396
396
397
397
398
398
};
@@ -426,7 +426,7 @@ Constructor for QgsRasterSymbolLegendNode.
426
426
virtual QSizeF drawSymbol( const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight ) const;
427
427
428
428
429
- virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
429
+ virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;
430
430
431
431
432
432
};
@@ -459,7 +459,7 @@ Constructor for QgsWmsLegendNode.
459
459
virtual QSizeF drawSymbol( const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight ) const;
460
460
461
461
462
- virtual void exportSymbolToJson( const QgsLegendSettings &settings, QJsonObject &json ) const;
462
+ virtual void exportSymbolToJson( const QgsLegendSettings &settings, const QgsRenderContext &context, QJsonObject &json ) const;
463
463
464
464
465
465
virtual void invalidateMapBasedData();
0 commit comments