Uses QMetaObject revision 3.

This allow to register signal and slot in any order.

Fixes bug #312

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
This commit is contained in:
Renato Filho 2011-05-10 16:42:32 -03:00 • committed by Hugo Parente Lima
commit ad58b05c54
3 changed files with 79 additions and 126 deletions

View file

@ -26,6 +26,7 @@
#include "pysidemacros.h"
#include <Python.h>
#include <QMetaObject>
#include <QMetaMethod>
namespace PySide
{
@ -36,6 +37,9 @@ public:
DynamicQMetaObject(const char* className, const QMetaObject* metaObject);
~DynamicQMetaObject();
void addMethod(QMetaMethod::MethodType mtype, const char* signature, const char* type);
void removeMethod(QMetaMethod::MethodType mtype, uint index);
void addSignal(const char* signal, const char* type = 0);
void addSlot(const char* slot, const char* type = 0);
void addProperty(const char* property, PyObject* data);