OpenCoverage

qqmlcontext.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlcontext.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 "qqmlcontext.h"-
41#include "qqmlcontext_p.h"-
42#include "qqmlcomponentattached_p.h"-
43-
44#include "qqmlcomponent_p.h"-
45#include "qqmlexpression_p.h"-
46#include "qqmlengine_p.h"-
47#include "qqmlengine.h"-
48#include "qqmlinfo.h"-
49#include "qqmlabstracturlinterceptor.h"-
50-
51#include <qjsengine.h>-
52#include <QtCore/qvarlengtharray.h>-
53#include <private/qmetaobject_p.h>-
54#include <QtCore/qdebug.h>-
55-
56QT_BEGIN_NAMESPACE-
57-
58QQmlContextPrivate::QQmlContextPrivate()-
59: data(nullptr), notifyIndex(-1)-
60{-
61}
executed 70442 times by 148 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
70442
62-
63/*!-
64 \class QQmlContext-
65 \brief The QQmlContext class defines a context within a QML engine.-
66 \inmodule QtQml-
67-
68 Contexts allow data to be exposed to the QML components instantiated by the-
69 QML engine.-
70-
71 Each QQmlContext contains a set of properties, distinct from its QObject-
72 properties, that allow data to be explicitly bound to a context by name. The-
73 context properties are defined and updated by calling-
74 QQmlContext::setContextProperty(). The following example shows a Qt model-
75 being bound to a context and then accessed from a QML file.-
76-
77 \code-
78 QQmlEngine engine;-
79 QStringListModel modelData;-
80 QQmlContext *context = new QQmlContext(engine.rootContext());-
81 context->setContextProperty("myModel", &modelData);-
82-
83 QQmlComponent component(&engine);-
84 component.setData("import QtQuick 2.0\nListView { model: myModel }", QUrl());-
85 QObject *window = component.create(context);-
86 \endcode-
87-
88 Note it is the responsibility of the creator to delete any QQmlContext it-
89 constructs. If the \c context object in the example is no longer needed when the-
90 \c window component instance is destroyed, the \c context must be destroyed explicitly.-
91 The simplest way to ensure this is to set \c window as the parent of \c context.-
92-
93 To simplify binding and maintaining larger data sets, a context object can be set-
94 on a QQmlContext. All the properties of the context object are available-
95 by name in the context, as though they were all individually added through calls-
96 to QQmlContext::setContextProperty(). Changes to the property's values are-
97 detected through the property's notify signal. Setting a context object is both-
98 faster and easier than manually adding and maintaining context property values.-
99-
100 The following example has the same effect as the previous one, but it uses a context-
101 object.-
102-
103 \code-
104 class MyDataSet : ... {-
105 ...-
106 Q_PROPERTY(QAbstractItemModel *myModel READ model NOTIFY modelChanged)-
107 ...-
108 };-
109-
110 MyDataSet myDataSet;-
111 QQmlEngine engine;-
112 QQmlContext *context = new QQmlContext(engine.rootContext());-
113 context->setContextObject(&myDataSet);-
114-
115 QQmlComponent component(&engine);-
116 component.setData("import QtQuick 2.0\nListView { model: myModel }", QUrl());-
117 component.create(context);-
118 \endcode-
119-
120 All properties added explicitly by QQmlContext::setContextProperty() take-
121 precedence over the context object's properties.-
122-
123 \section2 The Context Hierarchy-
124-
125 Contexts form a hierarchy. The root of this hierarchy is the QML engine's-
126 \l {QQmlEngine::rootContext()}{root context}. Child contexts inherit-
127 the context properties of their parents; if a child context sets a context property-
128 that already exists in its parent, the new context property overrides that of the-
129 parent.-
130-
131 The following example defines two contexts - \c context1 and \c context2. The-
132 second context overrides the "b" context property inherited from the first with a-
133 new value.-
134-
135 \code-
136 QQmlEngine engine;-
137 QQmlContext *context1 = new QQmlContext(engine.rootContext());-
138 QQmlContext *context2 = new QQmlContext(context1);-
139-
140 context1->setContextProperty("a", 12);-
141 context1->setContextProperty("b", 12);-
142-
143 context2->setContextProperty("b", 15);-
144 \endcode-
145-
146 While QML objects instantiated in a context are not strictly owned by that-
147 context, their bindings are. If a context is destroyed, the property bindings of-
148 outstanding QML objects will stop evaluating.-
149-
150 \warning Setting the context object or adding new context properties after an object-
151 has been created in that context is an expensive operation (essentially forcing all bindings-
152 to reevaluate). Thus whenever possible you should complete "setup" of the context-
153 before using it to create any objects.-
154-
155 \sa {qtqml-cppintegration-exposecppattributes.html}{Exposing Attributes of C++ Types to QML}-
156*/-
157-
158/*! \internal */-
159QQmlContext::QQmlContext(QQmlEngine *e, bool)-
160: QObject(*(new QQmlContextPrivate))-
161{-
162 Q_D(QQmlContext);-
163 d->data = new QQmlContextData(this);-
164 ++d->data->refCount;-
165-
166 d->data->engine = e;-
167}
executed 7674 times by 148 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
7674
168-
169/*!-
170 Create a new QQmlContext as a child of \a engine's root context, and the-
171 QObject \a parent.-
172*/-
173QQmlContext::QQmlContext(QQmlEngine *engine, QObject *parent)-
174: QObject(*(new QQmlContextPrivate), parent)-
175{-
176 Q_D(QQmlContext);-
177 d->data = new QQmlContextData(this);-
178 ++d->data->refCount;-
179-
180 d->data->setParent(engine?QQmlContextData::get(engine->rootContext()):nullptr);-
181}
executed 40 times by 5 tests: end of block
Executed by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlproperty
  • tst_qqmlpropertymap
