aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml9
-rw-r--r--sources/pyside2/PySide2/templates/core_common.xml8
2 files changed, 17 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml b/sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml
index 616a5a782..f6402f7e8 100644
--- a/sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml
+++ b/sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml
@@ -63,6 +63,15 @@
<object-type name="QScxmlDataModel" since="5.12">
<!-- Needs to have exports fixed -->
<interface-type name="ForeachLoopBody" since="5.12"/>
+ <modify-function signature="^evaluateTo(String|Bool|Variant)\(.*bool ?\*.*$">
+ <modify-argument index="2">
+ <remove-default-expression/>
+ <remove-argument/>
+ </modify-argument>
+ <inject-code class="target" position="beginning">
+ <insert-template name="fix_args,arg,bool*"/>
+ </inject-code>
+ </modify-function>
</object-type>
<object-type name="QScxmlEcmaScriptDataModel" since="5.12"/>
<value-type name="QScxmlError"/>
diff --git a/sources/pyside2/PySide2/templates/core_common.xml b/sources/pyside2/PySide2/templates/core_common.xml
index 96a9be620..7c2ae3a77 100644
--- a/sources/pyside2/PySide2/templates/core_common.xml
+++ b/sources/pyside2/PySide2/templates/core_common.xml
@@ -86,6 +86,14 @@
<insert-template name="tuple_retval_ok"/>
</template>
+ <template name="fix_args,arg,bool*">
+ bool ok_;
+ %BEGIN_ALLOW_THREADS
+ %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, &amp;ok_);
+ %END_ALLOW_THREADS
+ <insert-template name="tuple_retval_ok"/>
+ </template>
+
<template name="fix_arg,bool*,arg">
bool ok_;
%BEGIN_ALLOW_THREADS