Fix bug 926 - "qmlRegisterType does not work with QObject"

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Lauro Neto <lauro.neto@openbossa.org>
This commit is contained in:
Hugo Parente Lima 2011-07-20 10:41:31 -03:00
commit e37426c8c4
7 changed files with 119 additions and 32 deletions

View file

@ -77,9 +77,14 @@ template<typename T>
struct initQtMetaType<T, false> {
};
/// \deprecated
PYSIDE_API void initDynamicMetaObject(SbkObjectType* type, const QMetaObject* base);
PYSIDE_API void initDynamicMetaObject(SbkObjectType* type, const QMetaObject* base, const std::size_t& cppObjSize);
PYSIDE_API void initQObjectSubType(SbkObjectType* type, PyObject* args, PyObject* kwds);
/// Return the size in bytes of a type that inherits QObject.
PYSIDE_API std::size_t getSizeOfQObject(SbkObjectType* type);
typedef void (*CleanupFunction)(void);
/**
@ -110,6 +115,9 @@ PYSIDE_API PyObject* getMetaDataFromQObject(QObject* cppSelf, PyObject* self, Py
*/
PYSIDE_API bool inherits(PyTypeObject* self, const char* class_name);
PYSIDE_API void* nextQObjectMemoryAddr();
PYSIDE_API void setNextQObjectMemoryAddr(void* addr);
} //namespace PySide