diff options
author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2022-06-24 10:41:39 +0200 |
---|---|---|
committer | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2022-06-24 11:54:46 +0200 |
commit | c6a96f04c20db6e620cd800fd57d4d9cdd1910f6 (patch) | |
tree | 5d83205dbd44166a32cf4ddf622890c196b6972f /sources | |
parent | 678ed9bc201c739f1b0ebdf8aeb31f6513bb3ba4 (diff) |
support enum handling for headerData(...)
- similar to data(...), headerData(...) also needs to support handling of enums
Pick-to: 6.3
Task-number: PYSIDE-1974
Change-Id: I7fd96e267af4cd30269e5fb42102c1bf6f32b155
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources')
-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 f6091023f..c40cd1b85 100644 --- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml +++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml @@ -1539,6 +1539,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"/> |