aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/glue/qtmultimedia.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-08-27 13:55:01 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-09-03 13:57:29 +0200
commitd66a01369cc358f3082dd9393cdeed9e174a1d52 (patch)
tree1e367b96abd5ee445832ccfe491f1ccaa77f18ba /sources/pyside6/PySide6/glue/qtmultimedia.cpp
parent8a176515c1a9a0b542434d31e5e5d0f2adb6e4b3 (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/PySide6/glue/qtmultimedia.cpp')
-rw-r--r--sources/pyside6/PySide6/glue/qtmultimedia.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/PySide6/glue/qtmultimedia.cpp b/sources/pyside6/PySide6/glue/qtmultimedia.cpp
index 32d9c27e2..251a46e90 100644
--- a/sources/pyside6/PySide6/glue/qtmultimedia.cpp
+++ b/sources/pyside6/PySide6/glue/qtmultimedia.cpp
@@ -25,5 +25,5 @@ const auto size = %CPPSELF.byteCount();
// @snippet qtaudio-namespace-compatibility-alias
auto *obType = reinterpret_cast<PyObject *>(pyType);
Py_INCREF(obType);
-PyModule_AddObject(module, "QtAudio", obType);
+PepModule_AddType(module, pyType);
// @snippet qtaudio-namespace-compatibility-alias