OpenCoverage

qqmlincubator.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlincubator.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtQml module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qqmlincubator.h"-
41#include "qqmlcomponent.h"-
42#include "qqmlincubator_p.h"-
43-
44#include "qqmlexpression_p.h"-
45#include "qqmlmemoryprofiler_p.h"-
46#include "qqmlobjectcreator_p.h"-
47-
48void QQmlEnginePrivate::incubate(QQmlIncubator &i, QQmlContextData *forContext)-
49{-
50 QExplicitlySharedDataPointer<QQmlIncubatorPrivate> p(i.d);-
51-
52 QQmlIncubator::IncubationMode mode = i.incubationMode();-
53-
54 if (!incubationController)
!incubationControllerDescription
TRUEevaluated 2836 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 85975 times by 23 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
2836-85975
55 mode = QQmlIncubator::Synchronous;
executed 2836 times by 19 tests: mode = QQmlIncubator::Synchronous;
Executed by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2836
56-
57 if (mode == QQmlIncubator::AsynchronousIfNested) {
mode == QQmlIn...ronousIfNestedDescription
TRUEevaluated 75583 times by 22 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 13228 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
13228-75583
58 mode = QQmlIncubator::Synchronous;-
59-
60 // Need to find the first constructing context and see if it is asynchronous-
61 QExplicitlySharedDataPointer<QQmlIncubatorPrivate> parentIncubator;-
62 QQmlContextData *cctxt = forContext;-
63 while (cctxt) {
cctxtDescription
TRUEevaluated 151294 times by 22 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 75413 times by 21 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmlincubator
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
75413-151294
64 if (cctxt->incubator) {
cctxt->incubatorDescription
TRUEevaluated 170 times by 7 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 151124 times by 21 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmlincubator
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
170-151124
65 parentIncubator = cctxt->incubator;-
66 break;
executed 170 times by 7 tests: break;
Executed by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
170
67 }-
68 cctxt = cctxt->parent;-
69 }
executed 151124 times by 21 tests: end of block
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qqmlincubator
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
151124
70-
71 if (parentIncubator && parentIncubator->isAsynchronous) {
parentIncubato...isAsynchronousDescription
TRUEevaluated 162 times by 6 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmltypeloader
8-162
72 mode = QQmlIncubator::Asynchronous;-
73 p->waitingOnMe = parentIncubator;-
74 parentIncubator->waitingFor.insert(p.data());-
75 }
executed 162 times by 6 tests: end of block
Executed by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
162
76 }
executed 75583 times by 22 tests: end of block
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
75583
77-
78 p->isAsynchronous = (mode != QQmlIncubator::Synchronous);-
79-
80 inProgressCreations++;-
81-
82 if (mode == QQmlIncubator::Synchronous) {
mode == QQmlIn...r::SynchronousDescription
TRUEevaluated 85787 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEevaluated 3024 times by 11 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
3024-85787
83 QRecursionWatcher<QQmlIncubatorPrivate, &QQmlIncubatorPrivate::recursion> watcher(p.data());-
84-
85 p->changeStatus(QQmlIncubator::Loading);-
86-
87 if (!watcher.hasRecursed()) {
!watcher.hasRecursed()Description
TRUEevaluated 85787 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEnever evaluated
0-85787
88 QQmlInstantiationInterrupt i;-
89 p->incubate(i);-
90 }
executed 85787 times by 31 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
85787
91 } else {
executed 85787 times by 31 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
85787
92 incubatorList.insert(p.data());-
93 incubatorCount++;-
94-
95 p->vmeGuard.guard(p->creator.data());-
96 p->changeStatus(QQmlIncubator::Loading);-
97-
98 if (incubationController)
incubationControllerDescription
TRUEevaluated 3024 times by 11 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-3024
99 incubationController->incubatingObjectCountChanged(incubatorCount);
executed 3024 times by 11 tests: incubationController->incubatingObjectCountChanged(incubatorCount);
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
3024
100 }
executed 3024 times by 11 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
3024
101}-
102-
103/*!-
104Sets the engine's incubation \a controller. The engine can only have one active controller-
105and it does not take ownership of it.-
106-
107\sa incubationController()-
108*/-
109void QQmlEngine::setIncubationController(QQmlIncubationController *controller)-
110{-
111 Q_D(QQmlEngine);-
112 if (d->incubationController)
d->incubationControllerDescription
TRUEevaluated 3312 times by 87 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • ...
FALSEevaluated 3446 times by 88 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • ...
3312-3446
113 d->incubationController->d = nullptr;
executed 3312 times by 87 tests: d->incubationController->d = nullptr;
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • ...
3312
114 d->incubationController = controller;-
115 if (controller) controller->d = d;
executed 3352 times by 87 tests: controller->d = d;
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • ...
controllerDescription
TRUEevaluated 3352 times by 87 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • ...
FALSEevaluated 3406 times by 88 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • ...
3352-3406
116}
executed 6758 times by 88 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • ...
6758
117-
118/*!-
119Returns the currently set incubation controller, or 0 if no controller has been set.-
120-
121\sa setIncubationController()-
122*/-
123QQmlIncubationController *QQmlEngine::incubationController() const-
124{-
125 Q_D(const QQmlEngine);-
126 return d->incubationController;
executed 3392 times by 85 tests: return d->incubationController;
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
3392
127}-
128-
129QQmlIncubatorPrivate::QQmlIncubatorPrivate(QQmlIncubator *q, QQmlIncubator::IncubationMode m)-
130 : q(q), status(QQmlIncubator::Null), mode(m), isAsynchronous(false), progress(Execute),-
131 result(nullptr), enginePriv(nullptr), waitingOnMe(nullptr)-
132{-
133}
executed 88821 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88821
134-
135QQmlIncubatorPrivate::~QQmlIncubatorPrivate()-
136{-
137 clear();-
138}
executed 88672 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88672
139-
140void QQmlIncubatorPrivate::clear()-
141{-
142 compilationUnit = nullptr;-
143 if (next.isInList()) {
next.isInList()Description
TRUEevaluated 3017 times by 11 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 263074 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
3017-263074
144 next.remove();-
145 enginePriv->incubatorCount--;-
146 QQmlIncubationController *controller = enginePriv->incubationController;-
147 if (controller)
controllerDescription
TRUEevaluated 3017 times by 11 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-3017
148 controller->incubatingObjectCountChanged(enginePriv->incubatorCount);
executed 3017 times by 11 tests: controller->incubatingObjectCountChanged(enginePriv->incubatorCount);
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
3017
149 }
executed 3017 times by 11 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
3017
150 enginePriv = nullptr;-
151 if (!rootContext.isNull()) {
!rootContext.isNull()Description
TRUEevaluated 88695 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 177396 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88695-177396
152 rootContext->incubator = nullptr;-
153 rootContext = nullptr;-
154 }
executed 88695 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88695
155-
156 if (nextWaitingFor.isInList()) {
nextWaitingFor.isInList()Description
TRUEevaluated 162 times by 6 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 265929 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
162-265929
157 Q_ASSERT(waitingOnMe);-
158 nextWaitingFor.remove();-
159 waitingOnMe = nullptr;-
160 }
executed 162 times by 6 tests: end of block
Executed by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
162
161-
162 // if we're waiting on any incubators then they should be cleared too.-
163 while (waitingFor.first()) {
waitingFor.first()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlincubator
FALSEevaluated 266091 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
2-266091
164 QQmlIncubator * i = static_cast<QQmlIncubatorPrivate*>(waitingFor.first())->q;-
165 if (i)
iDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlincubator
FALSEnever evaluated
0-2
166 i->clear();
executed 2 times by 1 test: i->clear();
Executed by:
  • tst_qqmlincubator
2
167 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlincubator
2
168-
169 bool guardOk = vmeGuard.isOK();-
170-
171 vmeGuard.clear();-
172 if (creator && guardOk)
guardOkDescription
TRUEevaluated 88755 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 49 times by 3 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
49-88755
173 creator->clear();
executed 88755 times by 32 tests: creator->clear();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88755
174 creator.reset(nullptr);-
175}
executed 266091 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
266091
176-
177/*!-
178\class QQmlIncubationController-
179\brief QQmlIncubationController instances drive the progress of QQmlIncubators.-
180\inmodule QtQml-
181-
182In order to behave asynchronously and not introduce stutters or freezes in an application,-
183the process of creating objects a QQmlIncubators must be driven only during the-
184application's idle time. QQmlIncubationController allows the application to control-
185exactly when, how often and for how long this processing occurs.-
186-
187A QQmlIncubationController derived instance should be created and set on a-
188QQmlEngine by calling the QQmlEngine::setIncubationController() method.-
189Processing is then controlled by calling the QQmlIncubationController::incubateFor()-
190or QQmlIncubationController::incubateWhile() methods as dictated by the application's-
191requirements.-
192-
193For example, this is an example of a incubation controller that will incubate for a maximum-
194of 5 milliseconds out of every 16 milliseconds.-
195-
196\code-
197class PeriodicIncubationController : public QObject,-
198 public QQmlIncubationController-
199{-
200public:-
201 PeriodicIncubationController() {-
202 startTimer(16);-
203 }-
204-
205protected:-
206 void timerEvent(QTimerEvent *) override {-
207 incubateFor(5);-
208 }-
209};-
210\endcode-
211-
212Although the previous example would work, it is not optimal. Real world incubation-
213controllers should try and maximize the amount of idle time they consume - rather-
214than a static amount like 5 milliseconds - while not disturbing the application.-
215*/-
216-
217/*!-
218Create a new incubation controller.-
219*/-
220QQmlIncubationController::QQmlIncubationController()-
221: d(nullptr)-
222{-
223}
executed 3352 times by 87 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • ...
3352
224-
225/*! \internal */-
226QQmlIncubationController::~QQmlIncubationController()-
227{-
228 if (d) QQmlEnginePrivate::get(d)->setIncubationController(nullptr);
executed 3298 times by 87 tests: QQmlEnginePrivate::get(d)->setIncubationController(nullptr);
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • ...
dDescription
TRUEevaluated 3298 times by 87 tests
Evaluated by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • ...
FALSEevaluated 26 times by 7 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
26-3298
229 d = nullptr;-
230}
executed 3324 times by 87 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • ...
3324
231-
232/*!-
233Return the QQmlEngine this incubation controller is set on, or 0 if it-
234has not been set on any engine.-
235*/-
236QQmlEngine *QQmlIncubationController::engine() const-
237{-
238 return QQmlEnginePrivate::get(d);
never executed: return QQmlEnginePrivate::get(d);
0
239}-
240-
241/*!-
242Return the number of objects currently incubating.-
243*/-
244int QQmlIncubationController::incubatingObjectCount() const-
245{-
246 return d ? d->incubatorCount : 0;
executed 2473 times by 9 tests: return d ? d->incubatorCount : 0;
Executed by:
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2473
247}-
248-
249/*!-
250Called when the number of incubating objects changes. \a incubatingObjectCount is the-
251new number of incubating objects.-
252-
253The default implementation does nothing.-
254*/-
255void QQmlIncubationController::incubatingObjectCountChanged(int incubatingObjectCount)-
256{-
257 Q_UNUSED(incubatingObjectCount);-
258}
executed 610 times by 8 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
610
259-
260void QQmlIncubatorPrivate::forceCompletion(QQmlInstantiationInterrupt &i)-
261{-
262 while (QQmlIncubator::Loading == status) {
QQmlIncubator:...ding == statusDescription
TRUEevaluated 172 times by 6 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
FALSEevaluated 176 times by 6 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
172-176
263 while (QQmlIncubator::Loading == status && !waitingFor.isEmpty())
QQmlIncubator:...ding == statusDescription
TRUEevaluated 172 times by 6 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
FALSEnever evaluated
!waitingFor.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 172 times by 6 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
0-172
264 static_cast<QQmlIncubatorPrivate *>(waitingFor.first())->forceCompletion(i);
never executed: static_cast<QQmlIncubatorPrivate *>(waitingFor.first())->forceCompletion(i);
0
265 if (QQmlIncubator::Loading == status)
QQmlIncubator:...ding == statusDescription
TRUEevaluated 172 times by 6 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-172
266 incubate(i);
executed 172 times by 6 tests: incubate(i);
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
172
267 }
executed 172 times by 6 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
172
268}
executed 176 times by 6 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
176
269-
270void QQmlIncubatorPrivate::incubate(QQmlInstantiationInterrupt &i)-
271{-
272 if (!compilationUnit)
!compilationUnitDescription
TRUEnever evaluated
FALSEevaluated 90319 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
0-90319
273 return;
never executed: return;
0
274-
275 QML_MEMORY_SCOPE_URL(compilationUnit->finalUrl());-
276-
277 QExplicitlySharedDataPointer<QQmlIncubatorPrivate> protectThis(this);-
278-
279 QRecursionWatcher<QQmlIncubatorPrivate, &QQmlIncubatorPrivate::recursion> watcher(this);-
280 // get a copy of the engine pointer as it might get reset;-
281 QQmlEnginePrivate *enginePriv = this->enginePriv;-
282-
283 if (!vmeGuard.isOK()) {
!vmeGuard.isOK()Description
TRUEevaluated 35 times by 3 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 90284 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
35-90284
284 QQmlError error;-
285 error.setUrl(compilationUnit->url());-
286 error.setDescription(QQmlComponent::tr("Object destroyed during incubation"));-
287 errors << error;-
288 progress = QQmlIncubatorPrivate::Completed;-
289-
290 goto finishIncubate;
executed 35 times by 3 tests: goto finishIncubate;
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
35
291 }-
292-
293 vmeGuard.clear();-
294-
295 if (progress == QQmlIncubatorPrivate::Execute) {
progress == QQ...ivate::ExecuteDescription
TRUEevaluated 88915 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 1369 times by 6 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
1369-88915
296 enginePriv->referenceScarceResources();-
297 QObject *tresult = nullptr;-
298 tresult = creator->create(subComponentToCreate, /*parent*/nullptr, &i);-
299 if (!tresult)
!tresultDescription
TRUEevaluated 212 times by 7 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 88703 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
212-88703
300 errors = creator->errors;
executed 212 times by 7 tests: errors = creator->errors;
Executed by:
  • tst_qqmlincubator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
212
301 enginePriv->dereferenceScarceResources();-
302-
303 if (watcher.hasRecursed())
watcher.hasRecursed()Description
TRUEnever evaluated
FALSEevaluated 88915 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
0-88915
304 return;
never executed: return;
0
305-
306 result = tresult;-
307 if (errors.isEmpty() && result == nullptr)
errors.isEmpty()Description
TRUEevaluated 88913 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickloader
result == nullptrDescription
TRUEevaluated 210 times by 7 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 88703 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
2-88913
308 goto finishIncubate;
executed 210 times by 7 tests: goto finishIncubate;
Executed by:
  • tst_qqmlincubator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
210
309-
310 if (result) {
resultDescription
TRUEevaluated 88703 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickloader
2-88703
311 QQmlData *ddata = QQmlData::get(result);-
312 Q_ASSERT(ddata);-
313 //see QQmlComponent::beginCreate for explanation of indestructible-
314 ddata->indestructible = true;-
315 ddata->explicitIndestructibleSet = true;-
316 ddata->rootObjectInCreation = false;-
317 if (q)
qDescription
TRUEevaluated 88701 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlincubator
2-88701
318 q->setInitialState(result);
executed 88701 times by 32 tests: q->setInitialState(result);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88701
319 }
executed 88703 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88703
320-
321 if (watcher.hasRecursed())
watcher.hasRecursed()Description
TRUEnever evaluated
FALSEevaluated 88705 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
0-88705
322 return;
never executed: return;
0
323-
324 if (errors.isEmpty())
errors.isEmpty()Description
TRUEevaluated 88703 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickloader
2-88703
325 progress = QQmlIncubatorPrivate::Completing;
executed 88703 times by 32 tests: progress = QQmlIncubatorPrivate::Completing;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88703
326 else-
327 progress = QQmlIncubatorPrivate::Completed;
executed 2 times by 1 test: progress = QQmlIncubatorPrivate::Completed;
Executed by:
  • tst_qquickloader
2
328-
329 changeStatus(calculateStatus());-
330-
331 if (watcher.hasRecursed())
watcher.hasRecursed()Description
TRUEnever evaluated
FALSEevaluated 88705 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
0-88705
332 return;
never executed: return;
0
333-
334 if (i.shouldInterrupt())
i.shouldInterrupt()Description
TRUEevaluated 190 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 88515 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
190-88515
335 goto finishIncubate;
executed 190 times by 5 tests: goto finishIncubate;
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
190
336 }
executed 88515 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88515
337-
338 if (progress == QQmlIncubatorPrivate::Completing) {
progress == QQ...te::CompletingDescription
TRUEevaluated 89742 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 142 times by 7 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
142-89742
339 do {-
340 if (watcher.hasRecursed())
watcher.hasRecursed()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickloader
FALSEevaluated 89742 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
4-89742
341 return;
executed 4 times by 2 tests: return;
Executed by:
  • tst_qqmlincubator
  • tst_qquickloader
4
342-
343 QQmlContextData *ctxt = nullptr;-
344 ctxt = creator->finalize(i);-
345 if (ctxt) {
ctxtDescription
TRUEevaluated 88695 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 1047 times by 6 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
1047-88695
346 rootContext = ctxt;-
347 progress = QQmlIncubatorPrivate::Completed;-
348 goto finishIncubate;
executed 88695 times by 32 tests: goto finishIncubate;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88695
349 }-
350 } while (!i.shouldInterrupt());
executed 1047 times by 6 tests: end of block
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
!i.shouldInterrupt()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickloader
FALSEevaluated 1043 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
4-1047
351 }
executed 1043 times by 5 tests: end of block
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
1043
352-
353finishIncubate:
code before this statement executed 1185 times by 7 tests: finishIncubate:
Executed by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
1185
354 if (progress == QQmlIncubatorPrivate::Completed && waitingFor.isEmpty()) {
progress == QQ...ate::CompletedDescription
TRUEevaluated 88872 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 1443 times by 7 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
waitingFor.isEmpty()Description
TRUEevaluated 88730 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 142 times by 6 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
142-88872
355 QExplicitlySharedDataPointer<QQmlIncubatorPrivate> isWaiting = waitingOnMe;-
356 clear();-
357-
358 if (isWaiting) {
isWaitingDescription
TRUEevaluated 160 times by 6 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 88570 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
160-88570
359 QRecursionWatcher<QQmlIncubatorPrivate, &QQmlIncubatorPrivate::recursion> watcher(isWaiting.data());-
360 changeStatus(calculateStatus());-
361 if (!watcher.hasRecursed())
!watcher.hasRecursed()Description
TRUEevaluated 160 times by 6 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEnever evaluated
0-160
362 isWaiting->incubate(i);
executed 160 times by 6 tests: isWaiting->incubate(i);
Executed by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
160
363 } else {
executed 160 times by 6 tests: end of block
Executed by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
160
364 changeStatus(calculateStatus());-
365 }
executed 88570 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88570
366-
367 enginePriv->inProgressCreations--;-
368-
369 if (0 == enginePriv->inProgressCreations) {
0 == enginePri...gressCreationsDescription
TRUEevaluated 33529 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 55201 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
33529-55201
370 while (enginePriv->erroredBindings)
enginePriv->erroredBindingsDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qquickpathview
FALSEevaluated 33529 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
20-33529
371 enginePriv->warning(enginePriv->erroredBindings->removeError());
executed 20 times by 1 test: enginePriv->warning(enginePriv->erroredBindings->removeError());
Executed by:
  • tst_qquickpathview
20
372 }
executed 33529 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
33529
373 } else if (!creator.isNull()) {
executed 88730 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
!creator.isNull()Description
TRUEevaluated 1553 times by 8 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_qquickrepeater
32-88730
374 vmeGuard.guard(creator.data());-
375 }
executed 1553 times by 8 tests: end of block
Executed by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
1553
376}
executed 90315 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
90315
377-
378/*!-
379Incubate objects for \a msecs, or until there are no more objects to incubate.-
380*/-
381void QQmlIncubationController::incubateFor(int msecs)-
382{-
383 if (!d || !d->incubatorCount)
!dDescription
TRUEevaluated 292 times by 1 test
Evaluated by:
  • tst_qquickloader
FALSEevaluated 1074 times by 10 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
!d->incubatorCountDescription
TRUEevaluated 101 times by 3 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qquickloader
  • tst_qquickvisualdatamodel
FALSEevaluated 973 times by 9 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
101-1074
384 return;
executed 393 times by 3 tests: return;
Executed by:
  • tst_qqmlcomponent
  • tst_qquickloader
  • tst_qquickvisualdatamodel
393
385-
386 QQmlInstantiationInterrupt i(msecs * 1000000);-
387 i.reset();-
388 do {-
389 static_cast<QQmlIncubatorPrivate*>(d->incubatorList.first())->incubate(i);-
390 } while (d && d->incubatorCount != 0 && !i.shouldInterrupt());
executed 2606 times by 9 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
dDescription
TRUEevaluated 2606 times by 9 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEnever evaluated
d->incubatorCount != 0Description
TRUEevaluated 1647 times by 8 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 959 times by 9 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
!i.shouldInterrupt()Description
TRUEevaluated 1633 times by 7 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquicklistview
  • tst_qquickloader
0-2606
391}
executed 973 times by 9 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
973
392-
393/*!-
394Incubate objects while the bool pointed to by \a flag is true, or until there are no-
395more objects to incubate, or up to \a msecs if \a msecs is not zero.-
396-
397Generally this method is used in conjunction with a thread or a UNIX signal that sets-
398the bool pointed to by \a flag to false when it wants incubation to be interrupted.-
399*/-
400void QQmlIncubationController::incubateWhile(volatile bool *flag, int msecs)-
401{-
402 if (!d || !d->incubatorCount)
!dDescription
TRUEnever evaluated
FALSEevaluated 1642 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
!d->incubatorCountDescription
TRUEevaluated 62 times by 3 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 1580 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
0-1642
403 return;
executed 62 times by 3 tests: return;
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
62
404-
405 QQmlInstantiationInterrupt i(flag, msecs * 1000000);-
406 i.reset();-
407 do {-
408 static_cast<QQmlIncubatorPrivate*>(d->incubatorList.first())->incubate(i);-
409 } while (d && d->incubatorCount != 0 && !i.shouldInterrupt());
executed 1594 times by 5 tests: end of block
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
dDescription
TRUEevaluated 1594 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEnever evaluated
d->incubatorCount != 0Description
TRUEevaluated 1552 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 42 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
!i.shouldInterrupt()Description
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 1538 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
0-1594
410}
executed 1580 times by 5 tests: end of block
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
1580
411-
412/*!-
413\class QQmlIncubator-
414\brief The QQmlIncubator class allows QML objects to be created asynchronously.-
415\inmodule QtQml-
416-
417Creating QML objects - like delegates in a view, or a new page in an application - can take-
418a noticeable amount of time, especially on resource constrained mobile devices. When an-
419application uses QQmlComponent::create() directly, the QML object instance is created-
420synchronously which, depending on the complexity of the object, can cause noticeable pauses or-
421stutters in the application.-
422-
423The use of QQmlIncubator gives more control over the creation of a QML object,-
424including allowing it to be created asynchronously using application idle time. The following-
425example shows a simple use of QQmlIncubator.-
426-
427\code-
428QQmlIncubator incubator;-
429component->create(incubator);-
430-
431while (!incubator.isReady()) {-
432 QCoreApplication::processEvents(QEventLoop::AllEvents, 50);-
433}-
434-
435QObject *object = incubator.object();-
436\endcode-
437-
438Asynchronous incubators are controlled by a QQmlIncubationController that is-
439set on the QQmlEngine, which lets the engine know when the application is idle and-
440incubating objects should be processed. If an incubation controller is not set on the-
441QQmlEngine, QQmlIncubator creates objects synchronously regardless of the-
442specified IncubationMode.-
443-
444QQmlIncubator supports three incubation modes:-
445\list-
446\li Synchronous The creation occurs synchronously. That is, once the-
447QQmlComponent::create() call returns, the incubator will already be in either the-
448Error or Ready state. A synchronous incubator has no real advantage compared to using-
449the synchronous creation methods on QQmlComponent directly, but it may simplify an-
450application's implementation to use the same API for both synchronous and asynchronous-
451creations.-
452-
453\li Asynchronous (default) The creation occurs asynchronously, assuming a-
454QQmlIncubatorController is set on the QQmlEngine.-
455-
456The incubator will remain in the Loading state until either the creation is complete or an error-
457occurs. The statusChanged() callback can be used to be notified of status changes.-
458-
459Applications should use the Asynchronous incubation mode to create objects that are not needed-
460immediately. For example, the ListView type uses Asynchronous incubation to create objects-
461that are slightly off screen while the list is being scrolled. If, during asynchronous creation,-
462the object is needed immediately the QQmlIncubator::forceCompletion() method can be called-
463to complete the creation process synchronously.-
464-
465\li AsynchronousIfNested The creation will occur asynchronously if part of a nested asynchronous-
466creation, or synchronously if not.-
467-
468In most scenarios where a QML component wants the appearance of a synchronous-
469instantiation, it should use this mode.-
470-
471This mode is best explained with an example. When the ListView type is first created, it needs-
472to populate itself with an initial set of delegates to show. If the ListView was 400 pixels high,-
473and each delegate was 100 pixels high, it would need to create four initial delegate instances. If-
474the ListView used the Asynchronous incubation mode, the ListView would always be created empty and-
475then, sometime later, the four initial items would appear.-
476-
477Conversely, if the ListView was to use the Synchronous incubation mode it would behave correctly-
478but it may introduce stutters into the application. As QML would have to stop and instantiate the-
479ListView's delegates synchronously, if the ListView was part of a QML component that was being-
480instantiated asynchronously this would undo much of the benefit of asynchronous instantiation.-
481-
482The AsynchronousIfNested mode reconciles this problem. By using AsynchronousIfNested, the ListView-
483delegates are instantiated asynchronously if the ListView itself is already part of an asynchronous-
484instantiation, and synchronously otherwise. In the case of a nested asynchronous instantiation, the-
485outer asynchronous instantiation will not complete until after all the nested instantiations have also-
486completed. This ensures that by the time the outer asynchronous instantitation completes, inner-
487items like ListView have already completed loading their initial delegates.-
488-
489It is almost always incorrect to use the Synchronous incubation mode - elements or components that-
490want the appearance of synchronous instantiation, but without the downsides of introducing freezes-
491or stutters into the application, should use the AsynchronousIfNested incubation mode.-
492\endlist-
493*/-
494-
495/*!-
496Create a new incubator with the specified \a mode-
497*/-
498QQmlIncubator::QQmlIncubator(IncubationMode mode)-
499 : d(new QQmlIncubatorPrivate(this, mode))-
500{-
501 d->ref.ref();-
502}
executed 88821 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88821
503-
504/*! \internal */-
505QQmlIncubator::~QQmlIncubator()-
506{-
507 d->q = nullptr;-
508-
509 if (!d->ref.deref()) {
!d->ref.deref()Description
TRUEevaluated 88628 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 44 times by 3 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickloader
  • tst_qquickrepeater
44-88628
510 delete d;-
511 }
executed 88628 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88628
512 d = nullptr;-
513}
executed 88672 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88672
514-
515/*!-
516\enum QQmlIncubator::IncubationMode-
517-
518Specifies the mode the incubator operates in. Regardless of the incubation mode, a-
519QQmlIncubator will behave synchronously if the QQmlEngine does not have-
520a QQmlIncubationController set.-
521-
522\value Asynchronous The object will be created asynchronously.-
523\value AsynchronousIfNested If the object is being created in a context that is already part-
524of an asynchronous creation, this incubator will join that existing incubation and execute-
525asynchronously. The existing incubation will not become Ready until both it and this-
526incubation have completed. Otherwise, the incubation will execute synchronously.-
527\value Synchronous The object will be created synchronously.-
528*/-
529-
530/*!-
531\enum QQmlIncubator::Status-
532-
533Specifies the status of the QQmlIncubator.-
534-
535\value Null Incubation is not in progress. Call QQmlComponent::create() to begin incubating.-
536\value Ready The object is fully created and can be accessed by calling object().-
537\value Loading The object is in the process of being created.-
538\value Error An error occurred. The errors can be access by calling errors().-
539*/-
540-
541/*!-
542Clears the incubator. Any in-progress incubation is aborted. If the incubator is in the-
543Ready state, the created object is \b not deleted.-
544*/-
545void QQmlIncubator::clear()-
546{-
547 QRecursionWatcher<QQmlIncubatorPrivate, &QQmlIncubatorPrivate::recursion> watcher(d);-
548-
549 Status s = status();-
550-
551 if (s == Null)
s == NullDescription
TRUEevaluated 89141 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 88689 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
88689-89141
552 return;
executed 89141 times by 32 tests: return;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
89141
553-
554 QQmlEnginePrivate *enginePriv = d->enginePriv;-
555 if (s == Loading) {
s == LoadingDescription
TRUEevaluated 70 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
FALSEevaluated 88619 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
70-88619
556 Q_ASSERT(d->compilationUnit);-
557 if (d->result) d->result->deleteLater();
executed 8 times by 2 tests: d->result->deleteLater();
Executed by:
  • tst_qqmlincubator
  • tst_qquickloader
d->resultDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickloader
FALSEevaluated 62 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
8-62
558 d->result = nullptr;-
559 }
executed 70 times by 5 tests: end of block
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
70
560-
561 d->clear();-
562-
563 Q_ASSERT(d->compilationUnit.isNull());-
564 Q_ASSERT(d->waitingOnMe.data() == nullptr);-
565 Q_ASSERT(d->waitingFor.isEmpty());-
566-
567 d->errors.clear();-
568 d->progress = QQmlIncubatorPrivate::Execute;-
569 d->result = nullptr;-
570-
571 if (s == Loading) {
s == LoadingDescription
TRUEevaluated 70 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
FALSEevaluated 88619 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
70-88619
572 Q_ASSERT(enginePriv);-
573-
574 enginePriv->inProgressCreations--;-
575 if (0 == enginePriv->inProgressCreations) {
0 == enginePri...gressCreationsDescription
TRUEevaluated 66 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickloader
4-66
576 while (enginePriv->erroredBindings)
enginePriv->erroredBindingsDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickgridview
FALSEevaluated 66 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
4-66
577 enginePriv->warning(enginePriv->erroredBindings->removeError());
executed 4 times by 1 test: enginePriv->warning(enginePriv->erroredBindings->removeError());
Executed by:
  • tst_qquickgridview
4
578 }
executed 66 times by 5 tests: end of block
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
66
579 }
executed 70 times by 5 tests: end of block
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
70
580-
581 d->changeStatus(Null);-
582}
executed 88689 times by 30 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
88689
583-
584/*!-
585Force any in-progress incubation to finish synchronously. Once this call-
586returns, the incubator will not be in the Loading state.-
587*/-
588void QQmlIncubator::forceCompletion()-
589{-
590 QQmlInstantiationInterrupt i;-
591 d->forceCompletion(i);-
592}
executed 176 times by 6 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
176
593-
594/*!-
595Returns true if the incubator's status() is Null.-
596*/-
597bool QQmlIncubator::isNull() const-
598{-
599 return status() == Null;
executed 100 times by 1 test: return status() == Null;
Executed by:
  • tst_qqmlincubator
100
600}-
601-
602/*!-
603Returns true if the incubator's status() is Ready.-
604*/-
605bool QQmlIncubator::isReady() const-
606{-
607 return status() == Ready;
executed 110 times by 2 tests: return status() == Ready;
Executed by:
  • tst_qqmlincubator
  • tst_qqmlinstantiator
110
608}-
609-
610/*!-
611Returns true if the incubator's status() is Error.-
612*/-
613bool QQmlIncubator::isError() const-
614{-
615 return status() == Error;
executed 88373 times by 26 tests: return status() == Error;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • ...
88373
616}-
617-
618/*!-
619Returns true if the incubator's status() is Loading.-
620*/-
621bool QQmlIncubator::isLoading() const-
622{-
623 return status() == Loading;
executed 282 times by 2 tests: return status() == Loading;
Executed by:
  • tst_qqmlincubator
  • tst_qquickloader
282
624}-
625-
626/*!-
627Return the list of errors encountered while incubating the object.-
628*/-
629QList<QQmlError> QQmlIncubator::errors() const-
630{-
631 return d->errors;
executed 88327 times by 27 tests: return d->errors;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • ...
88327
632}-
633-
634/*!-
635Return the incubation mode passed to the QQmlIncubator constructor.-
636*/-
637QQmlIncubator::IncubationMode QQmlIncubator::incubationMode() const-
638{-
639 return d->mode;
executed 88987 times by 32 tests: return d->mode;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88987
640}-
641-
642/*!-
643Return the current status of the incubator.-
644*/-
645QQmlIncubator::Status QQmlIncubator::status() const-
646{-
647 return d->status;
executed 270343 times by 32 tests: return d->status;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
270343
648}-
649-
650/*!-
651Return the incubated object if the status is Ready, otherwise 0.-
652*/-
653QObject *QQmlIncubator::object() const-
654{-
655 if (status() != Ready)
status() != ReadyDescription
TRUEevaluated 18 times by 4 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qquickloader
FALSEevaluated 444 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
18-444
656 return nullptr;
executed 18 times by 4 tests: return nullptr;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qquickloader
18
657 else-
658 return d->result;
executed 444 times by 17 tests: return d->result;
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
444
659}-
660-
661/*!-
662Called when the status of the incubator changes. \a status is the new status.-
663-
664The default implementation does nothing.-
665*/-
666void QQmlIncubator::statusChanged(Status status)-
667{-
668 Q_UNUSED(status);-
669}
executed 118 times by 3 tests: end of block
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
118
670-
671/*!-
672Called after the \a object is first created, but before property bindings are-
673evaluated and, if applicable, QQmlParserStatus::componentComplete() is-
674called. This is equivalent to the point between QQmlComponent::beginCreate()-
675and QQmlComponent::completeCreate(), and can be used to assign initial values-
676to the object's properties.-
677-
678The default implementation does nothing.-
679*/-
680void QQmlIncubator::setInitialState(QObject *object)-
681{-
682 Q_UNUSED(object);-
683}
executed 58 times by 3 tests: end of block
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
58
684-
685void QQmlIncubatorPrivate::changeStatus(QQmlIncubator::Status s)-
686{-
687 if (s == status)
s == statusDescription
TRUEevaluated 88705 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 266230 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88705-266230
688 return;
executed 88705 times by 32 tests: return;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88705
689-
690 status = s;-
691 if (q)
qDescription
TRUEevaluated 266228 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlincubator
2-266228
692 q->statusChanged(status);
executed 266228 times by 32 tests: q->statusChanged(status);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
266228
693}
executed 266230 times by 32 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
266230
694-
695QQmlIncubator::Status QQmlIncubatorPrivate::calculateStatus() const-
696{-
697 if (!errors.isEmpty())
!errors.isEmpty()Description
TRUEevaluated 39 times by 4 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
FALSEevaluated 177396 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
39-177396
698 return QQmlIncubator::Error;
executed 39 times by 4 tests: return QQmlIncubator::Error;
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
39
699 else if (result && progress == QQmlIncubatorPrivate::Completed && waitingFor.isEmpty())
progress == QQ...ate::CompletedDescription
TRUEevaluated 88693 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEevaluated 88703 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
waitingFor.isEmpty()Description
TRUEevaluated 88693 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEnever evaluated
0-88703
700 return QQmlIncubator::Ready;
executed 88693 times by 32 tests: return QQmlIncubator::Ready;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88693
701 else if (compilationUnit)
compilationUnitDescription
TRUEevaluated 88703 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
FALSEnever evaluated
0-88703
702 return QQmlIncubator::Loading;
executed 88703 times by 32 tests: return QQmlIncubator::Loading;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
88703
703 else-
704 return QQmlIncubator::Null;
never executed: return QQmlIncubator::Null;
0
705}-
706-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0