Fixed problems with eventFilter function destruction order.
The object passed to eventFilter function will keep a reference
to the listener object, this will ensure the destruction order.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
3800537912
commit
20f8953cb4
1 changed files with 10 additions and 0 deletions
|
|
@ -1286,6 +1286,16 @@
|
||||||
<define-ownership owner="c++"/>
|
<define-ownership owner="c++"/>
|
||||||
</modify-argument>
|
</modify-argument>
|
||||||
</modify-function>
|
</modify-function>
|
||||||
|
<modify-function signature="installEventFilter(QObject*)">
|
||||||
|
<inject-code>
|
||||||
|
Shiboken::Object::keepReference((SbkObject*)%PYARG_1, "eventFilter", %PYSELF, true);
|
||||||
|
</inject-code>
|
||||||
|
</modify-function>
|
||||||
|
<modify-function signature="removeEventFilter(QObject*)">
|
||||||
|
<inject-code>
|
||||||
|
Shiboken::Object::removeReference((SbkObject*)%PYARG_1, "eventFilter", %PYSELF);
|
||||||
|
</inject-code>
|
||||||
|
</modify-function>
|
||||||
<!-- Invalidate-after-use stuff -->
|
<!-- Invalidate-after-use stuff -->
|
||||||
<modify-function signature="childEvent(QChildEvent*)">
|
<modify-function signature="childEvent(QChildEvent*)">
|
||||||
<modify-argument index="1" invalidate-after-use="yes"/>
|
<modify-argument index="1" invalidate-after-use="yes"/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue