diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-11-03 12:12:46 -0300 |
---|---|---|
committer | renatofilho <renato.filho@openbossa.org> | 2010-11-03 17:49:01 -0300 |
commit | 17b0474ec7c5980380eacd0e4374941b0d1cd81d (patch) | |
tree | ec87bdd33fe2e19fcfccda234158a2e837ae8075 /PySide/QtWebKit | |
parent | 7a6c33e90bea643da038f99d9fc74e3267998937 (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.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/PySide/QtWebKit/typesystem_webkit.xml b/PySide/QtWebKit/typesystem_webkit.xml index f11c6e30a..1eebe4afa 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<Shiboken::SbkBaseWrapper*>(%PYARG_0); + if (!_pyReturn->parentInfo) + Shiboken::setParent(%PYSELF, %PYARG_0); + </inject-code> </modify-function> <modify-function signature="print(QPrinter*)const" rename="print_" /> </object-type> |