aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/glue/qttest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reduce usage of PyTypeObject::tp_nameFriedemann Kleint2025-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | In the Limited API, PyTypeObject is an opaque struct, for which libshiboken provides a dummy definition. PyType_GetFullyQualifiedName() (stable API since 3.13) can be used as a replacement, but it returns a PyObject. Add a convenience function PepType_GetFullyQualifiedNameStr() similar to the existing PepType_GetNameStr() to return a C-string. Leave the 3.13 code commented out for the moment since it causes a crash. This does not cover occurrences of tp_name passed as strings to Python formatting functions using the %s placeholder since that can be replaced by the new %N/%T placeholder starting from 3.13. Task-number: PYSIDE-3171 Change-Id: I4a073872cd0d138b8d8c6aafb08ccb33451812ca Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Change binding for QSignalSpy to Py_DECREF wrapped typeBrett Stottlemyer2025-01-251-0/+6
| | | | | | | | | | | | This is arguably a bug, but would only be noticed in testing. It was preventing proper garbage collection in tests using QSignalSpy. I can see an argument it should keep the target object alive while running, but I don't see a good way to DECREF on close, so not holding a reference seems like the best option. Change-Id: I730d8b0a6efd3fef63dfd224917c2e5927d144c4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Adapt to 6.8Friedemann Kleint2024-09-051-1/+1
| | | | | | | Task-number: PYSIDE-2620 Task-number: QTBUG-125719 Change-Id: I6efeb1770c9bd7cddc3dbd91ca6294b9fddc9cc9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-271-38/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6/QSignalSpy: Add constructor taking a signalFriedemann Kleint2021-06-161-0/+60
Pick-to: 6.1 Task-number: PYSIDE-1482 Change-Id: Ifb9061af1828e7348de3ad5407c830aeb7d4f386 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>