diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-01-18 12:13:23 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-01-18 13:20:12 +0100 |
commit | 65b88e61a5a67a0377b375b444fa4fb2a4c9f2b5 (patch) | |
tree | f16b86fb6edf20aa21a5e8eaef8222d498782f59 /tests/auto/qml/qmltyperegistrar | |
parent | 831efa14e91cfa358e57a32197578d41c2ae1b24 (diff) |
QML engine: Fix writing function to property through alias
We special case writing functions to properties, only allowing assigning
them to var properties and QJSValue properties.
This would however break when aliases are involved. This commit fixes
the issue by resolving the alias, and then checking and writing to the
resolved property.
Fixes: QTBUG-90373
Pick-to: 5.15 6.0
Change-Id: Ia09ebe92feeaf8359c99ff9aeadc676b9fcfaa07
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmltyperegistrar')
0 files changed, 0 insertions, 0 deletions