aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-07-22 08:11:48 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-07-23 12:43:42 +0000
commit9c6e82e2857e4ce45c578b73807de4b3b941ab38 (patch)
tree3035c1efb26adb74cf8ec81c57b98cc923e47672 /sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
parent0864de0b26888a795808faa234d9717066e821b5 (diff)
Fix comparison of classes inheriting QList
Manually add the comparison operators, which are inherited from QList and not detected by the parser due to: friend QTypeTraits::compare_eq_result<U> operator==(const QList &l, const QList &r) After Change c58c3e5a99a4dee992fd4c7898185181ecc84ae7, the default code will be generated for them. Task-number: PYSIDE-1339 Task-number: PYSIDE-904 Change-Id: Icc3d4e759e296303988cd00323876ab5225d8c27 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/PySide2/QtCore/typesystem_core_common.xml')
-rw-r--r--sources/pyside2/PySide2/QtCore/typesystem_core_common.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
index 72feb50d1..982674500 100644
--- a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
+++ b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
@@ -1513,6 +1513,10 @@
</object-type>
<value-type name="QItemSelection">
<include file-name="QList" location="global"/>
+ <!-- Expose operator==, != inherited from QList, which the parser does
+ not see due to the TMP expression of the return type. -->
+ <add-function signature="operator==(const QItemSelection&amp;)" return-type="bool"/>
+ <add-function signature="operator!=(const QItemSelection&amp;)" return-type="bool"/>
</value-type>
<object-type name="QItemSelectionModel">
@@ -2703,6 +2707,10 @@
<modify-function signature="toList()const" remove="all"/>
<modify-function signature="fromList(const QList&lt;QXmlStreamAttribute&gt; &amp;)" remove="all"/>
<modify-function signature="operator+=(QVector&lt;QXmlStreamAttribute&gt;)" remove="all"/>
+ <!-- Expose operator==, != inherited from QList, which the parser does
+ not see due to the TMP expression of the return type. -->
+ <add-function signature="operator==(const QXmlStreamAttributes&amp;)" return-type="bool"/>
+ <add-function signature="operator!=(const QXmlStreamAttributes&amp;)" return-type="bool"/>
</value-type>
<value-type name="QXmlStreamNamespaceDeclaration"/>
<value-type name="QXmlStreamNotationDeclaration"/>