aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2019-01-08 09:50:05 +0100
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2019-01-11 14:59:36 +0000
commit8b6fbbac601b78f0c0413218ec5d48c60bc014ed (patch)
tree01354b356d871c9a90e5a9a7f71436351bd6b69c /testing
parentf93dfa8af3f4e7b1f3b84e68ecea21343dc36781 (diff)
Improve check when a QFlag<Enum> is found
For the case of the method `addAxis` in the QPolarChart class, the generated code evaluates first the inherited method: QChart::addAxis(QtCharts::QAbstractAxis*,QFlags<Qt::AlignmentFlag>) instead of the same class method: QPolarChart::addAxis(QtCharts::QAbstractAxis*,QtCharts::QPolarChart::PolarOrientation) The condition to check if an argument was a `QFlags<Qt::AlignmentFlag>`, was just `PyNumber_Check(...)`, which was too broad, and then any Enum would pass that condition. The change was to include an additional condition to check the type of the EnumType that was passed as argument. Change-Id: I2eebb6f05c097d170a6d61633698444f03f20b02 Fixes: PYSIDE-898 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'testing')
0 files changed, 0 insertions, 0 deletions