40
182-
183/*!-
184 Create a new QQmlContext with the given \a parentContext, and the-
185 QObject \a parent.-
186*/-
187QQmlContext::QQmlContext(QQmlContext *parentContext, QObject *parent)-
188: QObject(*(new QQmlContextPrivate), parent)-
189{-
190 Q_D(QQmlContext);-
191 d->data = new QQmlContextData(this);-
192 ++d->data->refCount;-
193-
194 d->data->setParent(parentContext?QQmlContextData::get(parentContext):nullptr);-
195}
executed 2360 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • ...
2360
196-
197/*!-
198 \internal-
199*/-
200QQmlContext::QQmlContext(QQmlContextData *data)-
201: QObject(*(new QQmlContextPrivate), nullptr)-
202{-
203 Q_D(QQmlContext);-
204 d->data = data;-
205 // don't add a refcount here, as the data owns this context-
206}
executed 60368 times by 66 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
60368
207-
208/*!-
209 Destroys the QQmlContext.-
210-
211 Any expressions, or sub-contexts dependent on this context will be-
212 invalidated, but not destroyed (unless they are parented to the QQmlContext-
213 object).-
214 */-
215QQmlContext::~QQmlContext()-
216{-
217 Q_D(QQmlContext);-
218-
219 d->data->publicContext = nullptr;-
220 if (!--d->data->refCount)
!--d->data->refCountDescription
TRUEevaluated 8976 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
FALSEevaluated 60520 times by 64 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
8976-60520
221 d->data->destroy();
executed 8976 times by 148 tests: d->data->destroy();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
8976
222}
executed 69496 times by 148 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
69496
223-
224/*!-
225 Returns whether the context is valid.-
226-
227 To be valid, a context must have a engine, and it's contextObject(), if any,-
228 must not have been deleted.-
229*/-
230bool QQmlContext::isValid() const-
231{-
232 Q_D(const QQmlContext);-
233 return d->data && d->data->isValid();
executed 195534 times by 55 tests: return d->data && d->data->isValid();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • ...
195534
234}-
235-
236/*!-
237 Return the context's QQmlEngine, or 0 if the context has no QQmlEngine or the-
238 QQmlEngine was destroyed.-
239*/-
240QQmlEngine *QQmlContext::engine() const-
241{-
242 Q_D(const QQmlContext);-
243 return d->data->engine;
executed 158060 times by 45 tests: return d->data->engine;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • ...
158060
244}-
245-
246/*!-
247 Return the context's parent QQmlContext, or 0 if this context has no-
248 parent or if the parent has been destroyed.-
249*/-
250QQmlContext *QQmlContext::parentContext() const-
251{-
252 Q_D(const QQmlContext);-
253 return d->data->parent?d->data->parent->asQQmlContext():nullptr;
executed 4592 times by 4 tests: return d->data->parent?d->data->parent->asQQmlContext():nullptr;
Executed by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qquickgridview
  • tst_qquicklistview
4592
254}-
255-
256/*!-
257 Return the context object, or 0 if there is no context object.-
258*/-
259QObject *QQmlContext::contextObject() const-
260{-
261 Q_D(const QQmlContext);-
262 return d->data->contextObject;
executed 1390 times by 2 tests: return d->data->contextObject;
Executed by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
1390
263}-
264-
265/*!-
266 Set the context \a object.-
267*/-
268void QQmlContext::setContextObject(QObject *object)-
269{-
270 Q_D(QQmlContext);-
271-
272 QQmlContextData *data = d->data;-
273-
274 if (data->isInternal) {
data->isInternalDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 920 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
2-920
275 qWarning("QQmlContext: Cannot set context object for internal context.");-
276 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qqmlcontext
2
277 }-
278-
279 if (!isValid()) {
!isValid()Description
TRUEnever evaluated
FALSEevaluated 920 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
0-920
280 qWarning("QQmlContext: Cannot set context object on invalid context.");-
281 return;
never executed: return;
0
282 }-
283-
284 data->contextObject = object;-
285 data->refreshExpressions();-
286}
executed 920 times by 17 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
920
287-
288/*!-
289 Set a the \a value of the \a name property on this context.-
290*/-
291void QQmlContext::setContextProperty(const QString &name, const QVariant &value)-
292{-
293 Q_D(QQmlContext);-
294 if (d->notifyIndex == -1)
d->notifyIndex == -1Description
TRUEevaluated 1880 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEevaluated 17138 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
1880-17138
295 d->notifyIndex = QMetaObjectPrivate::absoluteSignalCount(&QQmlContext::staticMetaObject);
executed 1880 times by 34 tests: d->notifyIndex = QMetaObjectPrivate::absoluteSignalCount(&QQmlContext::staticMetaObject);
Executed by:
  • tst_examples
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
1880
296-
297 QQmlContextData *data = d->data;-
298-
299 if (data->isInternal) {
data->isInternalDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 19014 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
4-19014
300 qWarning("QQmlContext: Cannot set property on internal context.");-
301 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_qqmlcontext
4
302 }-
303-
304 if (!isValid()) {
!isValid()Description
TRUEnever evaluated
FALSEevaluated 19014 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
0-19014
305 qWarning("QQmlContext: Cannot set property on invalid context.");-
306 return;
never executed: return;
0
307 }-
308-
309 QV4::IdentifierHash &properties = data->detachedPropertyNames();-
310 int idx = properties.value(name);-
311 if (idx == -1) {
idx == -1Description
TRUEevaluated 5146 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEevaluated 13868 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
5146-13868
312 properties.add(name, data->idValueCount + d->propertyValues.count());-
313 d->propertyValues.append(value);-
314-
315 data->refreshExpressions();-
316 } else {
executed 5146 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
5146
317 d->propertyValues[idx] = value;-
318 QMetaObject::activate(this, d->notifyIndex, idx, nullptr);-
319 }
executed 13868 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
13868
320}-
321-
322/*!-
323 Set the \a value of the \a name property on this context.-
324-
325 QQmlContext does \b not take ownership of \a value.-
326*/-
327void QQmlContext::setContextProperty(const QString &name, QObject *value)-
328{-
329 setContextProperty(name, QVariant::fromValue(value));-
330}
executed 5664 times by 25 tests: end of block
Executed by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
5664
331-
332/*!-
333 \since 5.11-
334-
335 Set a batch of \a properties on this context.-
336-
337 Setting all properties in one batch avoids unnecessary-
338 refreshing expressions, and is therefore recommended-
339 instead of calling \l setContextProperty() for each individual property.-
340-
341 \sa QQmlContext::setContextProperty()-
342*/-
343void QQmlContext::setContextProperties(const QVector<PropertyPair> &properties)-
344{-
345 Q_D(const QQmlContext);-
346-
347 QQmlContextData *data = d->data;-
348-
349 QQmlJavaScriptExpression *expressions = data->expressions;-
350 QQmlContextData *childContexts = data->childContexts;-
351-
352 data->expressions = nullptr;-
353 data->childContexts = nullptr;-
354-
355 for (auto property : properties)-
356 setContextProperty(property.name, property.value);
executed 10 times by 1 test: setContextProperty(property.name, property.value);
Executed by:
  • tst_qqmlcontext
10
357-
358 data->expressions = expressions;-
359 data->childContexts = childContexts;-
360-
361 data->refreshExpressions();-
362}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlcontext
2
363-
364/*!-
365 \since 5.11-
366-
367 \class QQmlContext::PropertyPair-
368 \inmodule QtQml-
369-
370 This struct contains a property name and a property value.-
371 It is used as a parameter for the \c setContextProperties function.-
372-
373 \sa QQmlContext::setContextProperties()-
374*/-
375-
376/*!-
377 Returns the value of the \a name property for this context-
378 as a QVariant.-
379 */-
380QVariant QQmlContext::contextProperty(const QString &name) const-
381{-
382 Q_D(const QQmlContext);-
383 QVariant value;-
384 int idx = -1;-
385-
386 QQmlContextData *data = d->data;-
387-
388 const QV4::IdentifierHash &properties = data->propertyNames();-
389 if (properties.count())
properties.count()Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qquickrepeater
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlcontext
4-12
390 idx = properties.value(name);
executed 12 times by 2 tests: idx = properties.value(name);
Executed by:
  • tst_qqmlcontext
  • tst_qquickrepeater
12
391-
392 if (idx == -1) {
idx == -1Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qquickrepeater
8
393 if (data->contextObject) {
data->contextObjectDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlcontext
4
394 QObject *obj = data->contextObject;-
395 QQmlPropertyData local;-
396 QQmlPropertyData *property =-
397 QQmlPropertyCache::property(data->engine, obj, name, data, local);-
398-
399 if (property) value = obj->metaObject()->property(property->coreIndex()).read(obj);
never executed: value = obj->metaObject()->property(property->coreIndex()).read(obj);
propertyDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlcontext
0-4
400 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlcontext
4
401 if (!value.isValid() && parentContext())
!value.isValid()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEnever evaluated
parentContext()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlcontext
0-8
402 value = parentContext()->contextProperty(name);
executed 4 times by 1 test: value = parentContext()->contextProperty(name);
Executed by:
  • tst_qqmlcontext
4
403 } else {
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlcontext
8
404 if (idx >= d->propertyValues.count())
idx >= d->prop...Values.count()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qquickrepeater
FALSEnever evaluated
0-8
405 value = QVariant::fromValue(data->idValues[idx - d->propertyValues.count()].data());
executed 8 times by 2 tests: value = QVariant::fromValue(data->idValues[idx - d->propertyValues.count()].data());
Executed by:
  • tst_qqmlcontext
  • tst_qquickrepeater
8
406 else-
407 value = d->propertyValues[idx];
never executed: value = d->propertyValues[idx];
0
408 }-
409-
410 return value;
executed 16 times by 2 tests: return value;
Executed by:
  • tst_qqmlcontext
  • tst_qquickrepeater
16
411}-
412-
413/*!-
414Returns the name of \a object in this context, or an empty string if \a object-
415is not named in the context. Objects are named by setContextProperty(), or by ids in-
416the case of QML created contexts.-
417-
418If the object has multiple names, the first is returned.-
419*/-
420QString QQmlContext::nameForObject(QObject *object) const-
421{-
422 Q_D(const QQmlContext);-
423-
424 return d->data->findObjectId(object);
executed 12 times by 1 test: return d->data->findObjectId(object);
Executed by:
  • tst_qqmlcontext
12
425}-
426-
427/*!-
428 Resolves the URL \a src relative to the URL of the-
429 containing component.-
430-
431 \sa QQmlEngine::baseUrl(), setBaseUrl()-
432*/-
433QUrl QQmlContext::resolvedUrl(const QUrl &src)-
434{-
435 Q_D(QQmlContext);-
436 return d->data->resolvedUrl(src);
executed 14 times by 1 test: return d->data->resolvedUrl(src);
Executed by:
  • tst_qqmlcontext
14
437}-
438-
439QUrl QQmlContextData::resolvedUrl(const QUrl &src)-
440{-
441 QQmlContextData *ctxt = this;-
442-
443 QUrl resolved;-
444 if (src.isRelative() && !src.isEmpty()) {
src.isRelative()Description
TRUEevaluated 756 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
FALSEevaluated 14 times by 4 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlqt
  • tst_qquickloader
!src.isEmpty()Description
TRUEevaluated 756 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
FALSEnever evaluated
0-756
445 if (ctxt) {
ctxtDescription
TRUEevaluated 756 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
FALSEnever evaluated
0-756
446 while(ctxt) {
ctxtDescription
TRUEevaluated 762 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlproperty
8-762
447 if (ctxt->url().isValid())
ctxt->url().isValid()Description
TRUEevaluated 748 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlproperty
14-748
448 break;
executed 748 times by 22 tests: break;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
748
449 else-
450 ctxt = ctxt->parent;
executed 14 times by 2 tests: ctxt = ctxt->parent;
Executed by:
  • tst_qqmlcontext
  • tst_qqmlproperty
14
451 }-
452-
453 if (ctxt)
ctxtDescription
TRUEevaluated 748 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlproperty
8-748
454 resolved = ctxt->url().resolved(src);
executed 748 times by 22 tests: resolved = ctxt->url().resolved(src);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
748
455 else if (engine)
engineDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlproperty
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlcontext
2-6
456 resolved = engine->baseUrl().resolved(src);
executed 6 times by 2 tests: resolved = engine->baseUrl().resolved(src);
Executed by:
  • tst_qqmlcontext
  • tst_qqmlproperty
6
457 }
executed 756 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
756
458 } else {
executed 756 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
756
459 resolved = src;-
460 }
executed 14 times by 4 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlqt
  • tst_qquickloader
14
461-
462 if (resolved.isEmpty()) //relative but no ctxt
resolved.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 768 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
2-768
463 return resolved;
executed 2 times by 1 test: return resolved;
Executed by:
  • tst_qqmlcontext
2
464-
465 if (engine && engine->urlInterceptor())
engineDescription
TRUEevaluated 765 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlxmlhttprequest
engine->urlInterceptor()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmltypeloader
FALSEevaluated 761 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
3-765
466 resolved = engine->urlInterceptor()->intercept(resolved, QQmlAbstractUrlInterceptor::UrlString);
executed 4 times by 1 test: resolved = engine->urlInterceptor()->intercept(resolved, QQmlAbstractUrlInterceptor::UrlString);
Executed by:
  • tst_qqmltypeloader
4
467 return resolved;
executed 768 times by 22 tests: return resolved;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qtqmlmodules
768
468}-
469-
470-
471/*!-
472 Explicitly sets the url resolvedUrl() will use for relative references to \a baseUrl.-
473-
474 Calling this function will override the url of the containing-
475 component used by default.-
476-
477 \sa resolvedUrl()-
478*/-
479void QQmlContext::setBaseUrl(const QUrl &baseUrl)-
480{-
481 Q_D(QQmlContext);-
482-
483 d->data->baseUrl = baseUrl;-
484 d->data->baseUrlString = baseUrl.toString();-
485}
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlcontext
8
486-
487/*!-
488 Returns the base url of the component, or the containing component-
489 if none is set.-
490*/-
491QUrl QQmlContext::baseUrl() const-
492{-
493 Q_D(const QQmlContext);-
494 const QQmlContextData* data = d->data;-
495 while (data && data->url().isEmpty())
dataDescription
TRUEevaluated 4368 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
  • tst_qqmltranslation
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextdocument
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 1032 times by 4 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
  • tst_qquicktext
  • tst_qquicktextedit
data->url().isEmpty()Description
TRUEevaluated 2124 times by 7 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 2244 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmltranslation
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextdocument
  • tst_qquicktextedit
  • tst_qquicktextinput
1032-4368
496 data = data->parent;
executed 2124 times by 7 tests: data = data->parent;
Executed by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
2124
497-
498 if (data)
dataDescription
TRUEevaluated 2244 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmltranslation
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextdocument
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 1032 times by 4 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
  • tst_qquicktext
  • tst_qquicktextedit
1032-2244
499 return data->url();
executed 2244 times by 12 tests: return data->url();
Executed by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmltranslation
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextdocument
  • tst_qquicktextedit
  • tst_qquicktextinput
2244
500 else-
501 return QUrl();
executed 1032 times by 4 tests: return QUrl();
Executed by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
  • tst_qquicktext
  • tst_qquicktextedit
1032
502}-
503-
504int QQmlContextPrivate::context_count(QQmlListProperty<QObject> *prop)-
505{-
506 QQmlContext *context = static_cast<QQmlContext*>(prop->object);-
507 QQmlContextPrivate *d = QQmlContextPrivate::get(context);-
508 int contextProperty = (int)(quintptr)prop->data;-
509-
510 if (d->propertyValues.at(contextProperty).userType() != qMetaTypeId<QList<QObject*> >()) {
d->propertyVal...<QObject*> >()Description
TRUEnever evaluated
FALSEevaluated 1696 times by 2 tests
Evaluated by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
0-1696
511 return 0;
never executed: return 0;
0
512 } else {-
513 return ((const QList<QObject> *)d->propertyValues.at(contextProperty).constData())->count();
executed 1696 times by 2 tests: return ((const QList<QObject> *)d->propertyValues.at(contextProperty).constData())->count();
Executed by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1696
514 }-
515}-
516-
517QObject *QQmlContextPrivate::context_at(QQmlListProperty<QObject> *prop, int index)-
518{-
519 QQmlContext *context = static_cast<QQmlContext*>(prop->object);-
520 QQmlContextPrivate *d = QQmlContextPrivate::get(context);-
521 int contextProperty = (int)(quintptr)prop->data;-
522-
523 if (d->propertyValues.at(contextProperty).userType() != qMetaTypeId<QList<QObject*> >()) {
d->propertyVal...<QObject*> >()Description
TRUEnever evaluated
FALSEevaluated 440 times by 2 tests
Evaluated by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
0-440
524 return nullptr;
never executed: return nullptr;
0
525 } else {-
526 return ((const QList<QObject*> *)d->propertyValues.at(contextProperty).constData())->at(index);
executed 440 times by 2 tests: return ((const QList<QObject*> *)d->propertyValues.at(contextProperty).constData())->at(index);
Executed by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
440
527 }-
528}-
529-
530-
531QQmlContextData::QQmlContextData()-
532 : QQmlContextData(nullptr)-
533{-
534}
executed 243429 times by 139 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
243429
535-
536QQmlContextData::QQmlContextData(QQmlContext *ctxt)-
537 : engine(nullptr), isInternal(false), isJSContext(false),-
538 isPragmaLibraryContext(false), unresolvedNames(false), hasEmittedDestruction(false), isRootObjectInCreation(false),-
539 stronglyReferencedByParent(false), publicContext(ctxt), incubator(nullptr), componentObjectIndex(-1),-
540 contextObject(nullptr), nextChild(nullptr), prevChild(nullptr),-
541 expressions(nullptr), contextObjects(nullptr), idValues(nullptr), idValueCount(0),-
542 componentAttached(nullptr)-
543{-
544}
executed 253503 times by 148 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
253503
545-
546void QQmlContextData::emitDestruction()-
547{-
548 if (!hasEmittedDestruction) {
!hasEmittedDestructionDescription
TRUEevaluated 253389 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
FALSEevaluated 582795 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
253389-582795
549 hasEmittedDestruction = true;-
550-
551 // Emit the destruction signal - must be emitted before invalidate so that the-
552 // context is still valid if bindings or resultant expression evaluation requires it-
553 if (engine) {
engineDescription
TRUEevaluated 252237 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
FALSEevaluated 1152 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
1152-252237
554 while (componentAttached) {
componentAttachedDescription
TRUEevaluated 4423 times by 58 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
FALSEevaluated 252237 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
4423-252237
555 QQmlComponentAttached *a = componentAttached;-
556 componentAttached = a->next;-
557 if (componentAttached) componentAttached->prev = &componentAttached;
executed 18 times by 1 test: componentAttached->prev = &componentAttached;
Executed by:
  • tst_examples
componentAttachedDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 4405 times by 58 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
18-4405
558-
559 a->next = nullptr;-
560 a->prev = nullptr;-
561-
562 emit a->destruction();-
563 }
executed 4423 times by 58 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
4423
564-
565 QQmlContextData * child = childContexts;-
566 while (child) {
childDescription
TRUEevaluated 206110 times by 77 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
FALSEevaluated 252237 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
206110-252237
567 child->emitDestruction();-
568 child = child->nextChild;-
569 }
executed 206110 times by 77 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
206110
570 }
executed 252237 times by 148 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
252237
571 }
executed 253389 times by 148 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
253389
572}
executed 836184 times by 148 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
836184
573-
574void QQmlContextData::invalidate()-
575{-
576 emitDestruction();-
577-
578 while (childContexts) {
childContextsDescription
TRUEevaluated 206090 times by 77 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
FALSEevaluated 384600 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
206090-384600
579 Q_ASSERT(childContexts != this);-
580 if (childContexts->stronglyReferencedByParent && !--childContexts->refCount)
childContexts-...rencedByParentDescription
TRUEevaluated 472 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 205618 times by 77 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
!--childContexts->refCountDescription
TRUEevaluated 472 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-205618
581 childContexts->destroy();
executed 472 times by 3 tests: childContexts->destroy();
Executed by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
472
582 else-
583 childContexts->invalidate();
executed 205618 times by 77 tests: childContexts->invalidate();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
205618
584 }-
585-
586 if (prevChild) {
prevChildDescription
TRUEevaluated 244515 times by 139 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
FALSEevaluated 140085 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
140085-244515
587 *prevChild = nextChild;-
588 if (nextChild) nextChild->prevChild = prevChild;
executed 132120 times by 55 tests: nextChild->prevChild = prevChild;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • ...
nextChildDescription
TRUEevaluated 132120 times by 55 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • ...
FALSEevaluated 112395 times by 139 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
112395-132120
589 nextChild = nullptr;-
590 prevChild = nullptr;-
591 }
executed 244515 times by 139 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
244515
592-
593 importedScripts.clear();-
594-
595 engine = nullptr;-
596 parent = nullptr;-
597}
executed 384600 times by 148 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
384600
598-
599void QQmlContextData::clearContextRecursively()-
600{-
601 clearContext();-
602-
603 for (auto ctxIt = childContexts; ctxIt; ctxIt = ctxIt->nextChild)
ctxItDescription
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
FALSEevaluated 211 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
13-211
604 ctxIt->clearContextRecursively();
executed 13 times by 2 tests: ctxIt->clearContextRecursively();
Executed by:
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
13
605}
executed 211 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
211
606-
607void QQmlContextData::clearContext()-
608{-
609 emitDestruction();-
610-
611 QQmlJavaScriptExpression *expression = expressions;-
612 while (expression) {
expressionDescription
TRUEevaluated 111137 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquickvisualdatamodel
FALSEevaluated 232015 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
111137-232015
613 QQmlJavaScriptExpression *nextExpression = expression->m_nextExpression;-
614-
615 expression->m_prevExpression = nullptr;-
616 expression->m_nextExpression = nullptr;-
617-
618 expression->setContext(nullptr);-
619-
620 expression = nextExpression;-
621 }
executed 111137 times by 19 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquickvisualdatamodel
111137
622 expressions = nullptr;-
623}
executed 232015 times by 148 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
232015
624-
625void QQmlContextData::destroy()-
626{-
627 Q_ASSERT(refCount == 0);-
628 linkedContext = nullptr;-
629-
630 // avoid recursion-
631 ++refCount;-
632 if (engine)
engineDescription
TRUEevaluated 9537 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
FALSEevaluated 199999 times by 134 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
9537-199999
633 invalidate();
executed 9537 times by 148 tests: invalidate();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
9537
634-
635 Q_ASSERT(refCount == 1);-
636 clearContext();-
637 Q_ASSERT(refCount == 1);-
638-
639 while (contextObjects) {
contextObjectsDescription
TRUEevaluated 29711 times by 80 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
FALSEevaluated 209536 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
29711-209536
640 QQmlData *co = contextObjects;-
641 contextObjects = contextObjects->nextContextObject;-
642-
643 co->context = nullptr;-
644 co->outerContext = nullptr;-
645 co->nextContextObject = nullptr;-
646 co->prevContextObject = nullptr;-
647 }
executed 29711 times by 80 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
29711
648 Q_ASSERT(refCount == 1);-
649-
650 QQmlGuardedContextData *contextGuard = contextGuards;-
651 while (contextGuard) {
contextGuardDescription
TRUEevaluated 6195 times by 106 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltranslation
  • ...
FALSEevaluated 209536 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
6195-209536
652 QQmlGuardedContextData *next = contextGuard->m_next;-
653 contextGuard->m_next = nullptr;-
654 contextGuard->m_prev = nullptr;-
655 contextGuard->m_contextData = nullptr;-
656 contextGuard = next;-
657 }
executed 6195 times by 106 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltranslation
  • ...
6195
658 contextGuards = nullptr;-
659 Q_ASSERT(refCount == 1);-
660-
661 delete [] idValues;-
662 idValues = nullptr;-
663-
664 Q_ASSERT(refCount == 1);-
665 if (publicContext) {
publicContextDescription
TRUEevaluated 59444 times by 63 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
FALSEevaluated 150092 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
59444-150092
666 // the QQmlContext destructor will remove one ref again-
667 ++refCount;-
668 delete publicContext;-
669 }
executed 59444 times by 63 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
59444
670-
671 Q_ASSERT(refCount == 1);-
672 --refCount;-
673 Q_ASSERT(refCount == 0);-
674-
675 delete this;-
676}
executed 209536 times by 148 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
209536
677-
678void QQmlContextData::setParent(QQmlContextData *p, bool stronglyReferencedByParent)-
679{-
680 if (p == parent)
p == parentDescription
TRUEnever evaluated
FALSEevaluated 244617 times by 139 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
0-244617
681 return;
never executed: return;
0
682 if (p) {
pDescription
TRUEevaluated 244617 times by 139 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
FALSEnever evaluated
0-244617
683 Q_ASSERT(!parent);-
684 parent = p;-
685 this->stronglyReferencedByParent = stronglyReferencedByParent;-
686 if (stronglyReferencedByParent)
stronglyReferencedByParentDescription
TRUEevaluated 472 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 244145 times by 139 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
472-244145
687 ++refCount; // balanced in QQmlContextData::invalidate()
executed 472 times by 3 tests: ++refCount;
Executed by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
472
688 engine = p->engine;-
689 nextChild = p->childContexts;-
690 if (nextChild) nextChild->prevChild = &nextChild;
executed 135259 times by 64 tests: nextChild->prevChild = &nextChild;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • ...
nextChildDescription
TRUEevaluated 135259 times by 64 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • ...
FALSEevaluated 109358 times by 139 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
109358-135259
691 prevChild = &p->childContexts;-
692 p->childContexts = this;-
693 }
executed 244617 times by 139 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
244617
694}
executed 244617 times by 139 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
244617
695-
696void QQmlContextData::refreshExpressionsRecursive(QQmlJavaScriptExpression *expression)-
697{-
698 QQmlJavaScriptExpression::DeleteWatcher w(expression);-
699-
700 if (expression->m_nextExpression)
expression->m_nextExpressionDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmltranslation
FALSEevaluated 24 times by 3 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmltranslation
  • tst_qquickdesignersupport
10-24
701 refreshExpressionsRecursive(expression->m_nextExpression);
executed 10 times by 1 test: refreshExpressionsRecursive(expression->m_nextExpression);
Executed by:
  • tst_qqmltranslation
10
702-
703 if (!w.wasDeleted())
!w.wasDeleted()Description
TRUEevaluated 34 times by 3 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmltranslation
  • tst_qquickdesignersupport
FALSEnever evaluated
0-34
704 expression->refresh();
executed 34 times by 3 tests: expression->refresh();
Executed by:
  • tst_qqmlcontext
  • tst_qqmltranslation
  • tst_qquickdesignersupport
34
705}
executed 34 times by 3 tests: end of block
Executed by:
  • tst_qqmlcontext
  • tst_qqmltranslation
  • tst_qquickdesignersupport
34
706-
707QQmlContextData::~QQmlContextData()-
708{-
709}-
710-
711static inline bool expressions_to_run(QQmlContextData *ctxt, bool isGlobalRefresh)-
712{-
713 return ctxt->expressions && (!isGlobalRefresh || ctxt->unresolvedNames);
executed 12720 times by 42 tests: return ctxt->expressions && (!isGlobalRefresh || ctxt->unresolvedNames);
Executed by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickdesignersupport
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • ...
12720
714}-
715-
716void QQmlContextData::refreshExpressionsRecursive(bool isGlobal)-
717{-
718 // For efficiency, we try and minimize the number of guards we have to create-
719 if (expressions_to_run(this, isGlobal) && (nextChild || childContexts)) {
expressions_to...his, isGlobal)Description
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qquickdesignersupport
FALSEevaluated 256 times by 6 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltranslation
  • tst_qquickdesignersupport
  • tst_qquickfontloader
nextChildDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qquickdesignersupport
childContextsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickdesignersupport
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlcontext
2-256
720 QQmlGuardedContextData guard(this);-
721-
722 if (childContexts)
childContextsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickdesignersupport
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlcontext
2-10
723 childContexts->refreshExpressionsRecursive(isGlobal);
executed 2 times by 1 test: childContexts->refreshExpressionsRecursive(isGlobal);
Executed by:
  • tst_qquickdesignersupport
2
724-
725 if (guard.isNull()) return;
never executed: return;
guard.isNull()Description
TRUEnever evaluated
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qquickdesignersupport
0-12
726-
727 if (nextChild)
nextChildDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickdesignersupport
2-10
728 nextChild->refreshExpressionsRecursive(isGlobal);
executed 10 times by 1 test: nextChild->refreshExpressionsRecursive(isGlobal);
Executed by:
  • tst_qqmlcontext
10
729-
730 if (guard.isNull()) return;
never executed: return;
guard.isNull()Description
TRUEnever evaluated
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qquickdesignersupport
0-12
731-
732 if (expressions_to_run(this, isGlobal))
expressions_to...his, isGlobal)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qquickdesignersupport
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlcontext
2-10
733 refreshExpressionsRecursive(expressions);
executed 10 times by 2 tests: refreshExpressionsRecursive(expressions);
Executed by:
  • tst_qqmlcontext
  • tst_qquickdesignersupport
10
734-
735 } else if (expressions_to_run(this, isGlobal)) {
executed 12 times by 2 tests: end of block
Executed by:
  • tst_qqmlcontext
  • tst_qquickdesignersupport
expressions_to...his, isGlobal)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 256 times by 6 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltranslation
  • tst_qquickdesignersupport
  • tst_qquickfontloader
