aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside/dynamicqmetaobject_p.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-05-10 16:42:32 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:20 -0300
commitad58b05c54c3f9d2646d8440c098d98931304f8e (patch)
treea4f03f7e91fec00d013d21437ae24b5a90407520 /libpyside/dynamicqmetaobject_p.h
parent143ae88746d80f39140d915b44b8049c201b2775 (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_p.h')
-rw-r--r--libpyside/dynamicqmetaobject_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpyside/dynamicqmetaobject_p.h b/libpyside/dynamicqmetaobject_p.h
index c8c45a1ab..d8a2b6f0d 100644
--- a/libpyside/dynamicqmetaobject_p.h
+++ b/libpyside/dynamicqmetaobject_p.h
@@ -25,6 +25,7 @@
#include <Python.h>
#include <QByteArray>
+#include <QMetaMethod>
#define GLOBAL_RECEIVER_CLASS_NAME "__GlobalReceiver__"
@@ -39,17 +40,18 @@ namespace PySide
* \param signature method signature
* \param type method return type
*/
- MethodData(const char* signature, const char* type = 0);
+ MethodData(QMetaMethod::MethodType mtype, const char* signature, const char* type = 0);
void clear();
bool isValid() const;
QByteArray signature() const;
QByteArray type() const;
+ QMetaMethod::MethodType methodType() const;
bool operator==(const MethodData& other) const;
- bool operator==(const char* other) const;
private:
QByteArray m_signature;
QByteArray m_type;
+ QMetaMethod::MethodType m_mtype;
static const QByteArray m_emptySig;
};