diff options
author | Andrei Golubev <[email protected]> | 2022-06-08 12:33:14 +0200 |
---|---|---|
committer | Andrei Golubev <[email protected]> | 2022-06-09 16:22:22 +0200 |
commit | d28f088371befbe5b50fed37e41025afa7b72c0c (patch) | |
tree | 6850b2af2f7801a0839c1ef924280aae0d4ec2d3 /tools/qmltc/main.cpp | |
parent | fa6074f654281920980bd529ca6537e96058a6a5 (diff) |
Remember QML document context in each qmltc-generated object
There is an apparent problem in certain cases where using outer context
to fetch ids is invalid: the outer context is the *outermost* context,
meaning that if a type has a derived type in another QML document,
the derived type would place its own context as a QQmlData::outerContext
As a simpler solution, just remember the document's context in all the
objects within this document. This automatically works in derived types
since they appear in other documents with separate contexts
Pick-to: 6.4
Fixes: QTBUG-103956
Change-Id: I29420ff4962b485502d87b2d2ac2f89b9e0f5736
Reviewed-by: Ulf Hermann <[email protected]>
Reviewed-by: Sami Shalayel <[email protected]>
Diffstat (limited to 'tools/qmltc/main.cpp')
0 files changed, 0 insertions, 0 deletions