aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pysideslot_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/libpyside/pysideslot_p.h')
-rw-r--r--sources/pyside6/libpyside/pysideslot_p.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/sources/pyside6/libpyside/pysideslot_p.h b/sources/pyside6/libpyside/pysideslot_p.h
index 695b7935c..9852301ee 100644
--- a/sources/pyside6/libpyside/pysideslot_p.h
+++ b/sources/pyside6/libpyside/pysideslot_p.h
@@ -4,10 +4,25 @@
#define PYSIDE_SLOT_P_H
#include <sbkpython.h>
-#define PYSIDE_SLOT_LIST_ATTR "_slots"
-namespace PySide { namespace Slot {
- void init(PyObject* module);
-}}
+#include <QtCore/qbytearray.h>
+#include <QtCore/qlist.h>
-#endif
+namespace PySide::Slot {
+
+struct Data {
+ QByteArray signature;
+ QByteArray resultType;
+ QByteArray tag; // QMetaMethod::tag()
+};
+
+// This list is set as an attribute named PySide::PySideMagicName::slot_list_attr()
+// by the decorator for usage by MetaObjectBuilder.
+using DataList = QList<Data>;
+
+DataList *dataListFromCapsule(PyObject *capsule);
+
+void init(PyObject* module);
+} // namespace PySide::Slot
+
+#endif // PYSIDE_SLOT_P_H