aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/enumProperty.h
Commit message (Collapse)AuthorAgeFilesLines
* QmlCompiler: Use int for flag-type enumsUlf Hermann2023-06-231-0/+47
| | | | | | | | | | The isFlag flag overrides the underlying type as the resulting type is then a QFlags. Pick-to: 6.6 Fixes: QTBUG-114815 Change-Id: I9cc3b260a280b784fc8af38fafbc9ffbd7ca3453 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* QmlCompiler: Do not crash when converting number literals to enumsUlf Hermann2023-05-041-2/+22
| | | | | | | Amends commit 2a21efb5f7a6cac6f6101f2f42fe38f16dc68149. Change-Id: Id7d739b58c723eed9f165951b51ee2e5e55d7fe2 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
* Fix comparison AOT-lookup and intended type in value typesSemih Yavuz2022-12-051-0/+34
We currently force the lookup metatype to be exactly the same data type with the caller's. As a result, the conversion from enum to integral data type is not recognized. Relax this comparison by using isTypeCompatible helper. Pick-to: 6.4 Fixes: QTBUG-109007 Change-Id: I188dc3e6c1fd7100e9ed5c4ba5d0c90d85d79be4 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>