Modify sendCommand signatures to use 0 as default value
authorDmitry Shachnev <mitya57@debian.org>
Sat, 3 Feb 2024 21:29:00 +0000 (00:29 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 17 Nov 2024 11:20:58 +0000 (14:20 +0300)
The original default value was QNodeCommand::CommandId(), and shiboken
copies it verbatim from the header file, however it does not work because
we do not generate "using namespace Qt3DCore;".

0 is the same as QNodeCommand::CommandId().

Gbp-Pq: Name Modify-sendCommand-signatures.patch

sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml

index 8696a128cf74fe6e4924d01eb47d2f2896654b1a..310595f05eee5e83366f2014edbf7101ff25cf1b 100644 (file)
         <object-type name="QAspectJob"/>
         <object-type name="QBackendNode">
             <enum-type name="Mode"/>
+            <modify-function signature="sendCommand(const QString&amp;,const QVariant&amp;,unsigned long long)">
+              <modify-argument index="3">
+                <replace-default-expression with="0"/>
+              </modify-argument>
+            </modify-function>
         </object-type>
         <!-- TODO: Solve issues related to windows and a unresolved
             external symbol
         </object-type>
         <object-type name="QNode">
             <enum-type name="PropertyTrackingMode"/>
+            <modify-function signature="sendCommand(const QString&amp;,const QVariant&amp;,unsigned long long)">
+              <modify-argument index="3">
+                <replace-default-expression with="0"/>
+              </modify-argument>
+            </modify-function>
         </object-type>
         <object-type name="QNodeCommand" since="5.10"/>
         <object-type name="QNodeCreatedChangeBase"/>