12-256
736-
737 refreshExpressionsRecursive(expressions);-
738-
739 } else if (nextChild && childContexts) {
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlcontext
nextChildDescription
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qquickfontloader
FALSEevaluated 240 times by 6 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltranslation
  • tst_qquickdesignersupport
  • tst_qquickfontloader
childContextsDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qquickfontloader
4-240
740-
741 QQmlGuardedContextData guard(this);-
742-
743 childContexts->refreshExpressionsRecursive(isGlobal);-
744-
745 if (!guard.isNull() && nextChild)
!guard.isNull()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEnever evaluated
nextChildDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEnever evaluated
0-4
746 nextChild->refreshExpressionsRecursive(isGlobal);
executed 4 times by 1 test: nextChild->refreshExpressionsRecursive(isGlobal);
Executed by:
  • tst_qqmlcontext
4
747-
748 } else if (nextChild) {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlcontext
nextChildDescription
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qquickfontloader
FALSEevaluated 240 times by 6 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltranslation
  • tst_qquickdesignersupport
  • tst_qquickfontloader
4-240
749-
750 nextChild->refreshExpressionsRecursive(isGlobal);-
751-
752 } else if (childContexts) {
executed 12 times by 2 tests: end of block
Executed by:
  • tst_qqmlcontext
  • tst_qquickfontloader
childContextsDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 232 times by 6 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltranslation
  • tst_qquickdesignersupport
  • tst_qquickfontloader
8-232
753-
754 childContexts->refreshExpressionsRecursive(isGlobal);-
755-
756 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlcontext
8
757}
executed 280 times by 6 tests: end of block
Executed by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltranslation
  • tst_qquickdesignersupport
  • tst_qquickfontloader
