Add support for extension into PySide properties.
This is used by PySide implementation of QDeclarativeListProperty.
This commit is contained in:
parent
e76fffc617
commit
b4d1a3a4b6
6 changed files with 109 additions and 55 deletions
|
|
@ -41,6 +41,9 @@ extern "C"
|
|||
|
||||
namespace PySide { namespace Property {
|
||||
|
||||
typedef void (*MetaCallHandler)(PySideProperty*,PyObject*,QMetaObject::Call, void**);
|
||||
|
||||
|
||||
PYSIDE_API bool isPropertyType(PyObject* pyObj);
|
||||
|
||||
/**
|
||||
|
|
@ -82,6 +85,13 @@ PYSIDE_API const char* getNotifyName(PySideProperty* self);
|
|||
**/
|
||||
PYSIDE_API PySideProperty* getObject(PyObject* source, PyObject* name);
|
||||
|
||||
PYSIDE_API void setMetaCallHandler(PySideProperty* self, MetaCallHandler handler);
|
||||
|
||||
PYSIDE_API void setTypeName(PySideProperty* self, const char* typeName);
|
||||
|
||||
PYSIDE_API void setUserData(PySideProperty* self, void* data);
|
||||
PYSIDE_API void* userData(PySideProperty* self);
|
||||
|
||||
} //namespace Property
|
||||
} //namespace PySide
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue