diff options
author | Dmitrii Akshintsev <dmitrii.akshintsev@qt.io> | 2024-01-08 17:52:18 +0100 |
---|---|---|
committer | Dmitrii Akshintsev <dmitrii.akshintsev@qt.io> | 2024-01-18 18:46:18 +0100 |
commit | 3805424abc7f61c3c3643d143d0cb8fdefbc5269 (patch) | |
tree | 72b51ec38563e367241c048b03a76789af5306a9 /tests/manual | |
parent | 3fb693d7dad9070d7c574fc320b35e5ca6a5d2c7 (diff) |
DOM refactoring. Move loadPendingDependencies to DomEnvironment
One of the goals of this refactoring is to move DomTop specific
functionality from DomItem API to the corresponding DomEnvironment
and DomUniverse.
This commit moves loading of the dependencies (which are added to
the pending load queue implicitly as part of the callbacks of the
loadFile when DomEnv is created without the flag "NoDependencies") to
the DomEnvironment interface
Moreover, once work with dependencies is happening through the
DomEnvironment explicitly, it allows us to get rid of "self"
parameter.
Task-number: QTBUG-119550
Change-Id: Ib3deb97eabe091ffded8c8c782ee08f8024468f2
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/qmldom/qmldomloadeditwrite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/qmldom/qmldomloadeditwrite.cpp b/tests/manual/qmldom/qmldomloadeditwrite.cpp index 7f153880a2..da81439569 100644 --- a/tests/manual/qmldom/qmldomloadeditwrite.cpp +++ b/tests/manual/qmldom/qmldomloadeditwrite.cpp @@ -55,7 +55,7 @@ int main() LoadOption::DefaultLoad); // trigger the load - env.loadPendingDependencies(); + envPtr->loadPendingDependencies(); // # Read only API: DomItem is a generic pointer for read only access to Dom Itmes :) { |