280
758-
759// Refreshes all expressions that could possibly depend on this context. Refreshing flushes all-
760// context-tree dependent caches in the expressions, and should occur every time the context tree-
761// *structure* (not values) changes.-
762void QQmlContextData::refreshExpressions()-
763{-
764 bool isGlobal = (parent == nullptr);-
765-
766 // For efficiency, we try and minimize the number of guards we have to create-
767 if (expressions_to_run(this, isGlobal) && childContexts) {
expressions_to...his, isGlobal)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmltranslation
FALSEevaluated 6078 times by 41 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickdesignersupport
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • ...
childContextsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmltranslation
FALSEnever evaluated
0-6078
768 QQmlGuardedContextData guard(this);-
769-
770 childContexts->refreshExpressionsRecursive(isGlobal);-
771-
772 if (!guard.isNull() && expressions_to_run(this, isGlobal))
!guard.isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmltranslation
FALSEnever evaluated
expressions_to...his, isGlobal)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmltranslation
FALSEnever evaluated
0-2
773 refreshExpressionsRecursive(expressions);
executed 2 times by 1 test: refreshExpressionsRecursive(expressions);
Executed by:
  • tst_qqmltranslation
2
774-
775 } else if (expressions_to_run(this, isGlobal)) {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmltranslation
expressions_to...his, isGlobal)Description
TRUEnever evaluated
FALSEevaluated 6078 times by 41 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickdesignersupport
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • ...
0-6078
776-
777 refreshExpressionsRecursive(expressions);-
778-
779 } else if (childContexts) {
never executed: end of block
childContextsDescription
TRUEevaluated 238 times by 5 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickdesignersupport
  • tst_qquickfontloader
FALSEevaluated 5840 times by 39 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • ...
0-5840
780-
781 childContexts->refreshExpressionsRecursive(isGlobal);-
782-
783 }
executed 238 times by 5 tests: end of block
Executed by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickdesignersupport
  • tst_qquickfontloader
