diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-05-10 16:42:32 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:20 -0300 |
commit | ad58b05c54c3f9d2646d8440c098d98931304f8e (patch) | |
tree | a4f03f7e91fec00d013d21437ae24b5a90407520 /libpyside/dynamicqmetaobject.h | |
parent | 143ae88746d80f39140d915b44b8049c201b2775 (diff) |
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>
Diffstat (limited to 'libpyside/dynamicqmetaobject.h')
-rw-r--r-- | libpyside/dynamicqmetaobject.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpyside/dynamicqmetaobject.h b/libpyside/dynamicqmetaobject.h index 7f64a6cf9..2efeef165 100644 --- a/libpyside/dynamicqmetaobject.h +++ b/libpyside/dynamicqmetaobject.h @@ -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); |