OpenCoverage

qqmlbinding.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlbinding.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 "qqmlbinding_p.h"-
41-
42#include "qqml.h"-
43#include "qqmlcontext.h"-
44#include "qqmlinfo.h"-
45#include "qqmldata_p.h"-
46#include <private/qqmlprofiler_p.h>-
47#include <private/qqmlexpression_p.h>-
48#include <private/qqmlscriptstring_p.h>-
49#include <private/qqmlbuiltinfunctions_p.h>-
50#include <private/qqmlvmemetaobject_p.h>-
51#include <private/qqmlvaluetypewrapper_p.h>-
52#include <private/qv4qobjectwrapper_p.h>-
53#include <private/qv4variantobject_p.h>-
54#include <private/qv4jscall_p.h>-
55-
56#include <QVariant>-
57#include <QtCore/qdebug.h>-
58#include <QVector>-
59-
60QT_BEGIN_NAMESPACE-
61-
62QQmlBinding *QQmlBinding::create(const QQmlPropertyData *property, const QQmlScriptString &script, QObject *obj, QQmlContext *ctxt)-
63{-
64 QQmlBinding *b = newBinding(QQmlEnginePrivate::get(ctxt), property);-
65-
66 if (ctxt && !ctxt->isValid())
ctxtDescription
TRUEevaluated 76 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
FALSEnever evaluated
!ctxt->isValid()Description
TRUEnever evaluated
FALSEevaluated 76 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
0-76
67 return b;
never executed: return b;
0
68-
69 const QQmlScriptStringPrivate *scriptPrivate = script.d.data();-
70 if (!ctxt && (!scriptPrivate->context || !scriptPrivate->context->isValid()))
!ctxtDescription
TRUEnever evaluated
FALSEevaluated 76 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
!scriptPrivate->contextDescription
TRUEnever evaluated
FALSEnever evaluated
!scriptPrivate...ext->isValid()Description
TRUEnever evaluated
FALSEnever evaluated
0-76
71 return b;
never executed: return b;
0
72-
73 QString url;-
74 QV4::Function *runtimeFunction = nullptr;-
75-
76 QQmlContextData *ctxtdata = QQmlContextData::get(scriptPrivate->context);-
77 QQmlEnginePrivate *engine = QQmlEnginePrivate::get(scriptPrivate->context->engine());-
78 if (engine && ctxtdata && !ctxtdata->urlString().isEmpty() && ctxtdata->typeCompilationUnit) {
engineDescription
TRUEevaluated 76 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
FALSEnever evaluated
ctxtdataDescription
TRUEevaluated 76 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
FALSEnever evaluated
!ctxtdata->url...ng().isEmpty()Description
TRUEevaluated 76 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
FALSEnever evaluated
0-76
79 url = ctxtdata->urlString();-
80 if (scriptPrivate->bindingId != QQmlBinding::Invalid)
scriptPrivate-...nding::InvalidDescription
TRUEevaluated 76 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
FALSEnever evaluated
0-76
81 runtimeFunction = ctxtdata->typeCompilationUnit->runtimeFunctions.at(scriptPrivate->bindingId);
executed 76 times by 4 tests: runtimeFunction = ctxtdata->typeCompilationUnit->runtimeFunctions.at(scriptPrivate->bindingId);
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
76
82 }
executed 76 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
76
83-
84 b->setNotifyOnValueChanged(true);-
85 b->QQmlJavaScriptExpression::setContext(QQmlContextData::get(ctxt ? ctxt : scriptPrivate->context));-
86 b->setScopeObject(obj ? obj : scriptPrivate->scope);-
87-
88 QV4::ExecutionEngine *v4 = b->context()->engine->handle();-
89 if (runtimeFunction) {
runtimeFunctionDescription
TRUEevaluated 76 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
FALSEnever evaluated
0-76
90 QV4::Scope scope(v4);-
91 QV4::Scoped<QV4::QmlContext> qmlContext(scope, QV4::QmlContext::create(v4->rootContext(), ctxtdata, b->scopeObject()));-
92 b->setupFunction(qmlContext, runtimeFunction);-
93 } else {
executed 76 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
76
94 QString code = scriptPrivate->script;-
95 b->createQmlBinding(b->context(), b->scopeObject(), code, url, scriptPrivate->lineNumber);-
96 }
never executed: end of block
0
97-
98 return b;
executed 76 times by 4 tests: return b;
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
76
99}-
100-
101QQmlSourceLocation QQmlBinding::sourceLocation() const-
102{-
103 if (m_sourceLocation)
m_sourceLocationDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 84 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickpathview
  • tst_qquicktextinput
4-84
104 return *m_sourceLocation;
executed 4 times by 1 test: return *m_sourceLocation;
Executed by:
  • tst_qqmlecmascript
4
105 return QQmlJavaScriptExpression::sourceLocation();
executed 84 times by 7 tests: return QQmlJavaScriptExpression::sourceLocation();
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickpathview
  • tst_qquicktextinput
84
106}-
107-
108void QQmlBinding::setSourceLocation(const QQmlSourceLocation &location)-
109{-
110 if (m_sourceLocation)
m_sourceLocationDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
FALSEevaluated 80 times by 8 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickloader
6-80
111 delete m_sourceLocation;
executed 6 times by 2 tests: delete m_sourceLocation;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
6
112 m_sourceLocation = new QQmlSourceLocation(location);-
113}
executed 86 times by 8 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickloader
86
114-
115-
116QQmlBinding *QQmlBinding::create(const QQmlPropertyData *property, const QString &str, QObject *obj,-
117 QQmlContextData *ctxt, const QString &url, quint16 lineNumber)-
118{-
119 QQmlBinding *b = newBinding(QQmlEnginePrivate::get(ctxt), property);-
120-
121 b->setNotifyOnValueChanged(true);-
122 b->QQmlJavaScriptExpression::setContext(ctxt);-
123 b->setScopeObject(obj);-
124-
125 b->createQmlBinding(ctxt, obj, str, url, lineNumber);-
126-
127 return b;
executed 40 times by 4 tests: return b;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickstates
40
128}-
129-
130QQmlBinding *QQmlBinding::create(const QQmlPropertyData *property, QV4::Function *function,-
131 QObject *obj, QQmlContextData *ctxt, QV4::ExecutionContext *scope)-
132{-
133 QQmlBinding *b = newBinding(QQmlEnginePrivate::get(ctxt), property);-
134-
135 b->setNotifyOnValueChanged(true);-
136 b->QQmlJavaScriptExpression::setContext(ctxt);-
137 b->setScopeObject(obj);-
138-
139 Q_ASSERT(scope);-
140 b->setupFunction(scope, function);-
141-
142 return b;
executed 553970 times by 120 tests: return b;
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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
553970
143}-
144-
145QQmlBinding::~QQmlBinding()-
146{-
147 delete m_sourceLocation;-
148}
executed 513476 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
513476
149-
150void QQmlBinding::setNotifyOnValueChanged(bool v)-
151{-
152 QQmlJavaScriptExpression::setNotifyOnValueChanged(v);-
153}
executed 1114695 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
1114695
154-
155void QQmlBinding::update(QQmlPropertyData::WriteFlags flags)-
156{-
157 if (!enabledFlag() || !context() || !context()->isValid())
!enabledFlag()Description
TRUEnever evaluated
FALSEevaluated 920764 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
!context()Description
TRUEevaluated 3116 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
FALSEevaluated 917648 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
!context()->isValid()Description
TRUEevaluated 26252 times by 74 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • ...
FALSEevaluated 891396 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
0-920764
158 return;
executed 29368 times by 74 tests: return;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • ...
29368
159-
160 // Check that the target has not been deleted-
161 if (QQmlData::wasDeleted(targetObject()))
QQmlData::wasD...argetObject())Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
FALSEevaluated 891388 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
8-891388
162 return;
executed 8 times by 2 tests: return;
Executed by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
8
163-
164 // Check for a binding update loop-
165 if (Q_UNLIKELY(updatingFlag())) {
__builtin_expe...lag()), false)Description
TRUEevaluated 20 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickitem2
FALSEevaluated 891368 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
20-891368
166 QQmlPropertyData *d = nullptr;-
167 QQmlPropertyData vtd;-
168 getPropertyData(&d, &vtd);-
169 Q_ASSERT(d);-
170 QQmlProperty p = QQmlPropertyPrivate::restore(targetObject(), *d, &vtd, nullptr);-
171 QQmlAbstractBinding::printBindingLoopError(p);-
172 return;
executed 20 times by 3 tests: return;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickitem2
20
173 }-
174 setUpdatingFlag(true);-
175-
176 DeleteWatcher watcher(this);-
177-
178 QQmlEngine *engine = context()->engine;-
179 QV4::Scope scope(engine->handle());-
180-
181 if (canUseAccessor())
canUseAccessor()Description
TRUEevaluated 890690 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
FALSEevaluated 678 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
678-890690
182 flags.setFlag(QQmlPropertyData::BypassInterceptor);
executed 890690 times by 120 tests: flags.setFlag(QQmlPropertyData::BypassInterceptor);
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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
890690
183-
184 QQmlBindingProfiler prof(QQmlEnginePrivate::get(engine)->profiler, function());-
185 doUpdate(watcher, flags, scope);-
186-
187 if (!watcher.wasDeleted())
!watcher.wasDeleted()Description
TRUEevaluated 891360 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
FALSEevaluated 8 times by 3 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
8-891360
188 setUpdatingFlag(false);
executed 891360 times by 121 tests: setUpdatingFlag(false);
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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
891360
189}
executed 891368 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
891368
190-
191QV4::ReturnedValue QQmlBinding::evaluate(bool *isUndefined)-
192{-
193 QV4::ExecutionEngine *v4 = context()->engine->handle();-
194 int argc = 0;-
195 const QV4::Value *argv = nullptr;-
196 const QV4::Value *thisObject = nullptr;-
197 QV4::BoundFunction *b = nullptr;-
198 if ((b = static_cast<QV4::BoundFunction *>(m_boundFunction.valueRef()))) {
(b = static_ca...n.valueRef()))Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 890698 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
6-890698
199 QV4::Heap::MemberData *args = b->boundArgs();-
200 if (args) {
argsDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-6
201 argc = args->values.size;-
202 argv = args->values.data();-
203 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
6
204 thisObject = &b->d()->boundThis;-
205 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
6
206 QV4::Scope scope(v4);-
207 QV4::JSCallData jsCall(scope, argc, argv, thisObject);-
208-
209 return QQmlJavaScriptExpression::evaluate(jsCall.callData(), isUndefined);
executed 890704 times by 120 tests: return QQmlJavaScriptExpression::evaluate(jsCall.callData(), isUndefined);
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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
890704
210}-
211-
212-
213// QQmlBindingBinding is for target properties which are of type "binding" (instead of, say, int or-
214// double). The reason for being is that GenericBinding::fastWrite needs a compile-time constant-
215// expression for the switch for the compiler to generate the optimal code, but-
216// qMetaTypeId<QQmlBinding *>() needs to be used for the ID. So QQmlBinding::newBinding uses that-
217// to instantiate this class.-
218class QQmlBindingBinding: public QQmlBinding-
219{-
220protected:-
221 void doUpdate(const DeleteWatcher &,-
222 QQmlPropertyData::WriteFlags flags, QV4::Scope &) override final-
223 {-
224 Q_ASSERT(!m_targetIndex.hasValueTypeIndex());-
225 QQmlPropertyData *pd = nullptr;-
226 getPropertyData(&pd, nullptr);-
227 QQmlBinding *thisPtr = this;-
228 pd->writeProperty(*m_target, &thisPtr, flags);-
229 }
executed 624 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
624
230};-
231-
232// For any target that's not a binding, we have a common doUpdate. However, depending on the type-
233// of the target property, there is a specialized write method.-
234class QQmlNonbindingBinding: public QQmlBinding-
235{-
236protected:-
237 void doUpdate(const DeleteWatcher &watcher,-
238 QQmlPropertyData::WriteFlags flags, QV4::Scope &scope) override-
239 {-
240 auto ep = QQmlEnginePrivate::get(scope.engine);-
241 ep->referenceScarceResources();-
242-
243 bool isUndefined = false;-
244-
245 QV4::ScopedValue result(scope, evaluate(&isUndefined));-
246-
247 bool error = false;-
248 if (!watcher.wasDeleted() && isAddedToObject() && !hasError())
!watcher.wasDeleted()Description
TRUEevaluated 890700 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
isAddedToObject()Description
TRUEevaluated 890694 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
!hasError()Description
TRUEevaluated 890068 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
FALSEevaluated 626 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
4-890700
249 error = !write(result, isUndefined, flags);
executed 890068 times by 120 tests: error = !write(result, isUndefined, flags);
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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
890068
250-
251 if (!watcher.wasDeleted()) {
!watcher.wasDeleted()Description
TRUEevaluated 890696 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
FALSEevaluated 8 times by 3 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
8-890696
252-
253 if (error) {
errorDescription
TRUEevaluated 88 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickpathview
  • tst_qquicktextinput
FALSEevaluated 890608 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
88-890608
254 delayedError()->setErrorLocation(sourceLocation());-
255 delayedError()->setErrorObject(m_target.data());-
256 }
executed 88 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickpathview
  • tst_qquicktextinput
88
257-
258 if (hasError()) {
hasError()Description
TRUEevaluated 714 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
FALSEevaluated 889982 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
714-889982
259 if (!delayedError()->addError(ep)) ep->warning(this->error(context()->engine));
executed 16 times by 3 tests: ep->warning(this->error(context()->engine));
Executed by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlproperty
!delayedError()->addError(ep)Description
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlproperty
FALSEevaluated 698 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
16-698
260 } else {
executed 714 times by 19 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
714
261 clearError();-
262 }
executed 889982 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
889982
263-
264 cancelPermanentGuards();-
265 }
executed 890696 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
890696
266-
267 ep->dereferenceScarceResources();-
268 }
executed 890704 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
890704
269-
270 virtual bool write(const QV4::Value &result, bool isUndefined, QQmlPropertyData::WriteFlags flags) = 0;-
271};-
272-
273template<int StaticPropType>-
274class GenericBinding: public QQmlNonbindingBinding-
275{-
276protected:-
277 // Returns true if successful, false if an error description was set on expression-
278 Q_ALWAYS_INLINE bool write(const QV4::Value &result, bool isUndefined,-
279 QQmlPropertyData::WriteFlags flags) override final-
280 {-
281 Q_ASSERT(targetObject());-
282-
283 QQmlPropertyData *pd;-
284 QQmlPropertyData vpd;-
285 getPropertyData(&pd, &vpd);-
286 Q_ASSERT(pd);-
287-
288 int propertyType = StaticPropType; // If the binding is specialized to a type, the if and switch below will be constant-folded.-
289 if (propertyType == QMetaType::UnknownType)
propertyType =...e::UnknownTypeDescription
TRUEevaluated 132724 times by 82 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
FALSEevaluated 732871 times by 74 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
132724-732871
290 propertyType = pd->propType();
executed 132724 times by 82 tests: propertyType = pd->propType();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
132724
291-
292 if (Q_LIKELY(!isUndefined && !vpd.isValid())) {
__builtin_expe...alid()), true)Description
TRUEevaluated 859497 times by 97 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
FALSEevaluated 6098 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
6098-859497
293 switch (propertyType) {-
294 case QMetaType::Bool:
executed 8262 times by 44 tests: case QMetaType::Bool:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • ...
8262
295 if (result.isBoolean())
result.isBoolean()Description
TRUEevaluated 8254 times by 44 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • ...
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qquickapplication
8-8254
296 return doStore<bool>(result.booleanValue(), pd, flags);
executed 8254 times by 44 tests: return doStore<bool>(result.booleanValue(), pd, flags);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • ...
8254
297 else-
298 return doStore<bool>(result.toBoolean(), pd, flags);
executed 8 times by 2 tests: return doStore<bool>(result.toBoolean(), pd, flags);
Executed by:
  • tst_qqmlbinding
  • tst_qquickapplication
8
299 case QMetaType::Int:
executed 33466 times by 38 tests: case QMetaType::Int:
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickapplication
  • tst_qquickdrag
  • tst_qquickflickable
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • ...
33466
300 if (result.isInteger())
result.isInteger()Description
TRUEevaluated 32085 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickapplication
  • tst_qquickdrag
  • tst_qquickflickable
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • ...
FALSEevaluated 1381 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlproperty
  • tst_qquickgridview
  • tst_qquickmousearea
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
1381-32085
301 return doStore<int>(result.integerValue(), pd, flags);
executed 32085 times by 34 tests: return doStore<int>(result.integerValue(), pd, flags);
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickapplication
  • tst_qquickdrag
  • tst_qquickflickable
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • ...
32085
302 else if (result.isNumber())
result.isNumber()Description
TRUEevaluated 1349 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquickmousearea
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 32 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
32-1349
303 return doStore<int>(result.doubleValue(), pd, flags);
executed 1349 times by 10 tests: return doStore<int>(result.doubleValue(), pd, flags);
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquickmousearea
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
1349
304 break;
executed 32 times by 3 tests: break;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
32
305 case QMetaType::Double:
executed 135807 times by 43 tests: case QMetaType::Double:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
135807
306 if (result.isNumber())
result.isNumber()Description
TRUEevaluated 135801 times by 43 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
6-135801
307 return doStore<double>(result.asDouble(), pd, flags);
executed 135801 times by 43 tests: return doStore<double>(result.asDouble(), pd, flags);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
135801
308 break;
executed 6 times by 2 tests: break;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
6
309 case QMetaType::Float:
executed 2 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_qqmlecmascript
2
310 if (result.isNumber())
result.isNumber()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-2
311 return doStore<float>(result.asDouble(), pd, flags);
executed 2 times by 1 test: return doStore<float>(result.asDouble(), pd, flags);
Executed by:
  • tst_qqmlecmascript
2
312 break;
never executed: break;
0
313 case QMetaType::QString:
executed 555154 times by 36 tests: case QMetaType::QString:
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
555154
314 if (result.isString())
result.isString()Description
TRUEevaluated 364170 times by 34 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
FALSEevaluated 190984 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
190984-364170
315 return doStore<QString>(result.toQStringNoThrow(), pd, flags);
executed 364170 times by 34 tests: return doStore<QString>(result.toQStringNoThrow(), pd, flags);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
364170
316 break;
executed 190984 times by 14 tests: break;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
190984
317 default:
executed 126806 times by 79 tests: default:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
126806
318 if (const QV4::QQmlValueTypeWrapper *vtw = result.as<const QV4::QQmlValueTypeWrapper>()) {
const QV4::QQm...TypeWrapper>()Description
TRUEevaluated 2702 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
  • ...
FALSEevaluated 124104 times by 76 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • ...
2702-124104
319 if (vtw->d()->valueType->typeId == pd->propType()) {
vtw->d()->valu...pd->propType()Description
TRUEevaluated 2470 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
FALSEevaluated 232 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_sharedimage
232-2470
320 return vtw->write(m_target.data(), pd->coreIndex());
executed 2470 times by 24 tests: return vtw->write(m_target.data(), pd->coreIndex());
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
2470
321 }-
322 }
executed 232 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_sharedimage
232
323 break;
executed 124336 times by 77 tests: break;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • ...
124336
324 }-
325 }-
326-
327 return slowWrite(*pd, vpd, result, isUndefined, flags);
executed 321456 times by 81 tests: return slowWrite(*pd, vpd, result, isUndefined, flags);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • ...
321456
328 }-
329-
330 template <typename T>-
331 Q_ALWAYS_INLINE bool doStore(T value, const QQmlPropertyData *pd, QQmlPropertyData::WriteFlags flags) const-
332 {-
333 void *o = &value;-
334 return pd->writeProperty(targetObject(), o, flags);
executed 541709 times by 75 tests: return pd->writeProperty(targetObject(), o, flags);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • ...
541709
335 }-
336};-
337-
338class QQmlTranslationBinding : public GenericBinding<QMetaType::QString> {-
339public:-
340 QQmlTranslationBinding(const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &compilationUnit, const QV4::CompiledData::Binding *binding)-
341 {-
342 setCompilationUnit(compilationUnit);-
343 m_binding = binding;-
344 }
executed 38 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlprofilerservice
  • tst_qqmltranslation
  • tst_qquicklayouts
  • tst_qquickstates
38
345-
346 QQmlSourceLocation sourceLocation() const override final-
347 {-
348 return QQmlSourceLocation(m_compilationUnit->fileName(), m_binding->valueLocation.line, m_binding->valueLocation.column);
never executed: return QQmlSourceLocation(m_compilationUnit->fileName(), m_binding->valueLocation.line, m_binding->valueLocation.column);
0
349 }-
350-
351-
352 void doUpdate(const DeleteWatcher &watcher,-
353 QQmlPropertyData::WriteFlags flags, QV4::Scope &scope) override final-
354 {-
355 if (watcher.wasDeleted())
watcher.wasDeleted()Description
TRUEnever evaluated
FALSEevaluated 40 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlprofilerservice
  • tst_qqmltranslation
  • tst_qquicklayouts
  • tst_qquickstates
0-40
356 return;
never executed: return;
0
357-
358 if (!isAddedToObject() || hasError())
!isAddedToObject()Description
TRUEnever evaluated
FALSEevaluated 40 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlprofilerservice
  • tst_qqmltranslation
  • tst_qquicklayouts
  • tst_qquickstates
hasError()Description
TRUEnever evaluated
FALSEevaluated 40 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlprofilerservice
  • tst_qqmltranslation
  • tst_qquicklayouts
  • tst_qquickstates
0-40
359 return;
never executed: return;
0
360-
361 const QString result = m_binding->valueAsString(m_compilationUnit->data);-
362-
363 Q_ASSERT(targetObject());-
364-
365 QQmlPropertyData *pd;-
366 QQmlPropertyData vpd;-
367 getPropertyData(&pd, &vpd);-
368 Q_ASSERT(pd);-
369 if (pd->propType() == QMetaType::QString) {
pd->propType()...aType::QStringDescription
TRUEevaluated 40 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlprofilerservice
  • tst_qqmltranslation
  • tst_qquicklayouts
  • tst_qquickstates
FALSEnever evaluated
0-40
370 doStore(result, pd, flags);-
371 } else {
executed 40 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlprofilerservice
  • tst_qqmltranslation
  • tst_qquicklayouts
  • tst_qquickstates
40
372 QV4::ScopedString value(scope, scope.engine->newString(result));-
373 slowWrite(*pd, vpd, value, /*isUndefined*/false, flags);-
374 }
never executed: end of block
0
375 }-
376-
377 bool hasDependencies() const override final { return true; }
executed 32 times by 4 tests: return true;
Executed by:
  • tst_examples
  • tst_qqmlprofilerservice
  • tst_qqmltranslation
  • tst_qquicklayouts
32
378-
379private:-
380 const QV4::CompiledData::Binding *m_binding;-
381};-
382-
383QQmlBinding *QQmlBinding::createTranslationBinding(const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &unit, const QV4::CompiledData::Binding *binding, QObject *obj, QQmlContextData *ctxt)-
384{-
385 QQmlTranslationBinding *b = new QQmlTranslationBinding(unit, binding);-
386-
387 b->setNotifyOnValueChanged(true);-
388 b->QQmlJavaScriptExpression::setContext(ctxt);-
389 b->setScopeObject(obj);-
390-
391 return b;
executed 38 times by 5 tests: return b;
Executed by:
  • tst_examples
  • tst_qqmlprofilerservice
  • tst_qqmltranslation
  • tst_qquicklayouts
  • tst_qquickstates
38
392}-
393-
394Q_NEVER_INLINE bool QQmlBinding::slowWrite(const QQmlPropertyData &core,-
395 const QQmlPropertyData &valueTypeData,-
396 const QV4::Value &result,-
397 bool isUndefined, QQmlPropertyData::WriteFlags flags)-
398{-
399 QQmlEngine *engine = context()->engine;-
400 QV4::ExecutionEngine *v4engine = engine->handle();-
401-
402 int type = valueTypeData.isValid() ? valueTypeData.propType() : core.propType();
valueTypeData.isValid()Description
TRUEevaluated 4830 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickfontloader_static
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquicktext
FALSEevaluated 316680 times by 80 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
4830-316680
403-
404 QQmlJavaScriptExpression::DeleteWatcher watcher(this);-
405-
406 QVariant value;-
407 bool isVarProperty = core.isVarProperty();-
408-
409 if (isUndefined) {
isUndefinedDescription
TRUEevaluated 1316 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
FALSEevaluated 320194 times by 82 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
1316-320194
410 } else if (core.isQList()) {
executed 1316 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
core.isQList()Description
TRUEevaluated 36 times by 5 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickspritesequence
FALSEevaluated 320158 times by 81 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
36-320158
411 value = v4engine->toVariant(result, qMetaTypeId<QList<QObject *> >());-
412 } else if (result.isNull() && core.isQObject()) {
executed 36 times by 5 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickspritesequence
result.isNull()Description
TRUEevaluated 56 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_signalspy
FALSEevaluated 320102 times by 81 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
core.isQObject()Description
TRUEnever evaluated
FALSEevaluated 56 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_signalspy
0-320102
413 value = QVariant::fromValue((QObject *)nullptr);-
414 } else if (core.propType() == qMetaTypeId<QList<QUrl> >()) {
never executed: end of block
core.propType(...List<QUrl> >()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 320148 times by 81 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
0-320148
415 value = QQmlPropertyPrivate::resolvedUrlSequence(v4engine->toVariant(result, qMetaTypeId<QList<QUrl> >()), context());-
416 } else if (!isVarProperty && type != qMetaTypeId<QJSValue>()) {
executed 10 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
!isVarPropertyDescription
TRUEevaluated 307834 times by 72 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • ...
FALSEevaluated 12314 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
type != qMetaT...Id<QJSValue>()Description
TRUEevaluated 307746 times by 71 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
FALSEevaluated 88 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlstatemachine
10-307834
417 value = v4engine->toVariant(result, type);-
418 }
executed 307746 times by 71 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
307746
419-
420 if (hasError()) {
hasError()Description
TRUEnever evaluated
FALSEevaluated 321510 times by 82 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
0-321510
421 return false;
never executed: return false;
0
422 } else if (isVarProperty) {
isVarPropertyDescription
TRUEevaluated 12358 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 309152 times by 73 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • ...
12358-309152
423 const QV4::FunctionObject *f = result.as<QV4::FunctionObject>();-
424 if (f && f->isBinding()) {
fDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
FALSEevaluated 12348 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
f->isBinding()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qmlcachegen
  • tst_qqmlecmascript
2-12348
425 // we explicitly disallow this case to avoid confusion. Users can still store one-
426 // in an array in a var property if they need to, but the common case is user error.-
427 delayedError()->setErrorDescription(QLatin1String("Invalid use of Qt.binding() in a binding declaration."));-
428 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlecmascript
2
429 }-
430-
431 QQmlVMEMetaObject *vmemo = QQmlVMEMetaObject::get(m_target.data());-
432 Q_ASSERT(vmemo);-
433 vmemo->setVMEProperty(core.coreIndex(), result);-
434 } else if (isUndefined && core.isResettable()) {
executed 12356 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
isUndefinedDescription
TRUEevaluated 1272 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
FALSEevaluated 307880 times by 73 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • ...
core.isResettable()Description
TRUEevaluated 182 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickstates
  • tst_qquicktext
FALSEevaluated 1090 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
182-307880
435 void *args[] = { nullptr };-
436 QMetaObject::metacall(m_target.data(), QMetaObject::ResetProperty, core.coreIndex(), args);-
437 } else if (isUndefined && type == qMetaTypeId<QVariant>()) {
executed 182 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickstates
  • tst_qquicktext
isUndefinedDescription
TRUEevaluated 1090 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
FALSEevaluated 307880 times by 73 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • ...
type == qMetaT...Id<QVariant>()Description
TRUEevaluated 1030 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
FALSEevaluated 60 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickpathview
  • tst_qquicktextinput
60-307880
438 QQmlPropertyPrivate::writeValueProperty(m_target.data(), core, valueTypeData, QVariant(), context(), flags);-
439 } else if (type == qMetaTypeId<QJSValue>()) {
executed 1030 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
type == qMetaT...Id<QJSValue>()Description
TRUEevaluated 94 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlstatemachine
FALSEevaluated 307846 times by 72 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
94-307846
440 const QV4::FunctionObject *f = result.as<QV4::FunctionObject>();-
441 if (f && f->isBinding()) {
fDescription
TRUEevaluated 58 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlstatemachine
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
f->isBinding()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 56 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlstatemachine
2-58
442 delayedError()->setErrorDescription(QLatin1String("Invalid use of Qt.binding() in a binding declaration."));-
443 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlecmascript
2
444 }-
445 QQmlPropertyPrivate::writeValueProperty(m_target.data(), core, valueTypeData, QVariant::fromValue(-
446 QJSValue(v4engine, result.asReturnedValue())),-
447 context(), flags);-
448 } else if (isUndefined) {
executed 92 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlstatemachine
isUndefinedDescription
TRUEevaluated 54 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickpathview
  • tst_qquicktextinput
FALSEevaluated 307792 times by 72 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
54-307792
449 const QLatin1String typeName(QMetaType::typeName(type)-
450 ? QMetaType::typeName(type)-
451 : "[unknown property type]");-
452 delayedError()->setErrorDescription(QLatin1String("Unable to assign [undefined] to ")-
453 + typeName);-
454 return false;
executed 54 times by 5 tests: return false;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlpropertymap
  • tst_qqmlvaluetypes
  • tst_qquickpathview
  • tst_qquicktextinput
54
455 } else if (const QV4::FunctionObject *f = result.as<QV4::FunctionObject>()) {
const QV4::Fun...ctionObject>()Description
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
FALSEevaluated 307784 times by 72 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
8-307784
456 if (f->isBinding())
f->isBinding()Description
TRUEevaluated 6 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-6
457 delayedError()->setErrorDescription(QLatin1String("Invalid use of Qt.binding() in a binding declaration."));
executed 6 times by 3 tests: delayedError()->setErrorDescription(QLatin1String("Invalid use of Qt.binding() in a binding declaration."));
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
6
458 else-
459 delayedError()->setErrorDescription(QLatin1String("Unable to assign a function to a property of any type other than var."));
executed 2 times by 1 test: delayedError()->setErrorDescription(QLatin1String("Unable to assign a function to a property of any type other than var."));
Executed by:
  • tst_qqmlecmascript
2
460 return false;
executed 8 times by 3 tests: return false;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
8
461 } else if (!QQmlPropertyPrivate::writeValueProperty(m_target.data(), core, valueTypeData, value, context(), flags)) {
!QQmlPropertyP...text(), flags)Description
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
FALSEevaluated 307762 times by 72 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
22-307762
462-
463 if (watcher.wasDeleted())
watcher.wasDeleted()Description
TRUEnever evaluated
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
0-22
464 return true;
never executed: return true;
0
465-
466 const char *valueType = nullptr;-
467 const char *propertyType = nullptr;-
468-
469 const int userType = value.userType();-
470 if (userType == QMetaType::QObjectStar) {
userType == QM...e::QObjectStarDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
6-16
471 if (QObject *o = *(QObject *const *)value.constData()) {
QObject *o = *...ue.constData()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEnever evaluated
0-6
472 valueType = o->metaObject()->className();-
473-
474 QQmlMetaObject propertyMetaObject = QQmlPropertyPrivate::rawMetaObjectForType(QQmlEnginePrivate::get(engine), type);-
475 if (!propertyMetaObject.isNull())
!propertyMetaObject.isNull()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
2-4
476 propertyType = propertyMetaObject.className();
executed 4 times by 1 test: propertyType = propertyMetaObject.className();
Executed by:
  • tst_qqmlproperty
4
477 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlproperty
6
478 } else if (userType != QVariant::Invalid) {
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlproperty
userType != QVariant::InvalidDescription
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
FALSEnever evaluated
0-16
479 if (userType == QMetaType::Nullptr || userType == QMetaType::VoidStar)
userType == QMetaType::NullptrDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
userType == QM...Type::VoidStarDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-8
480 valueType = "null";
executed 8 times by 1 test: valueType = "null";
Executed by:
  • tst_qqmlproperty
8
481 else-
482 valueType = QMetaType::typeName(userType);
executed 8 times by 1 test: valueType = QMetaType::typeName(userType);
Executed by:
  • tst_qqmlecmascript
8
483 }-
484-
485 if (!valueType)
!valueTypeDescription
TRUEnever evaluated
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
0-22
486 valueType = "undefined";
never executed: valueType = "undefined";
0
487 if (!propertyType)
!propertyTypeDescription
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlproperty
4-18
488 propertyType = QMetaType::typeName(type);
executed 18 times by 2 tests: propertyType = QMetaType::typeName(type);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
18
489 if (!propertyType)
!propertyTypeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
2-20
490 propertyType = "[unknown property type]";
executed 2 times by 1 test: propertyType = "[unknown property type]";
Executed by:
  • tst_qqmlecmascript
2
491-
492 delayedError()->setErrorDescription(QLatin1String("Unable to assign ") +-
493 QLatin1String(valueType) +-
494 QLatin1String(" to ") +-
495 QLatin1String(propertyType));-
496 return false;
executed 22 times by 2 tests: return false;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
22
497 }-
498-
499 return true;
executed 321422 times by 82 tests: return true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
321422
500}-
501-
502QVariant QQmlBinding::evaluate()-
503{-
504 QQmlEngine *engine = context()->engine;-
505 QQmlEnginePrivate *ep = QQmlEnginePrivate::get(engine);-
506 ep->referenceScarceResources();-
507-
508 bool isUndefined = false;-
509-
510 QV4::Scope scope(engine->handle());-
511 QV4::ScopedValue result(scope, QQmlJavaScriptExpression::evaluate(&isUndefined));-
512-
513 ep->dereferenceScarceResources();-
514-
515 return scope.engine->toVariant(result, qMetaTypeId<QList<QObject*> >());
executed 634 times by 8 tests: return scope.engine->toVariant(result, qMetaTypeId<QList<QObject*> >());
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
634
516}-
517-
518QString QQmlBinding::expressionIdentifier() const-
519{-
520 auto f = function();-
521 QString url = f->sourceFile();-
522 quint16 lineNumber = f->compiledFunction->location.line;-
523 quint16 columnNumber = f->compiledFunction->location.column;-
524 return url + QString::asprintf(":%u:%u", uint(lineNumber), uint(columnNumber));
executed 44 times by 3 tests: return url + QString::asprintf(":%u:%u", uint(lineNumber), uint(columnNumber));
Executed by:
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickitem2
44
525}-
526-
527void QQmlBinding::expressionChanged()-
528{-
529 update();-
530}
executed 366940 times by 96 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • ...
366940
531-
532void QQmlBinding::refresh()-
533{-
534 update();-
535}
executed 34 times by 3 tests: end of block
Executed by:
  • tst_qqmlcontext
  • tst_qqmltranslation
  • tst_qquickdesignersupport
34
536-
537void QQmlBinding::setEnabled(bool e, QQmlPropertyData::WriteFlags flags)-
538{-
539 const bool wasEnabled = enabledFlag();-
540 setEnabledFlag(e);-
541 setNotifyOnValueChanged(e);-
542-
543 m_nextBinding.setFlag2(); // Always use accessors, only not when:-
544 if (auto interceptorMetaObject = QQmlInterceptorMetaObject::get(targetObject())) {
auto intercept...argetObject())Description
TRUEevaluated 150864 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
FALSEevaluated 409703 times by 101 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
150864-409703
545 if (!m_targetIndex.isValid() || interceptorMetaObject->intercepts(m_targetIndex))
!m_targetIndex.isValid()Description
TRUEnever evaluated
FALSEevaluated 150864 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
interceptorMet...m_targetIndex)Description
TRUEevaluated 470 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
FALSEevaluated 150394 times by 76 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
0-150864
546 m_nextBinding.clearFlag2();
executed 470 times by 7 tests: m_nextBinding.clearFlag2();
Executed by:
  • tst_examples
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
470
547 }
executed 150864 times by 77 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
150864
548-
549 if (e && !wasEnabled)
eDescription
TRUEevaluated 559739 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
FALSEevaluated 828 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • ...
!wasEnabledDescription
TRUEevaluated 553780 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
FALSEevaluated 5959 times by 22 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpincharea
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
828-559739
550 update(flags);
executed 553780 times by 121 tests: update(flags);
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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
553780
551}
executed 560567 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
560567
552-
553QString QQmlBinding::expression() const-
554{-
555 return QStringLiteral("function() { [code] }");-
556}
never executed: end of block
0
557-
558void QQmlBinding::setTarget(const QQmlProperty &prop)-
559{-
560 auto pd = QQmlPropertyPrivate::get(prop);-
561 setTarget(prop.object(), pd->core, &pd->valueTypeData);-
562}
executed 194 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickstates
194
563-
564bool QQmlBinding::setTarget(QObject *object, const QQmlPropertyData &core, const QQmlPropertyData *valueType)-
565{-
566 m_target = object;-
567-
568 if (!object) {
!objectDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 554112 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
2-554112
569 m_targetIndex = QQmlPropertyIndex();-
570 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qquickstates
2
571 }-
572-
573 int coreIndex = core.coreIndex();-
574 int valueTypeIndex = valueType ? valueType->coreIndex() : -1;
valueTypeDescription
TRUEevaluated 2528 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader_static
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktext
FALSEevaluated 551584 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
2528-551584
575 for (bool isAlias = core.isAlias(); isAlias; ) {
isAliasDescription
TRUEevaluated 226 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickdraghandler
FALSEevaluated 554112 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
226-554112
576 QQmlVMEMetaObject *vme = QQmlVMEMetaObject::getForProperty(object, coreIndex);-
577-
578 int aValueTypeIndex;-
579 if (!vme->aliasTarget(coreIndex, &object, &coreIndex, &aValueTypeIndex)) {
!vme->aliasTar...alueTypeIndex)Description
TRUEnever evaluated
FALSEevaluated 226 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickdraghandler
0-226
580 // can't resolve id (yet)-
581 m_target = nullptr;-
582 m_targetIndex = QQmlPropertyIndex();-
583 return false;
never executed: return false;
0
584 }-
585 if (valueTypeIndex == -1)
valueTypeIndex == -1Description
TRUEevaluated 224 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickdraghandler
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-224
586 valueTypeIndex = aValueTypeIndex;
executed 224 times by 5 tests: valueTypeIndex = aValueTypeIndex;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickdraghandler
224
587-
588 QQmlData *data = QQmlData::get(object, false);-
589 if (!data || !data->propertyCache) {
!dataDescription
TRUEnever evaluated
FALSEevaluated 226 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickdraghandler
!data->propertyCacheDescription
TRUEnever evaluated
FALSEevaluated 226 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickdraghandler
0-226
590 m_target = nullptr;-
591 m_targetIndex = QQmlPropertyIndex();-
592 return false;
never executed: return false;
0
593 }-
594 QQmlPropertyData *propertyData = data->propertyCache->property(coreIndex);-
595 Q_ASSERT(propertyData);-
596-
597 m_target = object;-
598 isAlias = propertyData->isAlias();-
599 coreIndex = propertyData->coreIndex();-
600 }
executed 226 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickdraghandler
226
601 m_targetIndex = QQmlPropertyIndex(coreIndex, valueTypeIndex);-
602-
603 QQmlData *data = QQmlData::get(*m_target, true);-
604 if (!data->propertyCache) {
!data->propertyCacheDescription
TRUEevaluated 14062 times by 78 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickellipseextruder
  • ...
FALSEevaluated 540050 times by 104 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
14062-540050
605 data->propertyCache = QQmlEnginePrivate::get(context()->engine)->cache(m_target->metaObject());-
606 data->propertyCache->addref();-
607 }
executed 14062 times by 78 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickellipseextruder
  • ...
