From 7b2025f542729b0c407519d2cb45688dd402eed7 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 11 Sep 2018 14:26:09 +0200 Subject: shiboken: Refactor Generator::minimalConstructor(AbstractMetaClass) Add some convenience functions returning the status of default expressions to AbstractMetaArgument. Rewrite the function to only insert suitable candidates into an ordered multimap instead of looping twice over all candidates. This unearthed a bug in the old algorithm trying to find the maximum number of arguments: When no candidates were found, maxArgs was left at 0, which caused it to assume default constructible. This triggered for the QMatrixNxN classes inheriting QGenericMatrix with (unsupported) non-type template parameters. For these, the default constructor needs to be specified now. Task-number: PYSIDE-62 Change-Id: I5ce2bed43001780553048d8af0addaba2b22410b Reviewed-by: Christian Tismer Reviewed-by: Qt CI Bot --- .../pyside2/PySide2/QtGui/typesystem_gui_common.xml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml') diff --git a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml index 665750946..24ee2985f 100644 --- a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml +++ b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml @@ -2380,7 +2380,10 @@ - + + @@ -2468,7 +2471,7 @@ - + @@ -2538,7 +2541,7 @@ - + @@ -2608,7 +2611,7 @@ - + @@ -2678,7 +2681,7 @@ - + @@ -2748,7 +2751,7 @@ - + @@ -2818,7 +2821,7 @@ - + @@ -2888,7 +2891,7 @@ - + @@ -2958,7 +2961,7 @@ - +