summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-06-06 18:46:17 +0200
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-06-07 07:25:04 +0000
commit823eea34b77ca16a545a75b55619a5ed4da38c0e (patch)
tree97e5eb646134c1a839eb6ddabcde07a4b109a171
parentb7631928d7271ac7573a2972e8f33dd141d04e16 (diff)
Fix addImageProvider ownership transfer
The QQmlEngine takes ownership of the QQmlImageProviderBase. Change-Id: Ia01e4151054623c96c24a2d07009d876eaacaa55 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--sources/pyside2/PySide2/QtQml/typesystem_qml.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/QtQml/typesystem_qml.xml b/sources/pyside2/PySide2/QtQml/typesystem_qml.xml
index 80a0ed82..4ca776e1 100644
--- a/sources/pyside2/PySide2/QtQml/typesystem_qml.xml
+++ b/sources/pyside2/PySide2/QtQml/typesystem_qml.xml
@@ -121,6 +121,11 @@
</object-type>
<object-type name="QQmlEngine">
<enum-type name="ObjectOwnership" />
+ <modify-function signature="addImageProvider(const QString&amp;,QQmlImageProviderBase*)">
+ <modify-argument index="2">
+ <define-ownership owner="c++"/>
+ </modify-argument>
+ </modify-function>
</object-type>
<object-type name="QQmlExpression">
<modify-function signature="evaluate(bool*)" allow-thread="yes">