Skip to content

Commit

Permalink
Transfer ownership of drag-and-drop layout elements in sip
Browse files Browse the repository at this point in the history
Fix #11207
  • Loading branch information
m-kuhn committed Sep 22, 2014
1 parent b893cb2 commit bb3ead3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/core/qgsvectorlayer.sip
Expand Up @@ -19,7 +19,7 @@ class QgsAttributeEditorElement : QObject
AeTypeInvalid AeTypeInvalid
}; };


QgsAttributeEditorElement( AttributeEditorType type, QString name, QObject *parent = NULL ); QgsAttributeEditorElement( AttributeEditorType type, QString name, QObject *parent /TransferThis/ = NULL );


virtual ~QgsAttributeEditorElement(); virtual ~QgsAttributeEditorElement();


Expand All @@ -37,7 +37,7 @@ class QgsAttributeEditorContainer : QgsAttributeEditorElement
%End %End


public: public:
QgsAttributeEditorContainer( QString name, QObject *parent ); QgsAttributeEditorContainer( QString name, QObject *parent /TransferThis/ );


~QgsAttributeEditorContainer(); ~QgsAttributeEditorContainer();


Expand All @@ -54,7 +54,7 @@ class QgsAttributeEditorField : QgsAttributeEditorElement
#include "qgsvectorlayer.h" #include "qgsvectorlayer.h"
%End %End
public: public:
QgsAttributeEditorField( QString name , int idx, QObject *parent ); QgsAttributeEditorField( QString name , int idx, QObject *parent /TransferThis/ );


~QgsAttributeEditorField(); ~QgsAttributeEditorField();


Expand All @@ -66,9 +66,9 @@ class QgsAttributeEditorField : QgsAttributeEditorElement
class QgsAttributeEditorRelation : QgsAttributeEditorElement class QgsAttributeEditorRelation : QgsAttributeEditorElement
{ {
public: public:
QgsAttributeEditorRelation( QString name, const QString &relationId, QObject *parent ); QgsAttributeEditorRelation( QString name, const QString &relationId, QObject *parent /TransferThis/ );


QgsAttributeEditorRelation( QString name, const QgsRelation& relation, QObject *parent ); QgsAttributeEditorRelation( QString name, const QgsRelation& relation, QObject *parent /TransferThis/);


~QgsAttributeEditorRelation(); ~QgsAttributeEditorRelation();


Expand Down

0 comments on commit bb3ead3

Please sign in to comment.