aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-07-23 10:15:17 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-07-27 14:40:13 +0000
commit0e351cd2cd7ff75c9425b5c33b5d8bff7e274b48 (patch)
tree04b8b60b2358a7bbf7fcb0ec8f1c15db5abb34da
parent7f8ffe2620a6d31fb0b5aa3b78d9a7eca8eaff65 (diff)
PySide: fix QItemSelection.__add__, supplement
The removal of the range was not necessary and created a warning. Task-number: PYSIDE-535 Change-Id: I07e87e544c13e58e6369b81bbecce43da37b0a86 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit dcfbb326e431de1e710385a8126b4a2739e2e921) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--sources/pyside6/PySide6/QtCore/typesystem_core_common.xml3
1 files changed, 1 insertions, 2 deletions
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
index e4a48bb25..4ee667ae6 100644
--- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
+++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
@@ -1545,8 +1545,7 @@
tag in Qt6? -->
<declare-function signature="QItemSelection()" return-type="QItemSelection" />
<!-- The __add__ function creates a result list, instead of using the inherited type.
- Solved for now by removing and re-adding with the correct type. -->
- <modify-function signature="operator+(QList&lt;QItemSelectionRange&gt;)const" remove="all" />
+ Fixed by adding with the correct type. -->
<add-function signature="operator+(QItemSelection)" return-type="QItemSelection">
<inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qitemselection-add"/>
</add-function>