aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-05-14 13:17:45 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-05-14 13:53:47 +0000
commit486e3ebedc485c9f9c7742f51c96d7e9a96ba935 (patch)
tree7818bc374153e442d892a8605e7cf55af0c4122d /sources/pyside2/PySide2
parente0205cc7ebc4383f84b2fc05cabe9e6bf5f737e3 (diff)
ShibokenGenerator::buildAbstractMetaTypeFromString(): Handle QFlags
The function would fail for a QFlags type defined in a dependent typesystem file with errors like: Can't write the C++ to Python conversion function for container type 'QPair': Could not find type '::QFlags<QAccessible::RelationFlag>' for use in 'toPython' conversion. for example caused by QAccessibleWidget::relation() where the flag is defined in class QAccessible in QtGui. The underlying reason is that there is no type entry for the class QFlags. To work around this, detect it by looking at the instantiated types and create a flags type accordingly. Task-number: PYSIDE-487 Change-Id: Ib3c962aeedf8deb1a6b11976bd91316d39738310 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/pyside2/PySide2')
0 files changed, 0 insertions, 0 deletions