aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest/testobject.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-03-13 09:56:38 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-03-18 11:43:07 +0100
commit02838733a868e8898cc8218a6a877ed52fe5a3e9 (patch)
treed6f38f134404268740f91b25d0a67c17aa974067 /sources/pyside6/tests/pysidetest/testobject.cpp
parent9141f75965d3a7b03f831193ed1f4094aff28574 (diff)
shiboken6: Register typedefs of container types
For signals like QRemoteObjectRegistry.remoteObjectAdded(QRemoteObjectSourceLocation) where using QRemoteObjectSourceLocation = std::pair<QString,QRemoteObjectSourceLocationInfo> one needed to specify the fully qualified C++ name in @Slot() for the metaobject system to work and the shiboken converter to be found. Record the typedefs and register the container converters under the typedef name, too. Fixes: PYSIDE-2633 Change-Id: Ifc62f096277949a507957a0466adb47d082695c7 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/pyside6/tests/pysidetest/testobject.cpp')
-rw-r--r--sources/pyside6/tests/pysidetest/testobject.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside6/tests/pysidetest/testobject.cpp b/sources/pyside6/tests/pysidetest/testobject.cpp
index 295945a86..fe4ec98f7 100644
--- a/sources/pyside6/tests/pysidetest/testobject.cpp
+++ b/sources/pyside6/tests/pysidetest/testobject.cpp
@@ -30,6 +30,11 @@ void TestObject::emitSignalWithTypedefValue(int value)
emit signalWithTypedefValue(TypedefValue(value));
}
+void TestObject::emitSignalWithContainerTypedefValue(const IntList &il)
+{
+ emit signalWithContainerTypedefValue(il);
+}
+
void TestObject::emitFlagsSignal(Qt::Alignment alignment)
{
emit flagsSignal(alignment);