diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-07-18 14:38:50 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-07-19 10:02:03 +0200 |
commit | e814ff1e86bcb2824c384e88bffc263aa381df9a (patch) | |
tree | 627c816944697aa9376b3c810b78a7a53bf6bf96 /tests/auto/qml/qqmllanguage/data/TypeWithEnum.qml | |
parent | 0923817ddadd35e43bc09449436e282f834d566f (diff) |
QML: Support negative values in enums
[ChangeLog][QML] It is now possible to use negative integers as values
for QML enum declarations.
Change-Id: I321ad45ab41d5ef23d37d202a384d40e2e1e239d
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/TypeWithEnum.qml')
-rw-r--r-- | tests/auto/qml/qqmllanguage/data/TypeWithEnum.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/TypeWithEnum.qml b/tests/auto/qml/qqmllanguage/data/TypeWithEnum.qml index c6788f787a..e0072fe159 100644 --- a/tests/auto/qml/qqmllanguage/data/TypeWithEnum.qml +++ b/tests/auto/qml/qqmllanguage/data/TypeWithEnum.qml @@ -12,7 +12,8 @@ QtObject { OtherEnumValue2, OtherEnumValue3 = 24, OtherEnumValue4, - OtherEnumValue5 = 1 + OtherEnumValue5 = 1, + OtherEnumValue6 = -42 } property int enumValue: TypeWithEnum.EnumValue2 @@ -25,4 +26,5 @@ QtObject { property int otherEnumValue3: TypeWithEnum.OtherEnumValue3 property int otherEnumValue4: TypeWithEnum.OtherEnumValue4 property int otherEnumValue5: TypeWithEnum.OtherEnumValue5 + property int otherEnumValue6: TypeWithEnum.OtherEnumValue6 } |