14062
608-
609 return true;
executed 554112 times by 121 tests: return true;
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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
554112
610}-
611-
612void QQmlBinding::getPropertyData(QQmlPropertyData **propertyData, QQmlPropertyData *valueTypeData) const-
613{-
614 Q_ASSERT(propertyData);-
615-
616 QQmlData *data = QQmlData::get(*m_target, false);-
617 Q_ASSERT(data);-
618-
619 if (Q_UNLIKELY(!data->propertyCache)) {
__builtin_expe...Cache), false)Description
TRUEnever evaluated
FALSEevaluated 890752 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
0-890752
620 data->propertyCache = QQmlEnginePrivate::get(context()->engine)->cache(m_target->metaObject());-
621 data->propertyCache->addref();-
622 }
never executed: end of block
0
623-
624 *propertyData = data->propertyCache->property(m_targetIndex.coreIndex());-
625 Q_ASSERT(*propertyData);-
626-
627 if (Q_UNLIKELY(m_targetIndex.hasValueTypeIndex() && valueTypeData)) {
__builtin_expe...eData), false)Description
TRUEevaluated 4830 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickfontloader_static
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquicktext
FALSEevaluated 885922 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
4830-885922
628 const QMetaObject *valueTypeMetaObject = QQmlValueTypeFactory::metaObjectForMetaType((*propertyData)->propType());-
629 Q_ASSERT(valueTypeMetaObject);-
630 QMetaProperty vtProp = valueTypeMetaObject->property(m_targetIndex.valueTypeIndex());-
631 valueTypeData->setFlags(QQmlPropertyData::flagsForProperty(vtProp));-
632 valueTypeData->setPropType(vtProp.userType());-
633 valueTypeData->setCoreIndex(m_targetIndex.valueTypeIndex());-
634 }
executed 4830 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickfontloader_static
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquicktext
4830
635}
executed 890752 times by 121 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
890752
636-
637QVector<QQmlProperty> QQmlBinding::dependencies() const-
638{-
639 QVector<QQmlProperty> dependencies;-
640 if (!m_target.data())
!m_target.data()Description
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_bindingdependencyapi
0-42
641 return dependencies;
never executed: return dependencies;
0
642-
643 for (const auto &guardList : { permanentGuards, activeGuards }) {-
644 for (QQmlJavaScriptExpressionGuard *guard = guardList.first(); guard; guard = guardList.next(guard)) {
guardDescription
TRUEevaluated 98 times by 1 test
Evaluated by:
  • tst_bindingdependencyapi
FALSEevaluated 84 times by 1 test
Evaluated by:
  • tst_bindingdependencyapi
84-98
645 if (guard->signalIndex() == -1) // guard's sender is a QQmlNotifier, not a QObject*.
guard->signalIndex() == -1Description
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_bindingdependencyapi
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_bindingdependencyapi
40-58
646 continue;
executed 40 times by 1 test: continue;
Executed by:
  • tst_bindingdependencyapi
40
647-
648 QObject *senderObject = guard->senderAsObject();-
649 if (!senderObject)
!senderObjectDescription
TRUEnever evaluated
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_bindingdependencyapi
0-58
650 continue;
never executed: continue;
0
651-
652 const QMetaObject *senderMeta = senderObject->metaObject();-
653 if (!senderMeta)
!senderMetaDescription
TRUEnever evaluated
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_bindingdependencyapi
0-58
654 continue;
never executed: continue;
0
655-
656 for (int i = 0; i < senderMeta->propertyCount(); i++) {
i < senderMeta...ropertyCount()Description
TRUEevaluated 3090 times by 1 test
Evaluated by:
  • tst_bindingdependencyapi
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_bindingdependencyapi
58-3090
657 QMetaProperty property = senderMeta->property(i);-
658 if (property.notifySignalIndex() == QMetaObjectPrivate::signal(senderMeta, guard->signalIndex()).methodIndex()) {
property.notif....methodIndex()Description
TRUEevaluated 58 times by 1 test
Evaluated by:
  • tst_bindingdependencyapi
FALSEevaluated 3032 times by 1 test
Evaluated by:
  • tst_bindingdependencyapi
58-3032
659 dependencies.push_back(QQmlProperty(senderObject, QString::fromUtf8(senderObject->metaObject()->property(i).name())));-
660 }
executed 58 times by 1 test: end of block
Executed by:
  • tst_bindingdependencyapi
58
661 }
executed 3090 times by 1 test: end of block
Executed by:
  • tst_bindingdependencyapi
3090
662 }
executed 58 times by 1 test: end of block
Executed by:
  • tst_bindingdependencyapi
58
663 }
executed 84 times by 1 test: end of block
Executed by:
  • tst_bindingdependencyapi
84
664-
665 return dependencies;
executed 42 times by 1 test: return dependencies;
Executed by:
  • tst_bindingdependencyapi
42
666}-
667-
668bool QQmlBinding::hasDependencies() const-
669{-
670 return !permanentGuards.isEmpty() || !activeGuards.isEmpty() || translationsCaptured();
executed 552656 times by 120 tests: return !permanentGuards.isEmpty() || !activeGuards.isEmpty() || translationsCaptured();
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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
552656
671}-
672-
673class QObjectPointerBinding: public QQmlNonbindingBinding-
674{-
675 QQmlMetaObject targetMetaObject;-
676-
677public:-
678 QObjectPointerBinding(QQmlEnginePrivate *engine, int propertyType)-
679 : targetMetaObject(QQmlPropertyPrivate::rawMetaObjectForType(engine, propertyType))-
680 {}
executed 23936 times by 93 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • ...
23936
681-
682protected:-
683 Q_ALWAYS_INLINE bool write(const QV4::Value &result, bool isUndefined,-
684 QQmlPropertyData::WriteFlags flags) override final-
685 {-
686 QQmlPropertyData *pd;-
687 QQmlPropertyData vtpd;-
688 getPropertyData(&pd, &vtpd);-
689 if (Q_UNLIKELY(isUndefined || vtpd.isValid()))
__builtin_expe...lid()), false)Description
TRUEevaluated 48 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickmousearea
FALSEevaluated 24425 times by 92 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • ...
48-24425
690 return slowWrite(*pd, vtpd, result, isUndefined, flags);
executed 48 times by 3 tests: return slowWrite(*pd, vtpd, result, isUndefined, flags);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickmousearea
48
691-
692 // Check if the result is a QObject:-
693 QObject *resultObject = nullptr;-
694 QQmlMetaObject resultMo;-
695 if (result.isNull()) {
result.isNull()Description
TRUEevaluated 4026 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquickvisualdatamodel
FALSEevaluated 20399 times by 92 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • ...
4026-20399
696 // Special case: we can always write a nullptr. Don't bother checking anything else.-
697 return pd->writeProperty(targetObject(), &resultObject, flags);
executed 4026 times by 13 tests: return pd->writeProperty(targetObject(), &resultObject, flags);
Executed by:
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquickvisualdatamodel
4026
698 } else if (auto wrapper = result.as<QV4::QObjectWrapper>()) {
auto wrapper =...jectWrapper>()Description
TRUEevaluated 20397 times by 92 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlconnections
2-20397
699 resultObject = wrapper->object();-
700 if (!resultObject)
!resultObjectDescription
TRUEnever evaluated
FALSEevaluated 20397 times by 92 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • ...
0-20397
701 return pd->writeProperty(targetObject(), &resultObject, flags);
never executed: return pd->writeProperty(targetObject(), &resultObject, flags);
0
702 if (QQmlData *ddata = QQmlData::get(resultObject, false))
QQmlData *ddat...Object, false)Description
TRUEevaluated 20397 times by 92 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • ...
FALSEnever evaluated
0-20397
703 resultMo = ddata->propertyCache;
executed 20397 times by 92 tests: resultMo = ddata->propertyCache;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • ...
20397
704 if (resultMo.isNull()) {
resultMo.isNull()Description
TRUEevaluated 66 times by 2 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
FALSEevaluated 20331 times by 90 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
66-20331
705 resultMo = resultObject->metaObject();-
706 }
executed 66 times by 2 tests: end of block
Executed by:
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
66
707 } else if (auto variant = result.as<QV4::VariantObject>()) {
executed 20397 times by 92 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • ...
auto variant =...riantObject>()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlconnections
0-20397
708 QVariant value = variant->d()->data();-
709 QQmlEnginePrivate *ep = QQmlEnginePrivate::get(context());-
710 resultMo = QQmlPropertyPrivate::rawMetaObjectForType(ep, value.userType());-
711 if (resultMo.isNull())
resultMo.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
0
712 return slowWrite(*pd, vtpd, result, isUndefined, flags);
never executed: return slowWrite(*pd, vtpd, result, isUndefined, flags);
0
713 resultObject = *static_cast<QObject *const *>(value.constData());-
714 } else {
never executed: end of block
0
715 return slowWrite(*pd, vtpd, result, isUndefined, flags);
executed 2 times by 1 test: return slowWrite(*pd, vtpd, result, isUndefined, flags);
Executed by:
  • tst_qqmlconnections
2
716 }-
717-
718 // Compare & set:-
719 if (QQmlMetaObject::canConvert(resultMo, targetMetaObject)) {
QQmlMetaObject...getMetaObject)Description
TRUEevaluated 20393 times by 92 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlproperty
4-20393
720 return pd->writeProperty(targetObject(), &resultObject, flags);
executed 20393 times by 92 tests: return pd->writeProperty(targetObject(), &resultObject, flags);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • ...
20393
721 } else if (!resultObject && QQmlMetaObject::canConvert(targetMetaObject, resultMo)) {
!resultObjectDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlproperty
QQmlMetaObject...ect, resultMo)Description
TRUEnever evaluated
FALSEnever evaluated
0-4
722 // In the case of a null QObject, we assign the null if there is-
723 // any change that the null variant type could be up or down cast to-
724 // the property type.-
725 return pd->writeProperty(targetObject(), &resultObject, flags);
never executed: return pd->writeProperty(targetObject(), &resultObject, flags);
0
726 } else {-
727 return slowWrite(*pd, vtpd, result, isUndefined, flags);
executed 4 times by 1 test: return slowWrite(*pd, vtpd, result, isUndefined, flags);
Executed by:
  • tst_qqmlproperty
4
728 }-
729 }-
730};-
731-
732QQmlBinding *QQmlBinding::newBinding(QQmlEnginePrivate *engine, const QQmlPropertyData *property)-
733{-
734 if (property && property->isQObject())
propertyDescription
TRUEevaluated 554084 times by 120 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
property->isQObject()Description
TRUEevaluated 23936 times by 93 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • ...
FALSEevaluated 530148 times by 98 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
2-554084
735 return new QObjectPointerBinding(engine, property->propType());
executed 23936 times by 93 tests: return new QObjectPointerBinding(engine, property->propType());
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • ...
23936
736-
737 const int type = (property && property->isFullyResolved()) ? property->propType() : QMetaType::UnknownType;
propertyDescription
TRUEevaluated 530148 times by 98 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
property->isFullyResolved()Description
TRUEevaluated 530148 times by 98 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
FALSEnever evaluated
0-530148
738-
739 if (type == qMetaTypeId<QQmlBinding *>()) {
type == qMetaT...mlBinding *>()Description
TRUEevaluated 574 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
FALSEevaluated 529576 times by 98 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
574-529576
740 return new QQmlBindingBinding;
executed 574 times by 8 tests: return new QQmlBindingBinding;
Executed by:
  • tst_examples
  • tst_qqmltranslation
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
574
741 }-
742-
743 switch (type) {-
744 case QMetaType::Bool:
executed 6778 times by 44 tests: case QMetaType::Bool:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • ...
6778
745 return new GenericBinding<QMetaType::Bool>;
executed 6778 times by 44 tests: return new GenericBinding<QMetaType::Bool>;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • ...
6778
746 case QMetaType::Int:
executed 18820 times by 39 tests: case QMetaType::Int:
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickapplication
  • tst_qquickdrag
  • tst_qquickflickable
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • ...
18820
747 return new GenericBinding<QMetaType::Int>;
executed 18820 times by 39 tests: return new GenericBinding<QMetaType::Int>;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickapplication
  • tst_qquickdrag
  • tst_qquickflickable
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • ...
18820
748 case QMetaType::Double:
executed 78119 times by 43 tests: case QMetaType::Double:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
78119
749 return new GenericBinding<QMetaType::Double>;
executed 78119 times by 43 tests: return new GenericBinding<QMetaType::Double>;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
78119
750 case QMetaType::Float:
executed 2 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_qqmlecmascript
2
751 return new GenericBinding<QMetaType::Float>;
executed 2 times by 1 test: return new GenericBinding<QMetaType::Float>;
Executed by:
  • tst_qqmlecmascript
2
752 case QMetaType::QString:
executed 311257 times by 36 tests: case QMetaType::QString:
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
311257
753 return new GenericBinding<QMetaType::QString>;
executed 311257 times by 36 tests: return new GenericBinding<QMetaType::QString>;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
311257
754 default:
executed 114600 times by 82 tests: default:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
114600
755 return new GenericBinding<QMetaType::UnknownType>;
executed 114600 times by 82 tests: return new GenericBinding<QMetaType::UnknownType>;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
114600
756 }-
757}-
758-
759QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0