summaryrefslogtreecommitdiffstats
path: root/PySide/QtWebKit/typesystem_webkit.xml
diff options
context:
space:
mode:
Diffstat (limited to 'PySide/QtWebKit/typesystem_webkit.xml')
-rw-r--r--PySide/QtWebKit/typesystem_webkit.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/PySide/QtWebKit/typesystem_webkit.xml b/PySide/QtWebKit/typesystem_webkit.xml
index f11c6e3..1eebe4a 100644
--- a/PySide/QtWebKit/typesystem_webkit.xml
+++ b/PySide/QtWebKit/typesystem_webkit.xml
@@ -38,6 +38,11 @@
<modify-argument index="return">
<define-ownership class="target" owner="default"/>
</modify-argument>
+ <inject-code position="end">
+ Shiboken::SbkBaseWrapper* _pyReturn = reinterpret_cast&lt;Shiboken::SbkBaseWrapper*&gt;(%PYARG_0);
+ if (!_pyReturn->parentInfo)
+ Shiboken::setParent(%PYSELF, %PYARG_0);
+ </inject-code>
</modify-function>
<modify-function signature="print(QPrinter*)const" rename="print_" />
</object-type>