238
784}
executed 6080 times by 42 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickdesignersupport
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • ...
6080
785-
786void QQmlContextData::addObject(QObject *o)-
787{-
788 QQmlData *data = QQmlData::get(o, true);-
789-
790 Q_ASSERT(data->context == nullptr);-
791-
792 data->context = this;-
793 data->outerContext = this;-
794-
795 data->nextContextObject = contextObjects;-
796 if (data->nextContextObject)
data->nextContextObjectDescription
TRUEevaluated 367222 times by 122 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • ...
FALSEevaluated 157524 times by 139 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
157524-367222
797 data->nextContextObject->prevContextObject = &data->nextContextObject;
executed 367222 times by 122 tests: data->nextContextObject->prevContextObject = &data->nextContextObject;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • ...
367222
798 data->prevContextObject = &contextObjects;-
799 contextObjects = data;-
800}
executed 524746 times by 139 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
524746
801-
802void QQmlContextData::setIdProperty(int idx, QObject *obj)-
803{-
804 idValues[idx] = obj;-
805 idValues[idx].context = this;-
806}
executed 218303 times by 114 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlmoduleplugin
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • ...
218303
807-
808QString QQmlContextData::findObjectId(const QObject *obj) const-
809{-
810 const QV4::IdentifierHash &properties = propertyNames();-
811 if (propertyNameCache.isEmpty())
propertyNameCache.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 1094 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
0-1094
812 return QString();
never executed: return QString();
0
813-
814 for (int ii = 0; ii < idValueCount; ii++) {
ii < idValueCountDescription
TRUEevaluated 1018 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
FALSEevaluated 712 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
712-1018
815 if (idValues[ii] == obj)
idValues[ii] == objDescription
TRUEevaluated 382 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
FALSEevaluated 636 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
382-636
816 return properties.findId(ii);
executed 382 times by 2 tests: return properties.findId(ii);
Executed by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
382
817 }
executed 636 times by 2 tests: end of block
Executed by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
636
818-
819 if (publicContext) {
publicContextDescription
TRUEevaluated 712 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
FALSEnever evaluated
0-712
820 QQmlContextPrivate *p = QQmlContextPrivate::get(publicContext);-
821 for (int ii = 0; ii < p->propertyValues.count(); ++ii)
ii < p->propertyValues.count()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 708 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
12-708
822 if (p->propertyValues.at(ii) == QVariant::fromValue(const_cast<QObject *>(obj)))
p->propertyVal...bject *>(obj))Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlcontext
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlcontext
4-8
823 return properties.findId(ii);
executed 4 times by 1 test: return properties.findId(ii);
Executed by:
  • tst_qqmlcontext
4
824 }
executed 708 times by 2 tests: end of block
Executed by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
708
825-
826 if (linkedContext)
linkedContextDescription
TRUEnever evaluated
FALSEevaluated 708 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
0-708
827 return linkedContext->findObjectId(obj);
never executed: return linkedContext->findObjectId(obj);
0
828 return QString();
executed 708 times by 2 tests: return QString();
Executed by:
  • tst_qqmlcontext
  • tst_qqmlenginedebugservice
