aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside/dynamicqmetaobject.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-05-12 17:21:19 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-05-17 19:53:26 -0300
commitfde014f5db8f35727585e4402849ef565987c63a (patch)
treeb1e01f16ab127948d8548a08993da9e2664374dd /libpyside/dynamicqmetaobject.h
parentac217286e20644cd2519cde6c2588761b6a39cd6 (diff)
Implemented support to slot decoration.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libpyside/dynamicqmetaobject.h')
-rw-r--r--libpyside/dynamicqmetaobject.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpyside/dynamicqmetaobject.h b/libpyside/dynamicqmetaobject.h
index d6f6e9be5..9336b63ac 100644
--- a/libpyside/dynamicqmetaobject.h
+++ b/libpyside/dynamicqmetaobject.h
@@ -36,10 +36,13 @@
#define DYNAMICQMETAOBJECT_H
#include "pysidemacros.h"
+#include <Python.h>
#include <QMetaObject>
#include <QLinkedList>
#include <QByteArray>
+#define PYSIDE_SLOT_LIST_ATTR "_slots"
+
class QObject;
namespace PySide
@@ -57,6 +60,9 @@ public:
void removeSignal(uint idex);
void removeSlot(uint index);
+ //Retrieve Python metadata to create QMetaObject (class name, signals, slot)
+ static DynamicQMetaObject *createBasedOn(PyTypeObject *obj, const QMetaObject* base);
+
private:
QLinkedList<QByteArray> m_signals;
QLinkedList<QByteArray> m_slots;