Skip to content

Commit bb3ead3

Browse files
committedSep 22, 2014
Transfer ownership of drag-and-drop layout elements in sip
Fix #11207
1 parent b893cb2 commit bb3ead3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎python/core/qgsvectorlayer.sip

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class QgsAttributeEditorElement : QObject
1919
AeTypeInvalid
2020
};
2121

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

2424
virtual ~QgsAttributeEditorElement();
2525

@@ -37,7 +37,7 @@ class QgsAttributeEditorContainer : QgsAttributeEditorElement
3737
%End
3838

3939
public:
40-
QgsAttributeEditorContainer( QString name, QObject *parent );
40+
QgsAttributeEditorContainer( QString name, QObject *parent /TransferThis/ );
4141

4242
~QgsAttributeEditorContainer();
4343

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

5959
~QgsAttributeEditorField();
6060

@@ -66,9 +66,9 @@ class QgsAttributeEditorField : QgsAttributeEditorElement
6666
class QgsAttributeEditorRelation : QgsAttributeEditorElement
6767
{
6868
public:
69-
QgsAttributeEditorRelation( QString name, const QString &relationId, QObject *parent );
69+
QgsAttributeEditorRelation( QString name, const QString &relationId, QObject *parent /TransferThis/ );
7070

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

7373
~QgsAttributeEditorRelation();
7474

0 commit comments

Comments
 (0)
Please sign in to comment.