aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/bic
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-02-08 16:53:58 +0100
committerUlf Hermann <ulf.hermann@qt.io>2017-02-08 16:36:55 +0000
commitfedcd26ce80451e113b963d09cad97a3d21e4ab8 (patch)
treea9deacd2a0709e02b4ad221f361bd3c9dbd43417 /tests/auto/bic
parentade0ed7fa9ad06a1dc1312e7abad8baf20f7b756 (diff)
Use QQmlType for looking up enums, even on singletons
QQmlType has more information than the bare QMetaType. The optimizer already uses it for looking up enums, so some code would behave differently, depending on whether the optimizer was enabled or not. In some cases we cannot use QQmlType for lookup of enums because QQmlType might have been created with only a callback. The object only shows up later in that case. Then the only thing we can do is query the metatype. We can test this by adding an eval() because eval() disables optimization for the surrounding code. Task-number: QTBUG-58394 Change-Id: I8c90591b19fe1ed3e5339d877f9e6ec7c6f9aa73 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/bic')
0 files changed, 0 insertions, 0 deletions