diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-08-27 13:55:01 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-09-03 13:57:29 +0200 |
| commit | d66a01369cc358f3082dd9393cdeed9e174a1d52 (patch) | |
| tree | 1e367b96abd5ee445832ccfe491f1ccaa77f18ba /sources/pyside6/libpyside/class_property.cpp | |
| parent | 8a176515c1a9a0b542434d31e5e5d0f2adb6e4b3 (diff) | |
Add PepModule_AddType()
PyModule_AddObject() is deprecated in 3.13. For adding types to a
module, PyModule_AddType() can be used instead (added to stable ABI in
3.10). Add a Pep function for it.
This requires adapting some type names in QML.
Pick-to: 6.9 6.8
Task-number: PYSIDE-3147
Change-Id: I169a6b7071c780dd3c3ec2ddd0762dca6cacf067
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/class_property.cpp')
| -rw-r--r-- | sources/pyside6/libpyside/class_property.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/libpyside/class_property.cpp b/sources/pyside6/libpyside/class_property.cpp index ee273c018..2e1001be2 100644 --- a/sources/pyside6/libpyside/class_property.cpp +++ b/sources/pyside6/libpyside/class_property.cpp @@ -174,7 +174,7 @@ void init(PyObject *module) auto *obClassPropertyType = reinterpret_cast<PyObject *>(classPropertyType); Py_INCREF(obClassPropertyType); - PyModule_AddObject(module, "PyClassProperty", obClassPropertyType); + PepModule_AddType(module, classPropertyType); } } // namespace PySide::ClassProperty |
