Skip to content

Commit

Permalink
Fix SIP bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed May 24, 2014
1 parent 0775a89 commit ff3cf0a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions python/core/symbology-ng/qgsinvertedpolygonrenderer.sip
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class QgsInvertedPolygonRenderer : public QgsFeatureRendererV2
class QgsInvertedPolygonRenderer : QgsFeatureRendererV2
{
%TypeHeaderCode
#include <qgsinvertedpolygonrenderer.h>
Expand All @@ -8,11 +8,11 @@ class QgsInvertedPolygonRenderer : public QgsFeatureRendererV2
/** Constructor
* @param embeddedRenderer optional embeddedRenderer. If null, a default one will be assigned
*/
QgsInvertedPolygonRenderer( const QgsFeatureRendererV2* embeddedRenderer = 0 );
QgsInvertedPolygonRenderer( const QgsFeatureRendererV2* embeddedRenderer /Transfer/ = 0 );
virtual ~QgsInvertedPolygonRenderer();

/** Used to clone this feature renderer.*/
virtual QgsFeatureRendererV2* clone();
virtual QgsFeatureRendererV2* clone() /Factory/;

virtual void startRender( QgsRenderContext& context, const QgsFields& fields );

Expand Down Expand Up @@ -52,7 +52,7 @@ class QgsInvertedPolygonRenderer : public QgsFeatureRendererV2
virtual bool willRenderFeature( QgsFeature& feat );

/** Creates a renderer out of an XML, for loading*/
static QgsFeatureRendererV2* create( QDomElement& element );
static QgsFeatureRendererV2* create( QDomElement& element ) /Factory/;

/** Creates an XML representation of the renderer. Used for saving purpose
* @param doc the XML document where to create the XML subtree
Expand Down
4 changes: 2 additions & 2 deletions python/gui/symbology-ng/qgsinvertedpolygonrendererwidget.sip
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class QgsInvertedPolygonRendererWidget : public QgsRendererV2Widget, private Ui::QgsInvertedPolygonRendererWidgetBase
class QgsInvertedPolygonRendererWidget : QgsRendererV2Widget
{
%TypeHeaderCode
#include <qgsinvertedpolygonrendererwidget.h>
Expand All @@ -9,7 +9,7 @@ class QgsInvertedPolygonRendererWidget : public QgsRendererV2Widget, private Ui:
* @param style
* @param renderer the mask renderer (will take ownership)
*/
static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer );
static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer ) /Factory/;

/** Constructor
* @param layer the layer where this renderer is applied
Expand Down
2 changes: 2 additions & 0 deletions src/core/symbology-ng/qgsinvertedpolygonrenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
*
* Features are collected to form one "inverted" polygon
* during renderFeature() and rendered on stopRender().
*
* @note added in 2.4
*/
class CORE_EXPORT QgsInvertedPolygonRenderer : public QgsFeatureRendererV2
{
Expand Down
2 changes: 2 additions & 0 deletions src/gui/symbology-ng/qgsinvertedpolygonrendererwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class QMenu;

/**
* A widget used represent options of a QgsInvertedPolygonRenderer
*
* @note added in 2.4
*/
class GUI_EXPORT QgsInvertedPolygonRendererWidget : public QgsRendererV2Widget, private Ui::QgsInvertedPolygonRendererWidgetBase
{
Expand Down

0 comments on commit ff3cf0a

Please sign in to comment.