diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-12-12 14:37:46 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-01-21 08:40:27 +0000 |
commit | 9d0ce63d3297bbc1ecfb29b26ffafa80d6a28fb0 (patch) | |
tree | 5b5bc20c10988727a97c9cfbfa736a2f3a8200b7 /tests/auto | |
parent | 37468f383c3fd6f16714ea8861c4632ed855bde0 (diff) |
QML: Consider all possible metatypes when looking for attached props
metaObjectToType is in fact a MultiHash. There can be more than one QML
type associated with a given metaobject. Therefore, in order to find the
attached properties we need to iterate them.
This highlights a different problem: If you register the same metaobject
under different QML names and define different attached properties for
each, you will get random results here. That, however, is a problem of
the public qmlAttachedPropertiesObject function, which doesn't take a
parameter for the registered name of the type.
Change-Id: I0eb9618114029ef5000d8eb12691b7f8de485121
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions