Skip to content

Commit

Permalink
Fix missing sip bindings for renderers (fix #13545)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 8, 2015
1 parent e5ea5ff commit 3520f03
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions python/core/symbology-ng/qgscategorizedsymbolrendererv2.sip
Expand Up @@ -109,6 +109,9 @@ class QgsCategorizedSymbolRendererV2 : QgsFeatureRendererV2
//! @note not available in python bindings
// virtual QgsLegendSymbolList legendSymbolItems( double scaleDenominator = -1, const QString& rule = QString() );

//! @note added in 2.10
QgsLegendSymbolListV2 legendSymbolItemsV2() const;

QgsSymbolV2* sourceSymbol();
void setSourceSymbol( QgsSymbolV2* sym /Transfer/ );

Expand Down
3 changes: 3 additions & 0 deletions python/core/symbology-ng/qgsgraduatedsymbolrendererv2.sip
Expand Up @@ -209,6 +209,9 @@ class QgsGraduatedSymbolRendererV2 : QgsFeatureRendererV2
//! @note not available in python bindings
// virtual QgsLegendSymbolList legendSymbolItems( double scaleDenominator = -1, const QString& rule = QString() );

//! @note added in 2.10
QgsLegendSymbolListV2 legendSymbolItemsV2() const;

QgsSymbolV2* sourceSymbol();
void setSourceSymbol( QgsSymbolV2* sym /Transfer/ );

Expand Down
8 changes: 7 additions & 1 deletion python/core/symbology-ng/qgsrendererv2.sip
Expand Up @@ -125,7 +125,13 @@ class QgsFeatureRendererV2
virtual int capabilities();

//! for symbol levels
virtual QgsSymbolV2List symbols( QgsRenderContext& context ) = 0;
virtual QgsSymbolV2List symbols() /Deprecated/;

/** Returns list of symbols used by the renderer.
* @param context render context
* @note added in QGIS 2.12
*/
virtual QgsSymbolV2List symbols( QgsRenderContext& context );

bool usingSymbolLevels() const;
void setUsingSymbolLevels( bool usingSymbolLevels );
Expand Down

0 comments on commit 3520f03

Please sign in to comment.