Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | QQmlListReference: Calculate element metatype lazily | Ulf Hermann | 2021-03-17 | 1 | -0/+5 |
The calculation is expensive and only needed when inserting elements. Realize that QQmlMetaType::listType() can never return -1 and remove the respective early abort conditions. Furthermore, guard against nullptr element types when inserting. Those would otherwise crash in canConvert(). Change-Id: Ifaa9d7df1bf8ac372074d25554ec02944d3e3bff Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> |