qtdeclarative/tests/auto/qml/qmltc
Andrei Golubev d28f088371 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 <ulf.hermann@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2022-06-09 16:22:22 +02:00
..
QmltcTests Remember QML document context in each qmltc-generated object 2022-06-09 16:22:22 +02:00
BLACKLIST Blacklist tst_qmltc::listView on Android 2022-04-26 16:39:08 +02:00
CMakeLists.txt Rename tst_qmltc_{no}diskcache data folder to QmltcTests 2022-06-03 08:46:10 +02:00
nameconflict.cpp
nameconflict.h
tst_qmltc.cpp Remember QML document context in each qmltc-generated object 2022-06-09 16:22:22 +02:00
tst_qmltc.h Remember QML document context in each qmltc-generated object 2022-06-09 16:22:22 +02:00