708
829}-
830-
831QQmlContext *QQmlContextData::asQQmlContext()-
832{-
833 if (!publicContext)
!publicContextDescription
TRUEevaluated 60368 times by 66 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
FALSEevaluated 1635028 times by 67 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • ...
60368-1635028
834 publicContext = new QQmlContext(this);
executed 60368 times by 66 tests: publicContext = new QQmlContext(this);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
60368
835 return publicContext;
executed 1695396 times by 75 tests: return publicContext;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
1695396
836}-
837-
838QQmlContextPrivate *QQmlContextData::asQQmlContextPrivate()-
839{-
840 return QQmlContextPrivate::get(asQQmlContext());
executed 334097 times by 32 tests: return QQmlContextPrivate::get(asQQmlContext());
Executed by:
  • tst_examples
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
334097
841}-
842-
843void QQmlContextData::initFromTypeCompilationUnit(const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &unit, int subComponentIndex)-
844{-
845 typeCompilationUnit = unit;-
846 componentObjectIndex = subComponentIndex == -1 ? /*root object*/0 : subComponentIndex;
subComponentIndex == -1Description
TRUEevaluated 58081 times by 139 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
FALSEevaluated 95035 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • ...
58081-95035
847 Q_ASSERT(!idValues);-
848 idValueCount = typeCompilationUnit->data->objectAt(componentObjectIndex)->nNamedObjectsInComponent;-
849 idValues = new ContextGuard[idValueCount];-
850}
executed 153116 times by 139 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
153116
851-
852const QV4::IdentifierHash &QQmlContextData::propertyNames() const-
853{-
854 if (propertyNameCache.isEmpty()) {
propertyNameCache.isEmpty()Description
TRUEevaluated 225106 times by 84 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
FALSEevaluated 4576410 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
225106-4576410
855 if (typeCompilationUnit)
typeCompilationUnitDescription
TRUEevaluated 136373 times by 84 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
FALSEevaluated 88733 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
88733-136373
856 propertyNameCache = typeCompilationUnit->namedObjectsPerComponent(componentObjectIndex);
executed 136373 times by 84 tests: propertyNameCache = typeCompilationUnit->namedObjectsPerComponent(componentObjectIndex);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
136373
857 else-
858 propertyNameCache = QV4::IdentifierHash(engine->handle());
executed 88733 times by 77 tests: propertyNameCache = QV4::IdentifierHash(engine->handle());
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
88733
859 }-
860 return propertyNameCache;
executed 4801516 times by 84 tests: return propertyNameCache;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
4801516
861}-
862-
863QV4::IdentifierHash &QQmlContextData::detachedPropertyNames()-
864{-
865 propertyNames();-
866 propertyNameCache.detach();-
867 return propertyNameCache;
executed 19014 times by 34 tests: return propertyNameCache;
Executed by:
  • tst_examples
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
19014
868}-
869-
870QUrl QQmlContextData::url() const-
871{-
872 if (typeCompilationUnit)
typeCompilationUnitDescription
TRUEevaluated 8538 times by 46 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • ...
FALSEevaluated 1316 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
1316-8538
873 return typeCompilationUnit->finalUrl();
executed 8538 times by 46 tests: return typeCompilationUnit->finalUrl();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • ...
8538
874 return baseUrl;
executed 1316 times by 14 tests: return baseUrl;
Executed by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
1316
875}-
876-
877QString QQmlContextData::urlString() const-
878{-
879 if (typeCompilationUnit)
typeCompilationUnitDescription
TRUEevaluated 36744 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_scenegraph
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmltranslation
18-36744
880 return typeCompilationUnit->finalUrlString();
executed 36744 times by 16 tests: return typeCompilationUnit->finalUrlString();
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_scenegraph
36744
881 return baseUrlString;
executed 18 times by 1 test: return baseUrlString;
Executed by:
  • tst_qqmltranslation
18
882}-
883-
884QT_END_NAMESPACE-
885-
886#include "moc_qqmlcontext.cpp"-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0