Skip to content

Commit 3520f03

Browse files
committed
Fix missing sip bindings for renderers (fix #13545)
1 parent e5ea5ff commit 3520f03

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

python/core/symbology-ng/qgscategorizedsymbolrendererv2.sip

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ class QgsCategorizedSymbolRendererV2 : QgsFeatureRendererV2
109109
//! @note not available in python bindings
110110
// virtual QgsLegendSymbolList legendSymbolItems( double scaleDenominator = -1, const QString& rule = QString() );
111111

112+
//! @note added in 2.10
113+
QgsLegendSymbolListV2 legendSymbolItemsV2() const;
114+
112115
QgsSymbolV2* sourceSymbol();
113116
void setSourceSymbol( QgsSymbolV2* sym /Transfer/ );
114117

python/core/symbology-ng/qgsgraduatedsymbolrendererv2.sip

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ class QgsGraduatedSymbolRendererV2 : QgsFeatureRendererV2
209209
//! @note not available in python bindings
210210
// virtual QgsLegendSymbolList legendSymbolItems( double scaleDenominator = -1, const QString& rule = QString() );
211211

212+
//! @note added in 2.10
213+
QgsLegendSymbolListV2 legendSymbolItemsV2() const;
214+
212215
QgsSymbolV2* sourceSymbol();
213216
void setSourceSymbol( QgsSymbolV2* sym /Transfer/ );
214217

python/core/symbology-ng/qgsrendererv2.sip

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,13 @@ class QgsFeatureRendererV2
125125
virtual int capabilities();
126126

127127
//! for symbol levels
128-
virtual QgsSymbolV2List symbols( QgsRenderContext& context ) = 0;
128+
virtual QgsSymbolV2List symbols() /Deprecated/;
129+
130+
/** Returns list of symbols used by the renderer.
131+
* @param context render context
132+
* @note added in QGIS 2.12
133+
*/
134+
virtual QgsSymbolV2List symbols( QgsRenderContext& context );
129135

130136
bool usingSymbolLevels() const;
131137
void setUsingSymbolLevels( bool usingSymbolLevels );

0 commit comments

Comments
 (0)