summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PySide/QtCore/typesystem_core.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index ec215ec..285e6e6 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -1294,6 +1294,16 @@
<define-ownership owner="c++"/>
</modify-argument>
</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 -->
<modify-function signature="childEvent(QChildEvent*)">
<modify-argument index="1" invalidate-after-use="yes"/>