summaryrefslogtreecommitdiffstats
path: root/tests/pysidetest/typesystem_pysidetest.xml
blob: 52396203c31626c16412d172eb9fdee3b9971fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<typesystem package="testbinding">
    <load-typesystem name="typesystem_core.xml" generate="no" />
    <load-typesystem name="typesystem_gui.xml" generate="no"/>
    <object-type name="TestObject" />

    <inject-code>
        qRegisterMetaType&lt;PySideInt>("PySideInt");
        qRegisterMetaType&lt;PySideCPP2::PySideLong>("PySideLong");
    </inject-code>

    <namespace-type name="PySideCPP">
        <object-type name="TestObjectWithNamespace" >
            <modify-function signature="emitSignal(PySideCPP::TestObjectWithNamespace*)">
              <modify-argument index="1">
                <replace-type modified-type="TestObjectWithNamespace*"/>
              </modify-argument>
            </modify-function>
        </object-type>
    </namespace-type>

    <namespace-type name="PySideCPP2" generate="no">
        <object-type name="TestObjectWithoutNamespace" >
            <modify-function signature="emitSignalWithNamespace(PySideCPP2::TestObjectWithoutNamespace*)">
              <modify-argument index="1">
                <replace-type modified-type="PySideCPP2::TestObjectWithoutNamespace*"/>
              </modify-argument>
            </modify-function>
        </object-type>
    </namespace-type>

    <object-type name="TestView" >
        <modify-function signature="TestView(QAbstractListModel*,QObject*)">
            <modify-argument index="1">
                <reference-count action="add"/>
            </modify-argument>
        </modify-function>
    </object-type>
</typesystem>