aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pysideslot_p.h
Commit message (Collapse)AuthorAgeFilesLines
* libpyside: Implement QMetaMethod::tags() for @SlotFriedemann Kleint2023-10-171-0/+1
| | | | | | | | | | | | | Tags can be used like annotations and are for example used in the DBus module. [ChangeLog][PySide6] An optional parameter "tag" has been added to @Slot, allowing to set QMetaMethod.tag(). Pick-to: 6.6 Fixes: PYSIDE-748 Change-Id: I62bef6179917307471cb72491ac3d05970572f3f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* libpyside: Refactor passing slot data between @Slot and MetaObjectBuilderFriedemann Kleint2023-09-051-4/+19
| | | | | | | | | | | | | | | The slot data required for MetaObjectBuilder were stored in a PyList set as an attribute on a method. This required concatenating return type and signature, converting the resulting string to CPython in the @Slot code and converting it back to QByteArray in MetaObjectBuilder. To simplify this, introduce a small C++ struct storing the QByteArrays and store a list of them as a PyCapsule (encapsulating a void *ptr) which is used as the attribute value. Task-number: PYSIDE-748 Change-Id: I7f4075f5e828fe543d01e5dfbdc7087905cd004f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* libpyside: Use a static string for the slot attribute attached to methodsFriedemann Kleint2023-08-301-1/+0
| | | | | | Task-number: PYSIDE-748 Change-Id: Ieeeb2c1c392706a5c74bf29ff67ff4ddd8c4feaa Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@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>
* Rename PySide2 to PySide6Friedemann Kleint2020-11-021-0/+49
Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I845f7b006e9ad274fed5444ec4c1f9dbe176ff88 Reviewed-by: Christian Tismer <tismer@stackless.com>