aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2020-01-24 15:26:32 +0100
committerCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2020-01-24 17:40:00 +0100
commitca5496ab7360a257e81dbc9d8bac653154af7dd3 (patch)
treefb4c1734e6e9273d5bf2b1bdffa5ceb7d4774faa
parent5b7e534dfcd882328556e500ad639742e2175e10 (diff)
Fix ownership of QTextDocument::createObject
Since it's a virtual method, we need to specify that the native counterpart of the method will live in C++, and in the target scope it will live in Python. Fixes: PYSIDE-1207 Change-Id: I5b9072380eed17270affa39c5976dc6b1fe293ff Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
index b1090b651..e1a170e61 100644
--- a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
+++ b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
@@ -1778,7 +1778,8 @@
</modify-function>
<modify-function signature="createObject(const QTextFormat&amp;)">
<modify-argument index="return">
- <parent index="this" action="add"/>
+ <define-ownership class="native" owner="c++"/>
+ <define-ownership class="target" owner="target"/>
</modify-argument>
</modify-function>
<modify-function signature="print(QPagedPaintDevice*)const" rename="print_"/>