silx: 2.1.1 -> 2.1.2 (#361612)
[NixPkgs.git] / pkgs / development / python-modules / pyside2 / Modify-sendCommand-signatures.patch
blob7465b109f8a4247a353c875a486b171ff16725fa
1 From: Dmitry Shachnev <mitya57@debian.org>
2 Date: Sun, 4 Feb 2024 00:29:00 +0300
3 Subject: Modify sendCommand signatures to use 0 as default value
5 The original default value was QNodeCommand::CommandId(), and shiboken
6 copies it verbatim from the header file, however it does not work because
7 we do not generate "using namespace Qt3DCore;".
9 0 is the same as QNodeCommand::CommandId().
10 ---
11 sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml | 10 ++++++++++
12 1 file changed, 10 insertions(+)
14 diff --git a/sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml b/sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml
15 index 8696a12..310595f 100644
16 --- a/sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml
17 +++ b/sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml
18 @@ -58,6 +58,11 @@
19 <object-type name="QAspectJob"/>
20 <object-type name="QBackendNode">
21 <enum-type name="Mode"/>
22 + <modify-function signature="sendCommand(const QString&amp;,const QVariant&amp;,unsigned long long)">
23 + <modify-argument index="3">
24 + <replace-default-expression with="0"/>
25 + </modify-argument>
26 + </modify-function>
27 </object-type>
28 <!-- TODO: Solve issues related to windows and a unresolved
29 external symbol
30 @@ -82,6 +87,11 @@
31 </object-type>
32 <object-type name="QNode">
33 <enum-type name="PropertyTrackingMode"/>
34 + <modify-function signature="sendCommand(const QString&amp;,const QVariant&amp;,unsigned long long)">
35 + <modify-argument index="3">
36 + <replace-default-expression with="0"/>
37 + </modify-argument>
38 + </modify-function>
39 </object-type>
40 <object-type name="QNodeCommand" since="5.10"/>
41 <object-type name="QNodeCreatedChangeBase"/>