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:
parent
143ae88746
commit
ad58b05c54
3 changed files with 79 additions and 126 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue