aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2018-01-30 09:47:06 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2018-01-31 08:07:41 +0000
commit406ef45aaa3e84eb402a451eb4900afa17d20ea9 (patch)
treeb60d76c4bb6516857d48d8e00244825cc31f91dc /tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
parenteec58534ab9c3fae74a1b4cb0861d4b40253cd2d (diff)
Fix exposure of -1 as enum value in QML exposed C++ singletons
When a C++ singleton has an enum with the value -1, we would expose that value correctly when taking the accelerated property access code path in the optimizer, but when going through the slower QQmlTypeWrapper we would return undefined. This turned out to be a silly logic error that assumed that -1 is not a valid value for an enum and instead indicates an enum value not present. [ChangeLog][Qml] Fix -1 as enum value in QML exposed C++ singletons showing up as undefined. Task-number: QTBUG-66067 Change-Id: Ib66dad7a4b59822b2c40ad6bd9af4b72469582e9 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp')
0 files changed, 0 insertions, 0 deletions