Set the object meta object at the declaration time, not instanciation time.

This commit is contained in:
Hugo Parente Lima 2010-12-03 17:04:37 -02:00
commit 12bc3f5c12
4 changed files with 96 additions and 62 deletions

View file

@ -29,6 +29,8 @@
#include <QHash>
#include <QList>
class SbkObjectType;
namespace PySide
{
@ -75,6 +77,8 @@ template<typename T>
struct initQtMetaType<T, false> {
};
PYSIDE_API void initDynamicMetaObject(SbkObjectType* type, const QMetaObject* base);
PYSIDE_API void initQObjectSubType(SbkObjectType* type, PyObject* args, PyObject* kwds);
typedef void (*CleanupFunction)(void);