diff options
| author | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-09-08 13:59:15 +0200 |
|---|---|---|
| committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-09-08 14:46:56 +0000 |
| commit | 2a37ff2f49140272d0122ccc097cc14c2fa4133e (patch) | |
| tree | aad50ea7656ace0e45116b359c11f4d25ebc736c /src/quickcontrolstestutils/controlstestutils.cpp | |
| parent | c1b198e013b790b354a433d369ec1a7329455fa9 (diff) | |
Fix alias to inline component type
When we create an alias property, we resolve its targets metatype. In
the case of inline components of the same file, that's however not
possible via QQmlType, as the type will only be available once the outer
type has been fully set up.
Fix this by looking up the type in the ExecutableCompilationUnit, where
the information is available while the type registraiton process is still
ongoing.
As a drive-by, also set the alias flag correctly when constructing the
QMetaObject of a QML element.
Pick-to: 6.2 6.3 6.4
Fixes: QTBUG-106392
Change-Id: Ie8f55dd0894cc5c8d683dd3c685980878956d3ca
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quickcontrolstestutils/controlstestutils.cpp')
0 files changed, 0 insertions, 0 deletions
