summaryrefslogtreecommitdiffstats
path: root/PySide/QtWebKit
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-11-03 12:12:46 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-11-03 17:49:01 -0300
commit17b0474ec7c5980380eacd0e4374941b0d1cd81d (patch)
treeec87bdd33fe2e19fcfccda234158a2e837ae8075 /PySide/QtWebKit
parent7a6c33e90bea643da038f99d9fc74e3267998937 (diff)
Fixed return policy on QWebView.page()
Fixes bug #448. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
Diffstat (limited to 'PySide/QtWebKit')
-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 f11c6e30..1eebe4af 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>