diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-22 08:11:48 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-23 12:43:42 +0000 |
commit | 9c6e82e2857e4ce45c578b73807de4b3b941ab38 (patch) | |
tree | 3035c1efb26adb74cf8ec81c57b98cc923e47672 /sources/pyside2/PySide2/QtCore/typesystem_core_common.xml | |
parent | 0864de0b26888a795808faa234d9717066e821b5 (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.xml | 8 |
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&)" return-type="bool"/> + <add-function signature="operator!=(const QItemSelection&)" 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<QXmlStreamAttribute> &)" remove="all"/> <modify-function signature="operator+=(QVector<QXmlStreamAttribute>)" 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&)" return-type="bool"/> + <add-function signature="operator!=(const QXmlStreamAttributes&)" return-type="bool"/> </value-type> <value-type name="QXmlStreamNamespaceDeclaration"/> <value-type name="QXmlStreamNotationDeclaration"/> |