diff options
author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2022-06-24 10:41:39 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-06-24 11:55:28 +0000 |
commit | f8f80970ac0ff796ed166667f93cf4742262587b (patch) | |
tree | eaedf633333e71be460796ba478c9a0faee848a4 | |
parent | e47fc7dd2fbb66af330d3d5c8753b9f13ade21ae (diff) |
support enum handling for headerData(...)
- similar to data(...), headerData(...) also needs to support handling of enums
Task-number: PYSIDE-1974
Change-Id: I7fd96e267af4cd30269e5fb42102c1bf6f32b155
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit c6a96f04c20db6e620cd800fd57d4d9cdd1910f6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | sources/pyside6/PySide6/QtCore/typesystem_core_common.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml index 4f18dc2f4..01620d671 100644 --- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml +++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml @@ -1547,6 +1547,10 @@ <define-ownership class="native" owner="c++"/> </modify-argument> </modify-function> + <modify-function signature="headerData(int,Qt::Orientation,int)const"> + <inject-code class="native" position="end" file="../glue/qtcore.cpp" + snippet="qabstractitemmodel_data"/> + </modify-function> <modify-function signature="dataChanged(const QModelIndex&,const QModelIndex&,const QVector<int>&)" allow-thread="yes"/> <modify-function signature="layoutAboutToBeChanged(const QList<QPersistentModelIndex>&,QAbstractItemModel::LayoutChangeHint)" allow-thread="yes"/> <modify-function signature="layoutChanged(const QList<QPersistentModelIndex>&,QAbstractItemModel::LayoutChangeHint)" allow-thread="yes"/> |