diff options
Diffstat (limited to 'sources/pyside6/libpyside/pysideproperty.h')
| -rw-r--r-- | sources/pyside6/libpyside/pysideproperty.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sources/pyside6/libpyside/pysideproperty.h b/sources/pyside6/libpyside/pysideproperty.h index 897da6ac2..c2ce006a9 100644 --- a/sources/pyside6/libpyside/pysideproperty.h +++ b/sources/pyside6/libpyside/pysideproperty.h @@ -10,7 +10,7 @@ #include <QtCore/qmetaobject.h> -class PySidePropertyPrivate; +class PySidePropertyBase; extern "C" { @@ -19,7 +19,7 @@ extern "C" struct PYSIDE_API PySideProperty { PyObject_HEAD - PySidePropertyPrivate* d; + PySidePropertyBase* d; }; }; @@ -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, + PySidePropertyBase *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, + PySidePropertyBase *data = nullptr); } //namespace PySide::Property |
