diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-11-21 13:49:16 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-12-15 13:10:45 +0100 |
| commit | 50da297262a94e65aae91cf75d2ee4796db464f6 (patch) | |
| tree | 9d07b7ace256647f9259f07a5f00b050b832e7bd /sources/pyside6/libpyside/pysideproperty.h | |
| parent | 1c58d2f1f57926ee18fc7a140947197f1e48aab2 (diff) | |
libpyside: Enable passing a PySidePropertyPrivate instance when creating properties
Pass the instance as a capsule in the keyword arguments using
a special, reserved keyword.
For use by Python bridges list properties.
Amends d5a52173d34137ed3ac7ceb3e91bb6dcc20b75a7
Change-Id: I5f128f491bfed2c7068dbf31ba193366130f438d
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/pysideproperty.h')
| -rw-r--r-- | sources/pyside6/libpyside/pysideproperty.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/pyside6/libpyside/pysideproperty.h b/sources/pyside6/libpyside/pysideproperty.h index 897da6ac2..90c40e174 100644 --- a/sources/pyside6/libpyside/pysideproperty.h +++ b/sources/pyside6/libpyside/pysideproperty.h @@ -70,11 +70,13 @@ PYSIDE_API void setTypeName(PySideProperty *self, const char *typeName); /// Create a property from type, getter, setter and notification signature. PYSIDE_API PyObject *create(const char *typeName, PyObject *getter, - PyObject *setter, PyObject *notifySignature); + PyObject *setter, PyObject *notifySignature, + PySidePropertyPrivate *data = nullptr); /// Create a property from type, getter, optional setter and notification signature. PYSIDE_API PyObject *create(const char *typeName, PyObject *getter, PyObject *setter = nullptr, - const char *notifySignature = nullptr); + const char *notifySignature = nullptr, + PySidePropertyPrivate *data = nullptr); } //namespace PySide::Property |
