aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pysidetest/typesystem_pysidetest.xml
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-12-13 17:47:16 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:47:57 -0300
commit86b7d6e25c2612313da8a9193c90cc60728d3264 (patch)
tree17f5582e25373b910907810eee39972ef1089804 /tests/pysidetest/typesystem_pysidetest.xml
parentee8d6262dcceb4d594a01623c947e9186e985221 (diff)
Added test for Python written models returning new objects without keeping reference to them.
Reviewed by Lauro Moura <lauro.neto@openbossa.org> eviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/pysidetest/typesystem_pysidetest.xml')
-rw-r--r--tests/pysidetest/typesystem_pysidetest.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pysidetest/typesystem_pysidetest.xml b/tests/pysidetest/typesystem_pysidetest.xml
index a96636262..afa764c43 100644
--- a/tests/pysidetest/typesystem_pysidetest.xml
+++ b/tests/pysidetest/typesystem_pysidetest.xml
@@ -2,5 +2,12 @@
<typesystem package="testbinding">
<load-typesystem name="typesystem_core.xml" generate="no" />
<object-type name="TestObject" />
+ <object-type name="TestView" >
+ <modify-function signature="setModel(QObject*)">
+ <modify-argument index="1">
+ <reference-count action="add"/>
+ </modify-argument>
+ </modify-function>
+ </object-type>
</typesystem>