diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-06-24 08:04:44 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-06-24 11:55:22 +0000 |
commit | f8e945097c4639df5d1263dbca81e2c4fcc371b5 (patch) | |
tree | a1919dc5c191a05ab91b6e6291a80a48f4bae148 /sources | |
parent | c6a96f04c20db6e620cd800fd57d4d9cdd1910f6 (diff) |
Fix returning flags from QAbstractTableModel and other models
Move the function modification from QAbstractListModel
to QAbstractItemModel.
Amends 20eb4f94c637d20461f1fef16942841803ada909.
Pick-to: 6.3
Fixes: PYSIDE-1974
Task-number: PYSIDE-1930
Change-Id: I9adedf8340a7f0999c42147e8fd290444642abcc
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources')
-rw-r--r-- | sources/pyside6/PySide6/QtCore/typesystem_core_common.xml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml index c40cd1b85..7b53c247a 100644 --- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml +++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml @@ -1538,6 +1538,8 @@ <modify-argument index="return"> <define-ownership class="native" owner="c++"/> </modify-argument> + <inject-code class="native" position="end" file="../glue/qtcore.cpp" + snippet="qabstractitemmodel_data"/> </modify-function> <modify-function signature="headerData(int,Qt::Orientation,int)const"> <inject-code class="native" position="end" file="../glue/qtcore.cpp" @@ -1771,9 +1773,6 @@ <include file-name="QStringList" location="global"/> <include file-name="QSize" location="global"/> </extra-includes> - <modify-function signature="data(const QModelIndex&,int)const"> - <inject-code class="native" position="end" file="../glue/qtcore.cpp" snippet="qabstractitemmodel_data"/> - </modify-function> </object-type> <value-type name="QUrlQuery" since="5.0"/> |