Fix QGraphicsProxyWidget.setWidget return policy.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
This commit is contained in:
parent
14c00d3325
commit
88acbd47db
1 changed files with 7 additions and 3 deletions
|
|
@ -5827,9 +5827,13 @@
|
||||||
</modify-argument>
|
</modify-argument>
|
||||||
</modify-function>
|
</modify-function>
|
||||||
<modify-function signature="setWidget(QWidget*)">
|
<modify-function signature="setWidget(QWidget*)">
|
||||||
<modify-argument index="1">
|
<inject-code>
|
||||||
<reference-count action="set"/>
|
QWidget* _old = %CPPSELF.widget();
|
||||||
</modify-argument>
|
if (_old)
|
||||||
|
Shiboken::Object::setParent(NULL, %CONVERTTOPYTHON[QWidget*](_old));
|
||||||
|
%CPPSELF.%FUNCTION_NAME(%1);
|
||||||
|
Shiboken::Object::setParent(%PYSELF, %PYARG_1);
|
||||||
|
</inject-code>
|
||||||
</modify-function>
|
</modify-function>
|
||||||
</object-type>
|
</object-type>
|
||||||
<!-- a QObject so main-thread delete redundant -->
|
<!-- a QObject so main-thread delete redundant -->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue