diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-11-24 17:31:10 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-11-29 08:56:12 +0100 |
commit | 51636b43d90bc29996f3bbd8372f333eb1a321d0 (patch) | |
tree | 8157d035daa530d9494dd558f606591eeb88e904 /sources/shiboken6/tests/dumpcodemodel | |
parent | daf77773a72980a369ba6aabcb8cf1ca835bbbe7 (diff) |
Enable connecting signals to slots with default parameters
Find the number of default parameters using PyFunction_GetDefaults()
and change the argCount() helper to return the min/max argument count.
With that, try to match the slot using the most argument.
[ChangeLog][PySide6] It is now possible to connect signals to
slots/lambdas with more arguments provided they have default
parameters.
Fixes: PYSIDE-2524
Change-Id: I134d33e3ee78b62689fa36887a9acd41951c02e1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/shiboken6/tests/dumpcodemodel')
0 files changed, 0 insertions, 0 deletions