aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rw-r--r--sources/pyside2/PySide2/QtCore/typesystem_core_common.xml8
-rw-r--r--sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml9
2 files changed, 13 insertions, 4 deletions
diff --git a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
index 0ca853a5e..0c24511a3 100644
--- a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
+++ b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
@@ -388,6 +388,14 @@
<!-- FIXME: Which one is it going to be? -->
<container-type name="QList" type="list">
<include file-name="QList" location="global"/>
+ <declare-function signature="append(T)" return-type="void"/>
+ <declare-function signature="insert(qsizetype,T)" return-type="void"/>
+ <declare-function signature="prepend(T)" return-type="void"/>
+ <declare-function signature="push_back(T)" return-type="void"/>
+ <declare-function signature="push_front(T)" return-type="void"/>
+ <declare-function signature="removeAll(T)" return-type="void"/>
+ <declare-function signature="removeOne(T)" return-type="void"/>
+ <!-- operator << needs to be declared in inheriting class -->
<conversion-rule>
<native-to-target>
<insert-template name="cpplist_to_pylist_conversion"/>
diff --git a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
index 88c19360a..e9c94e5ae 100644
--- a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
+++ b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
@@ -468,6 +468,7 @@
not see due to the TMP expression of the return type. -->
<add-function signature="operator==(const QPolygon&amp;)" return-type="bool"/>
<add-function signature="operator!=(const QPolygon&amp;)" return-type="bool"/>
+
<add-function signature="__reduce__" return-type="PyObject*">
<inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qpolygon-reduce">
<insert-template name="reduce_code">
@@ -481,12 +482,12 @@
<modify-function signature="QPolygon(int,const int*)" remove="all"/>
<!-- ### A QVector parameter, for no defined type, will generate wrong code. -->
<modify-function signature="operator+=(QVector&lt;QPoint&gt;)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(QPoint)">
+ <add-function signature="operator&lt;&lt;(QPoint)">
<inject-code file="../glue/qtgui.cpp" snippet="qpolygon-operatorlowerlower"/>
- </modify-function>
- <modify-function signature="operator&lt;&lt;(QVector&lt;QPoint&gt;)">
+ </add-function>
+ <add-function signature="operator&lt;&lt;(QVector&lt;QPoint&gt;)">
<inject-code file="../glue/qtgui.cpp" snippet="qpolygon-operatorlowerlower"/>
- </modify-function>
+ </add-function>
<!-- ### -->
</value-type>
<value-type name="QPolygonF">