aboutsummaryrefslogtreecommitdiff
path: root/python/pyside2/Modify-sendCommand-signatures.patch
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2025-07-04 10:17:34 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-07-05 09:09:18 +0700
commit2d036933cdc8ef0876663bf5ac0c7b4b8bc0bdbe (patch)
treecbb8956dbff96c606caa1c8b44272fe55c403e2c /python/pyside2/Modify-sendCommand-signatures.patch
parent915ea014569395f4a9d65f6ff7eb78a198b824c8 (diff)
python/pyside2: Update for version 5.15.17
Signed-off-by: Christoph Willing <chris.willing@linux.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/pyside2/Modify-sendCommand-signatures.patch')
-rw-r--r--python/pyside2/Modify-sendCommand-signatures.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/python/pyside2/Modify-sendCommand-signatures.patch b/python/pyside2/Modify-sendCommand-signatures.patch
new file mode 100644
index 0000000000..7465b109f8
--- /dev/null
+++ b/python/pyside2/Modify-sendCommand-signatures.patch
@@ -0,0 +1,41 @@
+From: Dmitry Shachnev <mitya57@debian.org>
+Date: Sun, 4 Feb 2024 00:29:00 +0300
+Subject: Modify sendCommand signatures to use 0 as default value
+
+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().
+---
+ sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml b/sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml
+index 8696a12..310595f 100644
+--- a/sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml
++++ b/sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml
+@@ -58,6 +58,11 @@
+ <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
+@@ -82,6 +87,11 @@
+ </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"/>