aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/dynamicqmetaobject.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-07-08 10:57:41 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-07-09 10:30:45 +0200
commit277bb19bad0855839d16920ff6a6142d6e135f51 (patch)
tree64fdc67bde5511e21426a5b3f0b7e6389933d2f6 /sources/pyside6/libpyside/dynamicqmetaobject.h
parente3b159b241b452ceb1013fd9aebe0d9a25a64ed9 (diff)
libpyside: Pass MetaObjectBuilder signature as QByteArray
Change the MetaObjectBuilder::addSlot()/addSignal() functions to use a QByteArray since the underlying QMetaObjectBuilder takes QByteArray, too. Split SignalManager::registerMetaMethodGetIndex() into overloads for const char * (for the signal code path) and QByteArray (for the slot code path). Task-number: PYSIDE-2810 Change-Id: Ie79ea071a8cc111d45248c7086cf6fda34a7548f Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/dynamicqmetaobject.h')
-rw-r--r--sources/pyside6/libpyside/dynamicqmetaobject.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/pyside6/libpyside/dynamicqmetaobject.h b/sources/pyside6/libpyside/dynamicqmetaobject.h
index dd33f65f7..4ea5351c4 100644
--- a/sources/pyside6/libpyside/dynamicqmetaobject.h
+++ b/sources/pyside6/libpyside/dynamicqmetaobject.h
@@ -31,9 +31,9 @@ public:
int indexOfMethod(QMetaMethod::MethodType mtype, const QByteArray &signature) const;
int indexOfProperty(const QByteArray &name) const;
- int addSlot(const char *signature);
- int addSlot(const char *signature, const char *type);
- int addSignal(const char *signature);
+ int addSlot(const QByteArray &signature);
+ int addSlot(const QByteArray &signature, const QByteArray &type);
+ int addSignal(const QByteArray &signature);
void removeMethod(QMetaMethod::MethodType mtype, int index);
int addProperty(const char *property, PyObject *data);
void addInfo(const char *key, const char *value);