From 88acbd47dbc745f4d80b884022f27b899050680c Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Fri, 19 Aug 2011 16:28:51 -0300 Subject: Fix QGraphicsProxyWidget.setWidget return policy. Reviewer: Luciano Wolf Lauro Neto --- PySide/QtGui/typesystem_gui_common.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'PySide/QtGui') diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml index 5017a4e7f..c178d1844 100644 --- a/PySide/QtGui/typesystem_gui_common.xml +++ b/PySide/QtGui/typesystem_gui_common.xml @@ -5827,9 +5827,13 @@ - - - + + QWidget* _old = %CPPSELF.widget(); + if (_old) + Shiboken::Object::setParent(NULL, %CONVERTTOPYTHON[QWidget*](_old)); + %CPPSELF.%FUNCTION_NAME(%1); + Shiboken::Object::setParent(%PYSELF, %PYARG_1); + -- cgit v1.2.3