diff options
author | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2018-03-29 14:35:28 +0200 |
---|---|---|
committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2018-04-19 18:45:06 +0000 |
commit | 67d6c85a9dc17fe68ab399e14da73d10a1f9a351 (patch) | |
tree | 76e0ecb7cd2693fddb5d673b331331621e6430b8 /sources/pyside2/PySide2/QtMultimedia | |
parent | c18e1958334aa2e1c40e87097dade6f103e4ddf1 (diff) |
Check default superclass when getting baseClasses
Reimplementing a class must respect the closest
base class instead of falling back to QObject.
By adding a default-superclass argument one can
verify that field first when shiboken is getting
the base classes.
This problem was found by reimplementing
QGraphicsObject including methods from one of its parent
classes, QGraphicsItem.
With this change, the generated wrapper will list all the
base classes in `Sbk_QGraphicsObject_Type_bases` leaving
QObject at the end, because if not, it will match
inmediately.
A test case was included.
This change doesn't affect other existing tests.
Task-number: PYSIDE-86
Change-Id: I6b9a220497b12c8085302a502f8581cc2d3fb11b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/PySide2/QtMultimedia')
0 files changed, 0 insertions, 0 deletions