We have a nice Dynamic MetaObject! Yay!

Python signals and slots are like C++ signals and slots to Qt :-)
This commit is contained in:
Hugo Lima 2009-12-16 21:10:15 -02:00
commit 9e1a1ec8a7
9 changed files with 275 additions and 32 deletions

View file

@ -54,7 +54,8 @@ public:
bool connect(QObject* source, const char* signal, PyObject* callback, Qt::ConnectionType type = Qt::AutoConnection);
bool connect(QObject* source, const char* signal, QObject* receiver, const char* slot, Qt::ConnectionType type = Qt::AutoConnection);
bool emitSignal(QObject* source, const char* signal, PyObject* args);
void removeProxySlot(QObject* signalSource);
void removeProxySlot(const QObject* signalSource);
const QMetaObject* getMetaObject(const QObject* object) const;
private:
struct SignalManagerPrivate;
SignalManagerPrivate* m_d;