diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-07-20 10:41:31 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:37 -0300 |
commit | e37426c8c4a1f041c2f4b9c0f560751aa4b9a924 (patch) | |
tree | cbcd4d631282a8cc7818cb4674bae6227a603c87 /libpyside/pyside.h | |
parent | 8ec69343969dd1ef767d9c8d38ce49d4280e5d4c (diff) |
Fix bug 926 - "qmlRegisterType does not work with QObject"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
Diffstat (limited to 'libpyside/pyside.h')
-rw-r--r-- | libpyside/pyside.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libpyside/pyside.h b/libpyside/pyside.h index 747b08da8..3ef7d3881 100644 --- a/libpyside/pyside.h +++ b/libpyside/pyside.h @@ -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 |