diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2019-12-11 10:54:57 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-01-03 10:59:37 +0100 |
commit | 8669b8e60fc6a46baaeeea264a1ed3008dd52ea2 (patch) | |
tree | 9dc6e778f8dee54e455e6981bb580ef1a6476a3a /src/tools/uic/shared/language.h | |
parent | 1e89c132e1280276e1d3a82ec3464afec8c14c3a (diff) |
QVariant: Prefer direct conversion to QVariant{List,Map,Hash}
If a type has both a converter to QVariantList and to
QSequentialIterableImpl registered, we would have chosen the
QSequentialIterableImpl version. In the case of types like QJSValue,
this is more costly. With this change we therefore uses the direct
conversion if it has been registered.
The same applies to QAssociativeIterableImpl and
QVariantHash/QVariantMap.
Change-Id: I9c0b5068efe4bfbc5e0598a200e6db59201e9974
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/tools/uic/shared/language.h')
0 files changed, 0 insertions, 0 deletions