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
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class QgsAttributeEditorElement : QObject
AeTypeInvalid
};

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

virtual ~QgsAttributeEditorElement();

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

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

~QgsAttributeEditorContainer();

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

~QgsAttributeEditorField();

Expand All @@ -66,9 +66,9 @@ class QgsAttributeEditorField : QgsAttributeEditorElement
class QgsAttributeEditorRelation : QgsAttributeEditorElement
{
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();

Expand Down

0 comments on commit bb3ead3

Please sign in to comment.