Add support for extension into PySide properties.

This is used by PySide implementation of QDeclarativeListProperty.
This commit is contained in:
Hugo Parente Lima 2010-12-08 15:06:52 -02:00
commit b4d1a3a4b6
6 changed files with 109 additions and 55 deletions

View file

@ -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