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
fc331f37e3
commit
78e120ec02
3 changed files with 79 additions and 126 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue