OpenCoverage

qqmlproperty.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlproperty.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 "qqmlproperty.h"-
41#include "qqmlproperty_p.h"-
42-
43#include "qqml.h"-
44#include "qqmlbinding_p.h"-
45#include "qqmlboundsignal_p.h"-
46#include "qqmlcontext.h"-
47#include "qqmlcontext_p.h"-
48#include "qqmlboundsignal_p.h"-
49#include "qqmlengine.h"-
50#include "qqmlengine_p.h"-
51#include "qqmldata_p.h"-
52#include "qqmlstringconverters_p.h"-
53#include "qqmllist_p.h"-
54#include "qqmlvmemetaobject_p.h"-
55#include "qqmlexpression_p.h"-
56#include "qqmlvaluetypeproxybinding_p.h"-
57#include <private/qjsvalue_p.h>-
58#include <private/qv4functionobject_p.h>-
59-
60#include <QStringList>-
61#include <QVector>-
62#include <private/qmetaobject_p.h>-
63#include <private/qqmlvaluetypewrapper_p.h>-
64#include <QtCore/qdebug.h>-
65#include <cmath>-
66-
67Q_DECLARE_METATYPE(QList<int>)-
68Q_DECLARE_METATYPE(QList<qreal>)-
69Q_DECLARE_METATYPE(QList<bool>)-
70Q_DECLARE_METATYPE(QList<QString>)-
71Q_DECLARE_METATYPE(QList<QUrl>)-
72-
73QT_BEGIN_NAMESPACE-
74-
75/*!-
76\class QQmlProperty-
77\since 5.0-
78\inmodule QtQml-
79\brief The QQmlProperty class abstracts accessing properties on objects created from QML.-
80-
81As QML uses Qt's meta-type system all of the existing QMetaObject classes can be used to introspect-
82and interact with objects created by QML. However, some of the new features provided by QML - such-
83as type safety and attached properties - are most easily used through the QQmlProperty class-
84that simplifies some of their natural complexity.-
85-
86Unlike QMetaProperty which represents a property on a class type, QQmlProperty encapsulates-
87a property on a specific object instance. To read a property's value, programmers create a-
88QQmlProperty instance and call the read() method. Likewise to write a property value the-
89write() method is used.-
90-
91For example, for the following QML code:-
92-
93\qml-
94// MyItem.qml-
95import QtQuick 2.0-
96-
97Text { text: "A bit of text" }-
98\endqml-
99-
100The \l Text object's properties could be accessed using QQmlProperty, like this:-
101-
102\code-
103#include <QQmlProperty>-
104#include <QGraphicsObject>-
105-
106...-
107-
108QQuickView view(QUrl::fromLocalFile("MyItem.qml"));-
109QQmlProperty property(view.rootObject(), "font.pixelSize");-
110qWarning() << "Current pixel size:" << property.read().toInt();-
111property.write(24);-
112qWarning() << "Pixel size should now be 24:" << property.read().toInt();-
113\endcode-
114-
115The \l {Qt Quick 1} version of this class was named QDeclarativeProperty.-
116*/-
117-
118/*!-
119 Create an invalid QQmlProperty.-
120*/-
121QQmlProperty::QQmlProperty()-
122: d(nullptr)-
123{-
124}
executed 74075 times by 36 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • ...
74075
125-
126/*! \internal */-
127QQmlProperty::~QQmlProperty()-
128{-
129 if (d)
dDescription
TRUEevaluated 290052 times by 46 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
FALSEevaluated 14694 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_scenegraph
14694-290052
130 d->release();
executed 290052 times by 46 tests: d->release();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
290052
131 d = nullptr;-
132}
executed 304746 times by 47 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
304746
133-
134/*!-
135 Creates a QQmlProperty for the default property of \a obj. If there is no-
136 default property, an invalid QQmlProperty will be created.-
137 */-
138QQmlProperty::QQmlProperty(QObject *obj)-
139: d(new QQmlPropertyPrivate)-
140{-
141 d->initDefault(obj);-
142}
executed 18 times by 1 test: end of block
Executed by:
  • tst_qqmlproperty
18
143-
144/*!-
145 Creates a QQmlProperty for the default property of \a obj-
146 using the \l{QQmlContext} {context} \a ctxt. If there is-
147 no default property, an invalid QQmlProperty will be-
148 created.-
149 */-
150QQmlProperty::QQmlProperty(QObject *obj, QQmlContext *ctxt)-
151: d(new QQmlPropertyPrivate)-
152{-
153 d->context = ctxt?QQmlContextData::get(ctxt):nullptr;
ctxtDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEnever evaluated
0-4
154 d->engine = ctxt?ctxt->engine():nullptr;
ctxtDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEnever evaluated
0-4
155 d->initDefault(obj);-
156}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlproperty
4
157-
158/*!-
159 Creates a QQmlProperty for the default property of \a obj-
160 using the environment for instantiating QML components that is-
161 provided by \a engine. If there is no default property, an-
162 invalid QQmlProperty will be created.-
163 */-
164QQmlProperty::QQmlProperty(QObject *obj, QQmlEngine *engine)-
165 : d(new QQmlPropertyPrivate)-
166{-
167 d->context = nullptr;-
168 d->engine = engine;-
169 d->initDefault(obj);-
170}
never executed: end of block
0
171-
172/*!-
173 Initialize from the default property of \a obj-
174*/-
175void QQmlPropertyPrivate::initDefault(QObject *obj)-
176{-
177 if (!obj)
!objDescription
TRUEnever evaluated
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_qqmlproperty
0-22
178 return;
never executed: return;
0
179-
180 QMetaProperty p = QQmlMetaType::defaultProperty(obj);-
181 core.load(p);-
182 if (core.isValid())
core.isValid()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlproperty
10-12
183 object = obj;
executed 12 times by 1 test: object = obj;
Executed by:
  • tst_qqmlproperty
12
184}
executed 22 times by 1 test: end of block
Executed by:
  • tst_qqmlproperty
22
185-
186/*!-
187 Creates a QQmlProperty for the property \a name of \a obj.-
188 */-
189QQmlProperty::QQmlProperty(QObject *obj, const QString &name)-
190: d(new QQmlPropertyPrivate)-
191{-
192 d->initProperty(obj, name);-
193 if (!isValid()) d->object = nullptr;
executed 42 times by 5 tests: d->object = nullptr;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlproperty
  • tst_qquickstates
  • tst_qtqmlmodules
!isValid()Description
TRUEevaluated 42 times by 5 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlproperty
  • tst_qquickstates
  • tst_qtqmlmodules
FALSEevaluated 21360 times by 30 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • ...
42-21360
194}
executed 21402 times by 31 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • ...
21402
195-
196/*!-
197 Creates a QQmlProperty for the property \a name of \a obj-
198 using the \l{QQmlContext} {context} \a ctxt.-
199-
200 Creating a QQmlProperty without a context will render some-
201 properties - like attached properties - inaccessible.-
202*/-
203QQmlProperty::QQmlProperty(QObject *obj, const QString &name, QQmlContext *ctxt)-
204: d(new QQmlPropertyPrivate)-
205{-
206 d->context = ctxt?QQmlContextData::get(ctxt):nullptr;
ctxtDescription
TRUEevaluated 21741 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickitem2
36-21741
207 d->engine = ctxt?ctxt->engine():nullptr;
ctxtDescription
TRUEevaluated 21741 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickitem2
36-21741
208 d->initProperty(obj, name);-
209 if (!isValid()) { d->object = nullptr; d->context = nullptr; d->engine = nullptr; }
executed 10 times by 3 tests: end of block
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
!isValid()Description
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
FALSEevaluated 21767 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
10-21767
210}
executed 21777 times by 18 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_scenegraph
21777
211-
212/*!-
213 Creates a QQmlProperty for the property \a name of \a obj-
214 using the environment for instantiating QML components that is-
215 provided by \a engine.-
216 */-
217QQmlProperty::QQmlProperty(QObject *obj, const QString &name, QQmlEngine *engine)-
218: d(new QQmlPropertyPrivate)-
219{-
220 d->context = nullptr;-
221 d->engine = engine;-
222 d->initProperty(obj, name);-
223 if (!isValid()) { d->object = nullptr; d->context = nullptr; d->engine = nullptr; }
never executed: end of block
!isValid()Description
TRUEnever evaluated
FALSEevaluated 21324 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
0-21324
224}
executed 21324 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
21324
225-
226QQmlProperty QQmlPropertyPrivate::create(QObject *target, const QString &propertyName, QQmlContextData *context)-
227{-
228 QQmlProperty result;-
229 auto d = new QQmlPropertyPrivate;-
230 result.d = d;-
231 d->context = context;-
232 d->engine = context ? context->engine : nullptr;
contextDescription
TRUEevaluated 608 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickdesignersupport
4-608
233 d->initProperty(target, propertyName);-
234 if (!result.isValid()) {
!result.isValid()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 608 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
4-608
235 d->object = nullptr;-
236 d->context = nullptr;-
237 d->engine = nullptr;-
238 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickstates
4
239 return result;
executed 612 times by 17 tests: return result;
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_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
612
240}-
241-
242QQmlPropertyPrivate::QQmlPropertyPrivate()-
243: context(nullptr), engine(nullptr), object(nullptr), isNameCached(false)-
244{-
245}
executed 70835 times by 46 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
70835
246-
247QQmlContextData *QQmlPropertyPrivate::effectiveContext() const-
248{-
249 if (context) return context;
executed 54188 times by 26 tests: return context;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
  • tst_qquicktaphandler
  • ...
contextDescription
TRUEevaluated 54188 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
  • tst_qquicktaphandler
  • ...
FALSEevaluated 68362 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlincubator
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
  • tst_qquickvisualdatamodel
54188-68362
250 else if (engine) return QQmlContextData::get(engine->rootContext());
executed 58944 times by 9 tests: return QQmlContextData::get(engine->rootContext());
Executed by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
engineDescription
TRUEevaluated 58944 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
FALSEevaluated 9418 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlincubator
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
9418-58944
251 else return nullptr;
executed 9418 times by 12 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlincubator
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
9418
252}-
253-
254void QQmlPropertyPrivate::initProperty(QObject *obj, const QString &name)-
255{-
256 if (!obj) return;
executed 18 times by 3 tests: return;
Executed by:
  • tst_qqmlproperty
  • tst_qquickstates
  • tst_qtqmlmodules
!objDescription
TRUEevaluated 18 times by 3 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
  • tst_qtqmlmodules
FALSEevaluated 65097 times by 43 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • ...
18-65097
257-
258 QQmlRefPointer<QQmlTypeNameCache> typeNameCache = context?context->imports:nullptr;
contextDescription
TRUEevaluated 22349 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • ...
FALSEevaluated 42748 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • ...
22349-42748
259-
260 QObject *currentObject = obj;-
261 QVector<QStringRef> path;-
262 QStringRef terminal(&name);-
263-
264 if (name.contains(QLatin1Char('.'))) {
name.contains(...tin1Char('.'))Description
TRUEevaluated 730 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEevaluated 64367 times by 42 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • ...
730-64367
265 path = name.splitRef(QLatin1Char('.'));-
266 if (path.isEmpty()) return;
never executed: return;
path.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 730 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
0-730
267-
268 // Everything up to the last property must be an "object type" property-
269 for (int ii = 0; ii < path.count() - 1; ++ii) {
ii < path.count() - 1Description
TRUEevaluated 734 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEevaluated 684 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
684-734
270 const QStringRef &pathName = path.at(ii);-
271-
272 // Types must begin with an uppercase letter (see checkRegistration()-
273 // in qqmlmetatype.cpp for the enforcement of this).-
274 if (typeNameCache && !pathName.isEmpty() && pathName.at(0).isUpper()) {
!pathName.isEmpty()Description
TRUEevaluated 368 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEnever evaluated
pathName.at(0).isUpper()Description
TRUEevaluated 262 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEevaluated 106 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickstates
0-368
275 QQmlTypeNameCache::Result r = typeNameCache->query(pathName);-
276 if (r.isValid()) {
r.isValid()Description
TRUEevaluated 262 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEnever evaluated
0-262
277 if (r.type.isValid()) {
r.type.isValid()Description
TRUEevaluated 256 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlproperty
6-256
278 QQmlEnginePrivate *enginePrivate = QQmlEnginePrivate::get(engine);-
279 QQmlAttachedPropertiesFunc func = r.type.attachedPropertiesFunction(enginePrivate);-
280 if (!func) return; // Not an attachable type
never executed: return;
!funcDescription
TRUEnever evaluated
FALSEevaluated 256 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
0-256
281-
282 currentObject = qmlAttachedPropertiesObjectById(r.type.attachedPropertiesId(enginePrivate), currentObject);-
283 if (!currentObject) return; // Something is broken with the attachable type
never executed: return;
!currentObjectDescription
TRUEnever evaluated
FALSEevaluated 256 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
0-256
284 } else if (r.importNamespace) {
executed 256 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
r.importNamespaceDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEnever evaluated
0-256
285 if ((ii + 1) == path.count()) return; // No type following the namespace
never executed: return;
(ii + 1) == path.count()Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlproperty
0-6
286-
287 ++ii; r = typeNameCache->query(path.at(ii), r.importNamespace);-
288 if (!r.type.isValid()) return; // Invalid type in namespace
never executed: return;
!r.type.isValid()Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlproperty
0-6
289-
290 QQmlEnginePrivate *enginePrivate = QQmlEnginePrivate::get(engine);-
291 QQmlAttachedPropertiesFunc func = r.type.attachedPropertiesFunction(enginePrivate);-
292 if (!func) return; // Not an attachable type
never executed: return;
!funcDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlproperty
0-6
293-
294 currentObject = qmlAttachedPropertiesObjectById(r.type.attachedPropertiesId(enginePrivate), currentObject);-
295 if (!currentObject) return; // Something is broken with the attachable type
never executed: return;
!currentObjectDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlproperty
0-6
296-
297 } else if (r.scriptIndex != -1) {
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlproperty
r.scriptIndex != -1Description
TRUEnever evaluated
FALSEnever evaluated
0-6
298 return; // Not a type
never executed: return;
0
299 } else {-
300 Q_ASSERT(!"Unreachable");-
301 }
never executed: end of block
0
302 continue;
executed 262 times by 7 tests: continue;
Executed by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
262
303 }-
304-
305 }
never executed: end of block
0
306-
307 QQmlPropertyData local;-
308 QQmlPropertyData *property =-
309 QQmlPropertyCache::property(engine, currentObject, pathName, context, local);-
310-
311 if (!property) return; // Not a property
never executed: return;
!propertyDescription
TRUEnever evaluated
FALSEevaluated 472 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
0-472
312 if (property->isFunction())
property->isFunction()Description
TRUEnever evaluated
FALSEevaluated 472 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
0-472
313 return; // Not an object property
never executed: return;
0
314-
315 if (ii == (path.count() - 2) && QQmlValueTypeFactory::isValueType(property->propType())) {
ii == (path.count() - 2)Description
TRUEevaluated 468 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlproperty
QQmlValueTypeF...y->propType())Description
TRUEevaluated 46 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
FALSEevaluated 422 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
4-468
316 // We're now at a value type property-
317 const QMetaObject *valueTypeMetaObject = QQmlValueTypeFactory::metaObjectForMetaType(property->propType());-
318 if (!valueTypeMetaObject) return; // Not a value type
never executed: return;
!valueTypeMetaObjectDescription
TRUEnever evaluated
FALSEevaluated 46 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
0-46
319-
320 int idx = valueTypeMetaObject->indexOfProperty(path.last().toUtf8().constData());-
321 if (idx == -1) return; // Value type property does not exist
executed 4 times by 1 test: return;
Executed by:
  • tst_qqmlproperty
idx == -1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 42 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
4-42
322-
323 QMetaProperty vtProp = valueTypeMetaObject->property(idx);-
324-
325 Q_ASSERT(vtProp.userType() <= 0x0000FFFF);-
326 Q_ASSERT(idx <= 0x0000FFFF);-
327-
328 object = currentObject;-
329 core = *property;-
330 valueTypeData.setFlags(QQmlPropertyData::flagsForProperty(vtProp));-
331 valueTypeData.setPropType(vtProp.userType());-
332 valueTypeData.setCoreIndex(idx);-
333-
334 return;
executed 42 times by 4 tests: return;
Executed by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
42
335 } else {-
336 if (!property->isQObject())
!property->isQObject()Description
TRUEnever evaluated
FALSEevaluated 426 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
0-426
337 return; // Not an object property
never executed: return;
0
338-
339 property->readProperty(currentObject, &currentObject);-
340 if (!currentObject) return; // No value
never executed: return;
!currentObjectDescription
TRUEnever evaluated
FALSEevaluated 426 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
0-426
341-
342 }
executed 426 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
426
343-
344 }-
345-
346 terminal = path.last();-
347 }
executed 684 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
684
348-
349 if (terminal.count() >= 3 &&
terminal.count() >= 3Description
TRUEevaluated 20918 times by 42 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • ...
FALSEevaluated 44133 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_scenegraph
20918-44133
350 terminal.at(0) == QLatin1Char('o') &&
terminal.at(0)...atin1Char('o')Description
TRUEevaluated 4672 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qquickapplication
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_scenegraph
FALSEevaluated 16246 times by 37 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • ...
4672-16246
351 terminal.at(1) == QLatin1Char('n') &&
terminal.at(1)...atin1Char('n')Description
TRUEevaluated 198 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 4474 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickimage
  • tst_qquickpathview
  • tst_scenegraph
198-4474
352 terminal.at(2).isUpper()) {
terminal.at(2).isUpper()Description
TRUEevaluated 198 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEnever evaluated
0-198
353-
354 QString signalName = terminal.mid(2).toString();-
355 signalName[0] = signalName.at(0).toLower();-
356-
357 // XXX - this code treats methods as signals-
358-
359 QQmlData *ddata = QQmlData::get(currentObject, false);-
360 if (ddata && ddata->propertyCache) {
ddataDescription
TRUEevaluated 178 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_qqmlproperty
ddata->propertyCacheDescription
TRUEevaluated 114 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_qqmllistmodel
20-178
361-
362 // Try method-
363 QQmlPropertyData *d = ddata->propertyCache->property(signalName, currentObject, context);-
364 while (d && !d->isFunction())
dDescription
TRUEevaluated 100 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_qqmlconnections
  • tst_qqmlproperty
  • tst_qquickstates
!d->isFunction()Description
TRUEnever evaluated
FALSEevaluated 100 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
0-100
365 d = ddata->propertyCache->overrideData(d);
never executed: d = ddata->propertyCache->overrideData(d);
0
366-
367 if (d) {
dDescription
TRUEevaluated 100 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_qqmlconnections
  • tst_qqmlproperty
  • tst_qquickstates
14-100
368 object = currentObject;-
369 core = *d;-
370 return;
executed 100 times by 11 tests: return;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
100
371 }-
372-
373 // Try property-
374 if (signalName.endsWith(QLatin1String("Changed"))) {
signalName.end...ng("Changed"))Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlconnections
6-8
375 const QStringRef propName = signalName.midRef(0, signalName.length() - 7);-
376 QQmlPropertyData *d = ddata->propertyCache->property(propName, currentObject, context);-
377 while (d && d->isFunction())
dDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
FALSEnever evaluated
d->isFunction()Description
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
0-6
378 d = ddata->propertyCache->overrideData(d);
never executed: d = ddata->propertyCache->overrideData(d);
0
379-
380 if (d && d->notifyIndex() != -1) {
dDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
FALSEnever evaluated
d->notifyIndex() != -1Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
FALSEnever evaluated
0-6
381 object = currentObject;-
382 core = *ddata->propertyCache->signal(d->notifyIndex());-
383 return;
executed 6 times by 2 tests: return;
Executed by:
  • tst_qqmlproperty
  • tst_qquickstates
6
384 }-
385 }
never executed: end of block
0
386-
387 } else {
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlconnections
8
388 QMetaMethod method = findSignalByName(currentObject->metaObject(),-
389 signalName.toLatin1());-
390 if (method.isValid()) {
method.isValid()Description
TRUEevaluated 80 times by 2 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlproperty
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlproperty
4-80
391 object = currentObject;-
392 core.load(method);-
393 return;
executed 80 times by 2 tests: return;
Executed by:
  • tst_qqmllistmodel
  • tst_qqmlproperty
80
394 }-
395 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlproperty
4
396 }-
397-
398 // Property-
399 QQmlPropertyData local;-
400 QQmlPropertyData *property =-
401 QQmlPropertyCache::property(engine, currentObject, terminal, context, local);-
402 if (property && !property->isFunction()) {
propertyDescription
TRUEevaluated 64831 times by 39 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • ...
FALSEevaluated 34 times by 6 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickstates
!property->isFunction()Description
TRUEevaluated 64831 times by 39 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • ...
FALSEnever evaluated
0-64831
403 object = currentObject;-
404 core = *property;-
405 nameCache = terminal.toString();-
406 isNameCached = true;-
407 }
executed 64831 times by 39 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • ...
64831
408}
executed 64865 times by 40 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • ...
64865
409-
410/*! \internal-
411 Returns the index of this property's signal, in the signal index range-
412 (see QObjectPrivate::signalIndex()). This is different from-
413 QMetaMethod::methodIndex().-
414*/-
415int QQmlPropertyPrivate::signalIndex() const-
416{-
417 Q_ASSERT(type() == QQmlProperty::SignalProperty);-
418 QMetaMethod m = object->metaObject()->method(core.coreIndex());-
419 return QMetaObjectPrivate::signalIndex(m);
executed 288 times by 12 tests: return QMetaObjectPrivate::signalIndex(m);
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
288
420}-
421-
422/*!-
423 Create a copy of \a other.-
424*/-
425QQmlProperty::QQmlProperty(const QQmlProperty &other)-
426{-
427 d = other.d;-
428 if (d)
dDescription
TRUEevaluated 165774 times by 30 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
FALSEevaluated 642 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
642-165774
429 d->addref();
executed 165774 times by 30 tests: d->addref();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
165774
430}
executed 166416 times by 30 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
166416
431-
432/*!-
433 \enum QQmlProperty::PropertyTypeCategory-
434-
435 This enum specifies a category of QML property.-
436-
437 \value InvalidCategory The property is invalid, or is a signal property.-
438 \value List The property is a QQmlListProperty list property-
439 \value Object The property is a QObject derived type pointer-
440 \value Normal The property is a normal value property.-
441 */-
442-
443/*!-
444 \enum QQmlProperty::Type-
445-
446 This enum specifies a type of QML property.-
447-
448 \value Invalid The property is invalid.-
449 \value Property The property is a regular Qt property.-
450 \value SignalProperty The property is a signal property.-
451*/-
452-
453/*!-
454 Returns the property category.-
455*/-
456QQmlProperty::PropertyTypeCategory QQmlProperty::propertyTypeCategory() const-
457{-
458 return d ? d->propertyTypeCategory() : InvalidCategory;
executed 112 times by 3 tests: return d ? d->propertyTypeCategory() : InvalidCategory;
Executed by:
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
112
459}-
460-
461QQmlProperty::PropertyTypeCategory-
462QQmlPropertyPrivate::propertyTypeCategory() const-
463{-
464 uint type = this->type();-
465-
466 if (isValueType()) {
isValueType()Description
TRUEnever evaluated
FALSEevaluated 110 times by 3 tests
Evaluated by:
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
0-110
467 return QQmlProperty::Normal;
never executed: return QQmlProperty::Normal;
0
468 } else if (type & QQmlProperty::Property) {
type & QQmlProperty::PropertyDescription
TRUEevaluated 94 times by 3 tests
Evaluated by:
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlproperty
16-94
469 int type = propertyType();-
470 if (type == QVariant::Invalid)
type == QVariant::InvalidDescription
TRUEnever evaluated
FALSEevaluated 94 times by 3 tests
Evaluated by:
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
0-94
471 return QQmlProperty::InvalidCategory;
never executed: return QQmlProperty::InvalidCategory;
0
472 else if (QQmlValueTypeFactory::isValueType((uint)type))
QQmlValueTypeF...pe((uint)type)Description
TRUEevaluated 46 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickdesignersupport
FALSEevaluated 48 times by 3 tests
Evaluated by:
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
46-48
473 return QQmlProperty::Normal;
executed 46 times by 2 tests: return QQmlProperty::Normal;
Executed by:
  • tst_qqmlproperty
  • tst_qquickdesignersupport
46
474 else if (core.isQObject())
core.isQObject()Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickdesignersupport
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_qqmllistreference
  • tst_qquickdesignersupport
16-32
475 return QQmlProperty::Object;
executed 16 times by 2 tests: return QQmlProperty::Object;
Executed by:
  • tst_qqmlproperty
  • tst_qquickdesignersupport
16
476 else if (core.isQList())
core.isQList()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmllistreference
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquickdesignersupport
4-28
477 return QQmlProperty::List;
executed 4 times by 1 test: return QQmlProperty::List;
Executed by:
  • tst_qqmllistreference
4
478 else-
479 return QQmlProperty::Normal;
executed 28 times by 1 test: return QQmlProperty::Normal;
Executed by:
  • tst_qquickdesignersupport
28
480 }-
481-
482 return QQmlProperty::InvalidCategory;
executed 16 times by 1 test: return QQmlProperty::InvalidCategory;
Executed by:
  • tst_qqmlproperty
16
483}-
484-
485/*!-
486 Returns the type name of the property, or 0 if the property has no type-
487 name.-
488*/-
489const char *QQmlProperty::propertyTypeName() const-
490{-
491 if (!d)
!dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 26 times by 1 test
Evaluated by:
  • tst_qqmlproperty
2-26
492 return nullptr;
executed 2 times by 1 test: return nullptr;
Executed by:
  • tst_qqmlproperty
2
493 if (d->isValueType()) {
d->isValueType()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qqmlproperty
2-24
494 const QMetaObject *valueTypeMetaObject = QQmlValueTypeFactory::metaObjectForMetaType(d->core.propType());-
495 Q_ASSERT(valueTypeMetaObject);-
496 return valueTypeMetaObject->property(d->valueTypeData.coreIndex()).typeName();
executed 2 times by 1 test: return valueTypeMetaObject->property(d->valueTypeData.coreIndex()).typeName();
Executed by:
  • tst_qqmlproperty
2
497 } else if (d->object && type() & Property && d->core.isValid()) {
type() & PropertyDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlproperty
d->core.isValid()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEnever evaluated
0-8
498 return d->object->metaObject()->property(d->core.coreIndex()).typeName();
executed 8 times by 1 test: return d->object->metaObject()->property(d->core.coreIndex()).typeName();
Executed by:
  • tst_qqmlproperty
8
499 } else {-
500 return nullptr;
executed 16 times by 1 test: return nullptr;
Executed by:
  • tst_qqmlproperty
16
501 }-
502}-
503-
504/*!-
505 Returns true if \a other and this QQmlProperty represent the same-
506 property.-
507*/-
508bool QQmlProperty::operator==(const QQmlProperty &other) const-
509{-
510 if (!d || !other.d)
!dDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 32294 times by 20 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
!other.dDescription
TRUEnever evaluated
FALSEevaluated 32294 times by 20 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
0-32294
511 return false;
executed 10 times by 1 test: return false;
Executed by:
  • tst_qquickstates
10
512 // category is intentially omitted here as it is generated-
513 // from the other members-
514 return d->object == other.d->object &&
executed 32294 times by 20 tests: return d->object == other.d->object && d->core.coreIndex() == other.d->core.coreIndex() && d->valueTypeData.coreIndex() == other.d->valueTypeData.coreIndex();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
32294
515 d->core.coreIndex() == other.d->core.coreIndex() &&
executed 32294 times by 20 tests: return d->object == other.d->object && d->core.coreIndex() == other.d->core.coreIndex() && d->valueTypeData.coreIndex() == other.d->valueTypeData.coreIndex();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
32294
516 d->valueTypeData.coreIndex() == other.d->valueTypeData.coreIndex();
executed 32294 times by 20 tests: return d->object == other.d->object && d->core.coreIndex() == other.d->core.coreIndex() && d->valueTypeData.coreIndex() == other.d->valueTypeData.coreIndex();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
32294
517}-
518-
519/*!-
520 Returns the QVariant type of the property, or QVariant::Invalid if the-
521 property has no QVariant type.-
522*/-
523int QQmlProperty::propertyType() const-
524{-
525 return d ? d->propertyType() : int(QVariant::Invalid);
executed 8040 times by 10 tests: return d ? d->propertyType() : int(QVariant::Invalid);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
8040
526}-
527-
528bool QQmlPropertyPrivate::isValueType() const-
529{-
530 return valueTypeData.isValid();
executed 110021 times by 36 tests: return valueTypeData.isValid();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • ...
110021
531}-
532-
533int QQmlPropertyPrivate::propertyType() const-
534{-
535 uint type = this->type();-
536 if (isValueType()) {
isValueType()Description
TRUEnever evaluated
FALSEevaluated 8132 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
0-8132
537 return valueTypeData.propType();
never executed: return valueTypeData.propType();
0
538 } else if (type & QQmlProperty::Property) {
type & QQmlProperty::PropertyDescription
TRUEevaluated 8116 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlproperty
16-8116
539 return core.propType();
executed 8116 times by 12 tests: return core.propType();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_scenegraph
8116
540 } else {-
541 return QVariant::Invalid;
executed 16 times by 1 test: return QVariant::Invalid;
Executed by:
  • tst_qqmlproperty
16
542 }-
543}-
544-
545QQmlProperty::Type QQmlPropertyPrivate::type() const-
546{-
547 if (core.isFunction())
core.isFunction()Description
TRUEevaluated 1164 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 483714 times by 42 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • ...
1164-483714
548 return QQmlProperty::SignalProperty;
executed 1164 times by 12 tests: return QQmlProperty::SignalProperty;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
1164
549 else if (core.isValid())
core.isValid()Description
TRUEevaluated 483450 times by 40 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • ...
FALSEevaluated 264 times by 7 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickstates
  • tst_qtqmlmodules
264-483450
550 return QQmlProperty::Property;
executed 483450 times by 40 tests: return QQmlProperty::Property;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • ...
483450
551 else-
552 return QQmlProperty::Invalid;
executed 264 times by 7 tests: return QQmlProperty::Invalid;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickstates
  • tst_qtqmlmodules
264
553}-
554-
555/*!-
556 Returns the type of the property.-
557*/-
558QQmlProperty::Type QQmlProperty::type() const-
559{-
560 return d ? d->type() : Invalid;
executed 476374 times by 45 tests: return d ? d->type() : Invalid;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
476374
561}-
562-
563/*!-
564 Returns true if this QQmlProperty represents a regular Qt property.-
565*/-
566bool QQmlProperty::isProperty() const-
567{-
568 return type() & Property;
executed 10980 times by 18 tests: return type() & Property;
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_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
10980
569}-
570-
571/*!-
572 Returns true if this QQmlProperty represents a QML signal property.-
573*/-
574bool QQmlProperty::isSignalProperty() const-
575{-
576 return type() & SignalProperty;
executed 44 times by 2 tests: return type() & SignalProperty;
Executed by:
  • tst_qqmlproperty
  • tst_qquickstates
44
577}-
578-
579/*!-
580 Returns the QQmlProperty's QObject.-
581*/-
582QObject *QQmlProperty::object() const-
583{-
584 return d ? d->object : nullptr;
executed 78445 times by 26 tests: return d ? d->object : nullptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
  • ...
78445
585}-
586-
587/*!-
588 Assign \a other to this QQmlProperty.-
589*/-
590QQmlProperty &QQmlProperty::operator=(const QQmlProperty &other)-
591{-
592 if (d)
dDescription
TRUEevaluated 52 times by 3 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
FALSEevaluated 53883 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
52-53883
593 d->release();
executed 52 times by 3 tests: d->release();
Executed by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
52
594 d = other.d;-
595 if (d)
dDescription
TRUEevaluated 53679 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
FALSEevaluated 256 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicksmoothedanimation
  • tst_qquickstates
256-53679
596 d->addref();
executed 53679 times by 35 tests: d->addref();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
53679
597-
598 return *this;
executed 53935 times by 35 tests: return *this;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
53935
599}-
600-
601/*!-
602 Returns true if the property is writable, otherwise false.-
603*/-
604bool QQmlProperty::isWritable() const-
605{-
606 if (!d)
!dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 145171 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
2-145171
607 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
2
608 if (!d->object)
!d->objectDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 145163 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
8-145163
609 return false;
executed 8 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
8
610 if (d->core.isQList()) //list
d->core.isQList()Description
TRUEevaluated 32 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickdesignersupport
FALSEevaluated 145131 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
32-145131
611 return true;
executed 32 times by 2 tests: return true;
Executed by:
  • tst_qqmlproperty
  • tst_qquickdesignersupport
32
612 else if (d->core.isFunction()) //signal handler
d->core.isFunction()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 145123 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
8-145123
613 return false;
executed 8 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
8
614 else if (d->core.isValid()) //normal property
d->core.isValid()Description
TRUEevaluated 145123 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
FALSEnever evaluated
0-145123
615 return d->core.isWritable();
executed 145123 times by 34 tests: return d->core.isWritable();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
145123
616 else-
617 return false;
never executed: return false;
0
618}-
619-
620/*!-
621 Returns true if the property is designable, otherwise false.-
622*/-
623bool QQmlProperty::isDesignable() const-
624{-
625 if (!d)
!dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qqmlproperty
2-24
626 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
2
627 if (type() & Property && d->core.isValid() && d->object)
type() & PropertyDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlproperty
d->core.isValid()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEnever evaluated
0-16
628 return d->object->metaObject()->property(d->core.coreIndex()).isDesignable();
executed 8 times by 1 test: return d->object->metaObject()->property(d->core.coreIndex()).isDesignable();
Executed by:
  • tst_qqmlproperty
8
629 else-
630 return false;
executed 16 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
16
631}-
632-
633/*!-
634 Returns true if the property is resettable, otherwise false.-
635*/-
636bool QQmlProperty::isResettable() const-
637{-
638 if (!d)
!dDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 68 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdesignersupport
6-68
639 return false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
6
640 if (type() & Property && d->core.isValid() && d->object)
type() & PropertyDescription
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdesignersupport
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qqmlproperty
d->core.isValid()Description
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdesignersupport
FALSEnever evaluated
0-40
641 return d->core.isResettable();
executed 36 times by 3 tests: return d->core.isResettable();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdesignersupport
36
642 else-
643 return false;
executed 32 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
32
644}-
645-
646/*!-
647 Returns true if the QQmlProperty refers to a valid property, otherwise-
648 false.-
649*/-
650bool QQmlProperty::isValid() const-
651{-
652 if (!d)
!dDescription
TRUEevaluated 49268 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
  • tst_qtqmlmodules
  • tst_scenegraph
FALSEevaluated 141850 times by 45 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
49268-141850
653 return false;
executed 49268 times by 16 tests: return false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
  • tst_qtqmlmodules
  • tst_scenegraph
49268
654 return type() != Invalid;
executed 141850 times by 45 tests: return type() != Invalid;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • ...
141850
655}-
656-
657/*!-
658 Return the name of this QML property.-
659*/-
660QString QQmlProperty::name() const-
661{-
662 if (!d)
!dDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickanimations
FALSEevaluated 76079 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
  • tst_qquicktaphandler
6-76079
663 return QString();
executed 6 times by 2 tests: return QString();
Executed by:
  • tst_qqmlproperty
  • tst_qquickanimations
6
664 if (!d->isNameCached) {
!d->isNameCachedDescription
TRUEevaluated 4908 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
FALSEevaluated 71171 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
  • tst_qquicktaphandler
4908-71171
665 // ###-
666 if (!d->object) {
!d->objectDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 4890 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
18-4890
667 } else if (d->isValueType()) {
executed 18 times by 1 test: end of block
Executed by:
  • tst_qqmlproperty
d->isValueType()Description
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qquickbehaviors
FALSEevaluated 4882 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
8-4882
668 const QMetaObject *valueTypeMetaObject = QQmlValueTypeFactory::metaObjectForMetaType(d->core.propType());-
669 Q_ASSERT(valueTypeMetaObject);-
670-
671 const char *vtName = valueTypeMetaObject->property(d->valueTypeData.coreIndex()).name();-
672 d->nameCache = d->core.name(d->object) + QLatin1Char('.') + QString::fromUtf8(vtName);-
673 } else if (type() & SignalProperty) {
executed 8 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qquickbehaviors
type() & SignalPropertyDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
FALSEevaluated 4868 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
8-4868
674 QString name = QLatin1String("on") + d->core.name(d->object);-
675 name[2] = name.at(2).toUpper();-
676 d->nameCache = name;-
677 } else {
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
14
678 d->nameCache = d->core.name(d->object);-
679 }
executed 4868 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
4868
680 d->isNameCached = true;-
681 }
executed 4908 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
4908
682-
683 return d->nameCache;
executed 76079 times by 21 tests: return d->nameCache;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • tst_qquickstates
  • tst_qquicktaphandler
76079
684}-
685-
686/*!-
687 Returns the \l{QMetaProperty} {Qt property} associated with-
688 this QML property.-
689 */-
690QMetaProperty QQmlProperty::property() const-
691{-
692 if (!d)
!dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 98 times by 2 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_qqmlproperty
2-98
693 return QMetaProperty();
executed 2 times by 1 test: return QMetaProperty();
Executed by:
  • tst_qqmlproperty
2
694 if (type() & Property && d->core.isValid() && d->object)
type() & PropertyDescription
TRUEevaluated 82 times by 2 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_qqmlproperty
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlproperty
d->core.isValid()Description
TRUEevaluated 82 times by 2 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_qqmlproperty
FALSEnever evaluated
0-82
695 return d->object->metaObject()->property(d->core.coreIndex());
executed 82 times by 2 tests: return d->object->metaObject()->property(d->core.coreIndex());
Executed by:
  • tst_bindingdependencyapi
  • tst_qqmlproperty
82
696 else-
697 return QMetaProperty();
executed 16 times by 1 test: return QMetaProperty();
Executed by:
  • tst_qqmlproperty
16
698}-
699-
700/*!-
701 Return the QMetaMethod for this property if it is a SignalProperty,-
702 otherwise returns an invalid QMetaMethod.-
703*/-
704QMetaMethod QQmlProperty::method() const-
705{-
706 if (!d)
!dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qqmlproperty
2-24
707 return QMetaMethod();
executed 2 times by 1 test: return QMetaMethod();
Executed by:
  • tst_qqmlproperty
2
708 if (type() & SignalProperty && d->object)
type() & SignalPropertyDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlproperty
8-16
709 return d->object->metaObject()->method(d->core.coreIndex());
executed 8 times by 1 test: return d->object->metaObject()->method(d->core.coreIndex());
Executed by:
  • tst_qqmlproperty
8
710 else-
711 return QMetaMethod();
executed 16 times by 1 test: return QMetaMethod();
Executed by:
  • tst_qqmlproperty
16
712}-
713-
714/*!-
715 Returns the binding associated with this property, or 0 if no binding-
716 exists.-
717*/-
718QQmlAbstractBinding *-
719QQmlPropertyPrivate::binding(const QQmlProperty &that)-
720{-
721 if (!that.d || !that.isProperty() || !that.d->object)
!that.dDescription
TRUEevaluated 188 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 10370 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
!that.isProperty()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 10354 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
!that.d->objectDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlbinding
FALSEevaluated 10352 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
2-10370
722 return nullptr;
executed 206 times by 8 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
206
723-
724 QQmlPropertyIndex thatIndex(that.d->core.coreIndex(), that.d->valueTypeData.coreIndex());-
725 return binding(that.d->object, thatIndex);
executed 10352 times by 18 tests: return binding(that.d->object, thatIndex);
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_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
10352
726}-
727-
728/*!-
729 Set the binding associated with this property to \a newBinding. Returns-
730 the existing binding (if any), otherwise 0.-
731-
732 \a newBinding will be enabled, and the returned binding (if any) will be-
733 disabled.-
734-
735 Ownership of \a newBinding transfers to QML. Ownership of the return value-
736 is assumed by the caller.-
737-
738 \a flags is passed through to the binding and is used for the initial update (when-
739 the binding sets the initial value, it will use these flags for the write).-
740*/-
741void-
742QQmlPropertyPrivate::setBinding(const QQmlProperty &that, QQmlAbstractBinding *newBinding)-
743{-
744 if (!newBinding) {
!newBindingDescription
TRUEnever evaluated
FALSEevaluated 110 times by 4 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
0-110
745 removeBinding(that);-
746 return;
never executed: return;
0
747 }-
748-
749 if (!that.d || !that.isProperty() || !that.d->object) {
!that.dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 108 times by 4 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
!that.isProperty()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 92 times by 4 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
!that.d->objectDescription
TRUEnever evaluated
FALSEevaluated 92 times by 4 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
0-108
750 if (!newBinding->ref)
!newBinding->refDescription
TRUEnever evaluated
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlproperty
0-18
751 delete newBinding;
never executed: delete newBinding;
0
752 return;
executed 18 times by 1 test: return;
Executed by:
  • tst_qqmlproperty
18
753 }-
754 setBinding(newBinding);-
755}
executed 92 times by 4 tests: end of block
Executed by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
92
756-
757static void removeOldBinding(QObject *object, QQmlPropertyIndex index, QQmlPropertyPrivate::BindingFlags flags = QQmlPropertyPrivate::None)-
758{-
759 int coreIndex = index.coreIndex();-
760 int valueTypeIndex = index.valueTypeIndex();-
761-
762 QQmlData *data = QQmlData::get(object, false);-
763-
764 if (!data || !data->hasBindingBit(coreIndex))
!dataDescription
TRUEevaluated 96 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickvisualdatamodel
FALSEevaluated 48201 times by 84 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
!data->hasBind...Bit(coreIndex)Description
TRUEevaluated 47351 times by 84 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
FALSEevaluated 850 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
  • ...
96-48201
765 return;
executed 47447 times by 84 tests: return;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
47447
766-
767 QQmlAbstractBinding::Ptr oldBinding;-
768 oldBinding = data->bindings;-
769-
770 while (oldBinding && (oldBinding->targetPropertyIndex().coreIndex() != coreIndex ||
oldBinding->ta...) != coreIndexDescription
TRUEevaluated 404 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmltranslation
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_signalspy
FALSEevaluated 850 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
  • ...
404-850
771 oldBinding->targetPropertyIndex().hasValueTypeIndex()))
oldBinding->ta...lueTypeIndex()Description
TRUEnever evaluated
FALSEevaluated 850 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
  • ...
0-850
772 oldBinding = oldBinding->nextBinding();
executed 404 times by 13 tests: oldBinding = oldBinding->nextBinding();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmltranslation
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_signalspy
404
773-
774 if (!oldBinding)
!oldBindingDescription
TRUEnever evaluated
FALSEevaluated 850 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
  • ...
0-850
775 return;
never executed: return;
0
776-
777 if (valueTypeIndex != -1 && oldBinding->isValueTypeProxy())
valueTypeIndex != -1Description
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
FALSEevaluated 826 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
  • ...
oldBinding->isValueTypeProxy()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
6-826
778 oldBinding = static_cast<QQmlValueTypeProxyBinding *>(oldBinding.data())->binding(index);
executed 18 times by 1 test: oldBinding = static_cast<QQmlValueTypeProxyBinding *>(oldBinding.data())->binding(index);
Executed by:
  • tst_qqmlvaluetypes
18
779-
780 if (!oldBinding)
!oldBindingDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 842 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
  • ...
8-842
781 return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qqmlvaluetypes
8
782-
783 if (!(flags & QQmlPropertyPrivate::DontEnable))
!(flags & QQml...e::DontEnable)Description
TRUEevaluated 824 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
  • ...
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
18-824
784 oldBinding->setEnabled(false, nullptr);
executed 824 times by 28 tests: oldBinding->setEnabled(false, nullptr);
Executed 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
  • ...
824
785 oldBinding->removeFromObject();-
786}
executed 842 times by 28 tests: end of block
Executed 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
  • ...
842
787-
788void QQmlPropertyPrivate::removeBinding(QQmlAbstractBinding *b)-
789{-
790 removeBinding(b->targetObject(), b->targetPropertyIndex());-
791}
executed 48 times by 2 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickstates
48
792-
793void QQmlPropertyPrivate::removeBinding(QObject *o, QQmlPropertyIndex index)-
794{-
795 Q_ASSERT(o);-
796-
797 QObject *target;-
798 QQmlPropertyIndex targetIndex;-
799 findAliasTarget(o, index, &target, &targetIndex);-
800 removeOldBinding(target, targetIndex);-
801}
executed 47689 times by 83 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
47689
802-
803void QQmlPropertyPrivate::removeBinding(const QQmlProperty &that)-
804{-
805 if (!that.d || !that.isProperty() || !that.d->object)
!that.dDescription
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 470 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
!that.isProperty()Description
TRUEnever evaluated
FALSEevaluated 470 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
!that.d->objectDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlbinding
FALSEevaluated 468 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
0-470
806 return;
executed 42 times by 4 tests: return;
Executed by:
  • tst_qqmlbinding
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
42
807-
808 removeBinding(that.d->object, that.d->encodedIndex());-
809}
executed 468 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
468
810-
811QQmlAbstractBinding *-
812QQmlPropertyPrivate::binding(QObject *object, QQmlPropertyIndex index)-
813{-
814 findAliasTarget(object, index, &object, &index);-
815-
816 QQmlData *data = QQmlData::get(object);-
817 if (!data)
!dataDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlenginedebugservice
FALSEevaluated 49821 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • ...
16-49821
818 return nullptr;
executed 16 times by 1 test: return nullptr;
Executed by:
  • tst_qqmlenginedebugservice
16
819-
820 const int coreIndex = index.coreIndex();-
821 const int valueTypeIndex = index.valueTypeIndex();-
822-
823 if (coreIndex < 0 || !data->hasBindingBit(coreIndex))
coreIndex < 0Description
TRUEnever evaluated
FALSEevaluated 49821 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • ...
!data->hasBind...Bit(coreIndex)Description
TRUEevaluated 49409 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • ...
FALSEevaluated 412 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
0-49821
824 return nullptr;
executed 49409 times by 33 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • ...
49409
825-
826 QQmlAbstractBinding *binding = data->bindings;-
827 while (binding && (binding->targetPropertyIndex().coreIndex() != coreIndex ||
bindingDescription
TRUEevaluated 494 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEnever evaluated
binding->targe...) != coreIndexDescription
TRUEevaluated 82 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 412 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
0-494
828 binding->targetPropertyIndex().hasValueTypeIndex()))
binding->targe...lueTypeIndex()Description
TRUEnever evaluated
FALSEevaluated 412 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
0-412
829 binding = binding->nextBinding();
executed 82 times by 8 tests: binding = binding->nextBinding();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
82
830-
831 if (binding && valueTypeIndex != -1) {
bindingDescription
TRUEevaluated 412 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
FALSEnever evaluated
valueTypeIndex != -1Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
FALSEevaluated 398 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
0-412
832 if (binding->isValueTypeProxy()) {
binding->isValueTypeProxy()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
6-8
833 binding = static_cast<QQmlValueTypeProxyBinding *>(binding)->binding(index);-
834 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlvaluetypes
6
835 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
14
836-
837 return binding;
executed 412 times by 12 tests: return binding;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
412
838}-
839-
840void QQmlPropertyPrivate::findAliasTarget(QObject *object, QQmlPropertyIndex bindingIndex,-
841 QObject **targetObject,-
842 QQmlPropertyIndex *targetBindingIndex)-
843{-
844 QQmlData *data = QQmlData::get(object, false);-
845 if (data) {
dataDescription
TRUEevaluated 97496 times by 87 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
FALSEevaluated 112 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickvisualdatamodel
112-97496
846 int coreIndex = bindingIndex.coreIndex();-
847 int valueTypeIndex = bindingIndex.valueTypeIndex();-
848-
849 QQmlPropertyData *propertyData =-
850 data->propertyCache?data->propertyCache->property(coreIndex):nullptr;
data->propertyCacheDescription
TRUEevaluated 97204 times by 87 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
FALSEevaluated 292 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickvisualdatamodel
292-97204
851 if (propertyData && propertyData->isAlias()) {
propertyDataDescription
TRUEevaluated 97204 times by 87 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
FALSEevaluated 292 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickvisualdatamodel
propertyData->isAlias()Description
TRUEevaluated 84 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickbehaviors
FALSEevaluated 97120 times by 87 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
84-97204
852 QQmlVMEMetaObject *vme = QQmlVMEMetaObject::getForProperty(object, coreIndex);-
853-
854 QObject *aObject = nullptr; int aCoreIndex = -1; int aValueTypeIndex = -1;-
855 if (vme->aliasTarget(coreIndex, &aObject, &aCoreIndex, &aValueTypeIndex)) {
vme->aliasTarg...alueTypeIndex)Description
TRUEevaluated 80 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickbehaviors
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
4-80
856 // This will either be a value type sub-reference or an alias to a value-type sub-reference not both-
857 Q_ASSERT(valueTypeIndex == -1 || aValueTypeIndex == -1);-
858-
859 QQmlPropertyIndex aBindingIndex(aCoreIndex);-
860 if (aValueTypeIndex != -1) {
aValueTypeIndex != -1Description
TRUEnever evaluated
FALSEevaluated 80 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickbehaviors
0-80
861 aBindingIndex = QQmlPropertyIndex(aCoreIndex, aValueTypeIndex);-
862 } else if (valueTypeIndex != -1) {
never executed: end of block
valueTypeIndex != -1Description
TRUEnever evaluated
FALSEevaluated 80 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickbehaviors
0-80
863 aBindingIndex = QQmlPropertyIndex(aCoreIndex, valueTypeIndex);-
864 }
never executed: end of block
0
865-
866 findAliasTarget(aObject, aBindingIndex, targetObject, targetBindingIndex);-
867 return;
executed 80 times by 5 tests: return;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qquickbehaviors
80
868 }-
869 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
4
870 }
executed 97416 times by 87 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
97416
871-
872 *targetObject = object;-
873 *targetBindingIndex = bindingIndex;-
874}
executed 97528 times by 87 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
97528
875-
876-
877void QQmlPropertyPrivate::setBinding(QQmlAbstractBinding *binding, BindingFlags flags, QQmlPropertyData::WriteFlags writeFlags)-
878{-
879 Q_ASSERT(binding);-
880 Q_ASSERT(binding->targetObject());-
881-
882 QObject *object = binding->targetObject();-
883 const QQmlPropertyIndex index = binding->targetPropertyIndex();-
884-
885#ifndef QT_NO_DEBUG-
886 int coreIndex = index.coreIndex();-
887 QQmlData *data = QQmlData::get(object, true);-
888 if (data->propertyCache) {
data->propertyCacheDescription
TRUEevaluated 608 times by 19 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickstates
FALSEnever evaluated
0-608
889 QQmlPropertyData *propertyData = data->propertyCache->property(coreIndex);-
890 Q_ASSERT(propertyData && !propertyData->isAlias());-
891 }
executed 608 times by 19 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickstates
608
892#endif-
893-
894 removeOldBinding(object, index, flags);-
895-
896 binding->addToObject();-
897 if (!(flags & DontEnable))
!(flags & DontEnable)Description
TRUEevaluated 388 times by 18 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickstates
FALSEevaluated 220 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickbehaviors
  • tst_qquickdraghandler
220-388
898 binding->setEnabled(true, writeFlags);
executed 388 times by 18 tests: binding->setEnabled(true, writeFlags);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickstates
388
899-
900}
executed 608 times by 19 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickstates
608
901-
902/*!-
903 Returns the expression associated with this signal property, or 0 if no-
904 signal expression exists.-
905*/-
906QQmlBoundSignalExpression *-
907QQmlPropertyPrivate::signalExpression(const QQmlProperty &that)-
908{-
909 if (!(that.type() & QQmlProperty::SignalProperty))
!(that.type() ...ignalProperty)Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 74 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickstates
18-74
910 return nullptr;
executed 18 times by 1 test: return nullptr;
Executed by:
  • tst_qqmlproperty
18
911-
912 QQmlData *data = QQmlData::get(that.d->object);-
913 if (!data)
!dataDescription
TRUEnever evaluated
FALSEevaluated 74 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickstates
0-74
914 return nullptr;
never executed: return nullptr;
0
915-
916 QQmlBoundSignal *signalHandler = data->signalHandlers;-
917-
918 while (signalHandler && signalHandler->signalIndex() != QQmlPropertyPrivate::get(that)->signalIndex())
signalHandlerDescription
TRUEevaluated 64 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickstates
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
signalHandler-...>signalIndex()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
FALSEevaluated 58 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickstates
6-64
919 signalHandler = signalHandler->m_nextSignal;
executed 6 times by 2 tests: signalHandler = signalHandler->m_nextSignal;
Executed by:
  • tst_qqmlproperty
  • tst_qquickstates
6
920-
921 if (signalHandler)
signalHandlerDescription
TRUEevaluated 58 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickstates
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
16-58
922 return signalHandler->expression();
executed 58 times by 3 tests: return signalHandler->expression();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickstates
58
923-
924 return nullptr;
executed 16 times by 2 tests: return nullptr;
Executed by:
  • tst_qqmlproperty
  • tst_qquickstates
16
925}-
926-
927/*!-
928 Set the signal expression associated with this signal property to \a expr.-
929 A reference to \a expr will be added by QML.-
930*/-
931void QQmlPropertyPrivate::setSignalExpression(const QQmlProperty &that, QQmlBoundSignalExpression *expr)-
932{-
933 if (expr)
exprDescription
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickstates
4-30
934 expr->addref();
executed 30 times by 1 test: expr->addref();
Executed by:
  • tst_qquickstates
30
935 QQmlPropertyPrivate::takeSignalExpression(that, expr);-
936}
executed 34 times by 1 test: end of block
Executed by:
  • tst_qquickstates
34
937-
938/*!-
939 Set the signal expression associated with this signal property to \a expr.-
940 Ownership of \a expr transfers to QML.-
941*/-
942void QQmlPropertyPrivate::takeSignalExpression(const QQmlProperty &that,-
943 QQmlBoundSignalExpression *expr)-
944{-
945 if (!(that.type() & QQmlProperty::SignalProperty)) {
!(that.type() ...ignalProperty)Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 52 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickstates
18-52
946 if (expr)
exprDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEnever evaluated
0-18
947 expr->release();
executed 18 times by 1 test: expr->release();
Executed by:
  • tst_qqmlproperty
18
948 return;
executed 18 times by 1 test: return;
Executed by:
  • tst_qqmlproperty
18
949 }-
950-
951 QQmlData *data = QQmlData::get(that.d->object, nullptr != expr);-
952 if (!data)
!dataDescription
TRUEnever evaluated
FALSEevaluated 52 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickstates
0-52
953 return;
never executed: return;
0
954-
955 QQmlBoundSignal *signalHandler = data->signalHandlers;-
956-
957 while (signalHandler && signalHandler->signalIndex() != QQmlPropertyPrivate::get(that)->signalIndex())
signalHandlerDescription
TRUEevaluated 34 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickstates
FALSEevaluated 24 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
signalHandler-...>signalIndex()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
FALSEevaluated 28 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
6-34
958 signalHandler = signalHandler->m_nextSignal;
executed 6 times by 2 tests: signalHandler = signalHandler->m_nextSignal;
Executed by:
  • tst_qqmlproperty
  • tst_qquickstates
6
959-
960 if (signalHandler) {
signalHandlerDescription
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
FALSEevaluated 24 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
24-28
961 signalHandler->takeExpression(expr);-
962 return;
executed 28 times by 2 tests: return;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickstates
28
963 }-
964-
965 if (expr) {
exprDescription
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickstates
FALSEnever evaluated
0-24
966 int signalIndex = QQmlPropertyPrivate::get(that)->signalIndex();-
967 QQmlBoundSignal *signal = new QQmlBoundSignal(that.d->object, signalIndex, that.d->object,-
968 expr->context()->engine);-
969 signal->takeExpression(expr);-
970 }
executed 24 times by 2 tests: end of block
Executed by:
  • tst_qqmlproperty
  • tst_qquickstates
24
971}
executed 24 times by 2 tests: end of block
Executed by:
  • tst_qqmlproperty
  • tst_qquickstates
24
972-
973/*!-
974 Returns the property value.-
975*/-
976QVariant QQmlProperty::read() const-
977{-
978 if (!d)
!dDescription
TRUEevaluated 44 times by 4 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 96893 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • ...
44-96893
979 return QVariant();
executed 44 times by 4 tests: return QVariant();
Executed by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
44
980 if (!d->object)
!d->objectDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 96879 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • ...
14-96879
981 return QVariant();
executed 14 times by 1 test: return QVariant();
Executed by:
  • tst_qqmlproperty
14
982-
983 if (type() & SignalProperty) {
type() & SignalPropertyDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 96863 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • ...
16-96863
984-
985 return QVariant();
executed 16 times by 1 test: return QVariant();
Executed by:
  • tst_qqmlproperty
16
986-
987 } else if (type() & Property) {
type() & PropertyDescription
TRUEevaluated 96863 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • ...
FALSEnever evaluated
0-96863
988-
989 return d->readValueProperty();
executed 96863 times by 33 tests: return d->readValueProperty();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • ...
96863
990-
991 }-
992 return QVariant();
never executed: return QVariant();
0
993}-
994-
995/*!-
996Return the \a name property value of \a object. This method is equivalent to:-
997\code-
998 QQmlProperty p(object, name);-
999 p.read();-
1000\endcode-
1001*/-
1002QVariant QQmlProperty::read(const QObject *object, const QString &name)-
1003{-
1004 QQmlProperty p(const_cast<QObject *>(object), name);-
1005 return p.read();
executed 66 times by 3 tests: return p.read();
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlproperty
66
1006}-
1007-
1008/*!-
1009 Return the \a name property value of \a object using the-
1010 \l{QQmlContext} {context} \a ctxt. This method is-
1011 equivalent to:-
1012-
1013 \code-
1014 QQmlProperty p(object, name, context);-
1015 p.read();-
1016 \endcode-
1017*/-
1018QVariant QQmlProperty::read(const QObject *object, const QString &name, QQmlContext *ctxt)-
1019{-
1020 QQmlProperty p(const_cast<QObject *>(object), name, ctxt);-
1021 return p.read();
executed 2 times by 1 test: return p.read();
Executed by:
  • tst_qqmlproperty
2
1022}-
1023-
1024/*!-
1025-
1026 Return the \a name property value of \a object using the environment-
1027 for instantiating QML components that is provided by \a engine. .-
1028 This method is equivalent to:-
1029-
1030 \code-
1031 QQmlProperty p(object, name, engine);-
1032 p.read();-
1033 \endcode-
1034*/-
1035QVariant QQmlProperty::read(const QObject *object, const QString &name, QQmlEngine *engine)-
1036{-
1037 QQmlProperty p(const_cast<QObject *>(object), name, engine);-
1038 return p.read();
executed 2 times by 1 test: return p.read();
Executed by:
  • tst_qqmlproperty
2
1039}-
1040-
1041QVariant QQmlPropertyPrivate::readValueProperty()-
1042{-
1043 if (isValueType()) {
isValueType()Description
TRUEevaluated 28 times by 3 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
FALSEevaluated 96835 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • ...
28-96835
1044-
1045 QQmlValueType *valueType = QQmlValueTypeFactory::valueType(core.propType());-
1046 Q_ASSERT(valueType);-
1047 valueType->read(object, core.coreIndex());-
1048 return valueType->metaObject()->property(valueTypeData.coreIndex()).read(valueType);
executed 28 times by 3 tests: return valueType->metaObject()->property(valueTypeData.coreIndex()).read(valueType);
Executed by:
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
28
1049-
1050 } else if (core.isQList()) {
core.isQList()Description
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickitem2
FALSEevaluated 96823 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
12-96823
1051-
1052 QQmlListProperty<QObject> prop;-
1053 core.readProperty(object, &prop);-
1054 return QVariant::fromValue(QQmlListReferencePrivate::init(prop, core.propType(), engine));
executed 12 times by 3 tests: return QVariant::fromValue(QQmlListReferencePrivate::init(prop, core.propType(), engine));
Executed by:
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickitem2
12
1055-
1056 } else if (core.isQObject()) {
core.isQObject()Description
TRUEevaluated 122 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
FALSEevaluated 96701 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
122-96701
1057-
1058 QObject *rv = nullptr;-
1059 core.readProperty(object, &rv);-
1060 return QVariant::fromValue(rv);
executed 122 times by 5 tests: return QVariant::fromValue(rv);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickitem2
122
1061-
1062 } else {-
1063-
1064 if (!core.propType()) // Unregistered type
!core.propType()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 96699 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
2-96699
1065 return object->metaObject()->property(core.coreIndex()).read(object);
executed 2 times by 1 test: return object->metaObject()->property(core.coreIndex()).read(object);
Executed by:
  • tst_qqmlecmascript
2
1066-
1067 QVariant value;-
1068 int status = -1;-
1069 void *args[] = { nullptr, &value, &status };-
1070 if (core.propType() == QMetaType::QVariant) {
core.propType(...Type::QVariantDescription
TRUEevaluated 432 times by 3 tests
Evaluated by:
  • tst_qqmllistmodelworkerscript
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
FALSEevaluated 96267 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
432-96267
1071 args[0] = &value;-
1072 } else {
executed 432 times by 3 tests: end of block
Executed by:
  • tst_qqmllistmodelworkerscript
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
432
1073 value = QVariant(core.propType(), (void*)nullptr);-
1074 args[0] = value.data();-
1075 }
executed 96267 times by 32 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
96267
1076 core.readPropertyWithArgs(object, args);-
1077 if (core.propType() != QMetaType::QVariant && args[0] != value.data())
core.propType(...Type::QVariantDescription
TRUEevaluated 96267 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
FALSEevaluated 432 times by 3 tests
Evaluated by:
  • tst_qqmllistmodelworkerscript
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
args[0] != value.data()Description
TRUEnever evaluated
FALSEevaluated 96267 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
0-96267
1078 return QVariant((QVariant::Type)core.propType(), args[0]);
never executed: return QVariant((QVariant::Type)core.propType(), args[0]);
0
1079-
1080 return value;
executed 96699 times by 32 tests: return value;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • ...
96699
1081 }-
1082}-
1083-
1084// helper function to allow assignment / binding to QList<QUrl> properties.-
1085QVariant QQmlPropertyPrivate::resolvedUrlSequence(const QVariant &value, QQmlContextData *context)-
1086{-
1087 QList<QUrl> urls;-
1088 if (value.userType() == qMetaTypeId<QUrl>()) {
value.userType...TypeId<QUrl>()Description
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-42
1089 urls.append(value.toUrl());-
1090 } else if (value.userType() == qMetaTypeId<QString>()) {
never executed: end of block
value.userType...eId<QString>()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-32
1091 urls.append(QUrl(value.toString()));-
1092 } else if (value.userType() == qMetaTypeId<QByteArray>()) {
executed 10 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
value.userType...<QByteArray>()Description
TRUEnever evaluated
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-32
1093 urls.append(QUrl(QString::fromUtf8(value.toByteArray())));-
1094 } else if (value.userType() == qMetaTypeId<QList<QUrl> >()) {
never executed: end of block
value.userType...List<QUrl> >()Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-32
1095 urls = value.value<QList<QUrl> >();-
1096 } else if (value.userType() == qMetaTypeId<QStringList>()) {
executed 32 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
value.userType...QStringList>()Description
TRUEnever evaluated
FALSEnever evaluated
0-32
1097 QStringList urlStrings = value.value<QStringList>();-
1098 const int urlStringsSize = urlStrings.size();-
1099 urls.reserve(urlStringsSize);-
1100 for (int i = 0; i < urlStringsSize; ++i)
i < urlStringsSizeDescription
TRUEnever evaluated
FALSEnever evaluated
0
1101 urls.append(QUrl(urlStrings.at(i)));
never executed: urls.append(QUrl(urlStrings.at(i)));
0
1102 } else if (value.userType() == qMetaTypeId<QList<QString> >()) {
never executed: end of block
value.userType...t<QString> >()Description
TRUEnever evaluated
FALSEnever evaluated
0
1103 QList<QString> urlStrings = value.value<QList<QString> >();-
1104 const int urlStringsSize = urlStrings.size();-
1105 urls.reserve(urlStringsSize);-
1106 for (int i = 0; i < urlStringsSize; ++i)
i < urlStringsSizeDescription
TRUEnever evaluated
FALSEnever evaluated
0
1107 urls.append(QUrl(urlStrings.at(i)));
never executed: urls.append(QUrl(urlStrings.at(i)));
0
1108 } // note: QList<QByteArray> is not currently supported.
never executed: end of block
0
1109-
1110 QList<QUrl> resolvedUrls;-
1111 const int urlsSize = urls.size();-
1112 resolvedUrls.reserve(urlsSize);-
1113 for (int i = 0; i < urlsSize; ++i) {
i < urlsSizeDescription
TRUEevaluated 86 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
42-86
1114 QUrl u = urls.at(i);-
1115 if (context && u.isRelative() && !u.isEmpty())
contextDescription
TRUEevaluated 86 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
u.isRelative()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 68 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
!u.isEmpty()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
0-86
1116 u = context->resolvedUrl(u);
executed 18 times by 1 test: u = context->resolvedUrl(u);
Executed by:
  • tst_qqmlecmascript
18
1117 resolvedUrls.append(u);-
1118 }
executed 86 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
86
1119-
1120 return QVariant::fromValue<QList<QUrl> >(resolvedUrls);
executed 42 times by 1 test: return QVariant::fromValue<QList<QUrl> >(resolvedUrls);
Executed by:
  • tst_qqmlecmascript
42
1121}-
1122-
1123//writeEnumProperty MIRRORS the relelvant bit of QMetaProperty::write AND MUST BE KEPT IN SYNC!-
1124bool QQmlPropertyPrivate::writeEnumProperty(const QMetaProperty &prop, int idx, QObject *object, const QVariant &value, int flags)-
1125{-
1126 if (!object || !prop.isWritable())
!objectDescription
TRUEnever evaluated
FALSEevaluated 212 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
!prop.isWritable()Description
TRUEnever evaluated
FALSEevaluated 212 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
0-212
1127 return false;
never executed: return false;
0
1128-
1129 QVariant v = value;-
1130 if (prop.isEnumType()) {
prop.isEnumType()Description
TRUEevaluated 212 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
FALSEnever evaluated
0-212
1131 QMetaEnum menum = prop.enumerator();-
1132 if (v.userType() == QVariant::String
v.userType() =...ariant::StringDescription
TRUEevaluated 210 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
2-210
1133#ifdef QT3_SUPPORT-
1134 || v.userType() == QVariant::CString-
1135#endif-
1136 ) {-
1137 bool ok;-
1138 if (prop.isFlagType())
prop.isFlagType()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 206 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
4-206
1139 v = QVariant(menum.keysToValue(value.toByteArray(), &ok));
executed 4 times by 1 test: v = QVariant(menum.keysToValue(value.toByteArray(), &ok));
Executed by:
  • tst_qqmlecmascript
4
1140 else-
1141 v = QVariant(menum.keyToValue(value.toByteArray(), &ok));
executed 206 times by 10 tests: v = QVariant(menum.keyToValue(value.toByteArray(), &ok));
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
206
1142 if (!ok)
!okDescription
TRUEnever evaluated
FALSEevaluated 210 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
0-210
1143 return false;
never executed: return false;
0
1144 } else if (v.userType() != QVariant::Int && v.userType() != QVariant::UInt) {
executed 210 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
v.userType() != QVariant::IntDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
v.userType() != QVariant::UIntDescription
TRUEnever evaluated
FALSEnever evaluated
0-210
1145 int enumMetaTypeId = QMetaType::type(QByteArray(menum.scope() + QByteArray("::") + menum.name()));-
1146 if ((enumMetaTypeId == QMetaType::UnknownType) || (v.userType() != enumMetaTypeId) || !v.constData())
(enumMetaTypeI...::UnknownType)Description
TRUEnever evaluated
FALSEnever evaluated
(v.userType() ...numMetaTypeId)Description
TRUEnever evaluated
FALSEnever evaluated
!v.constData()Description
TRUEnever evaluated
FALSEnever evaluated
0
1147 return false;
never executed: return false;
0
1148 v = QVariant(*reinterpret_cast<const int *>(v.constData()));-
1149 }
never executed: end of block
0
1150 v.convert(QVariant::Int);-
1151 }
executed 212 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
212
1152-
1153 // the status variable is changed by qt_metacall to indicate what it did-
1154 // this feature is currently only used by QtDBus and should not be depended-
1155 // upon. Don't change it without looking into QDBusAbstractInterface first-
1156 // -1 (unchanged): normal qt_metacall, result stored in argv[0]-
1157 // changed: result stored directly in value, return the value of status-
1158 int status = -1;-
1159 void *argv[] = { v.data(), &v, &status, &flags };-
1160 QMetaObject::metacall(object, QMetaObject::WriteProperty, idx, argv);-
1161 return status;
executed 212 times by 10 tests: return status;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
212
1162}-
1163-
1164bool QQmlPropertyPrivate::writeValueProperty(const QVariant &value, QQmlPropertyData::WriteFlags flags)-
1165{-
1166 return writeValueProperty(object, core, valueTypeData, value, effectiveContext(), flags);
executed 122550 times by 32 tests: return writeValueProperty(object, core, valueTypeData, value, effectiveContext(), flags);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
122550
1167}-
1168-
1169bool-
1170QQmlPropertyPrivate::writeValueProperty(QObject *object,-
1171 const QQmlPropertyData &core,-
1172 const QQmlPropertyData &valueTypeData,-
1173 const QVariant &value,-
1174 QQmlContextData *context,QQmlPropertyData::WriteFlags flags)-
1175{-
1176 // Remove any existing bindings on this property-
1177 if (!(flags & QQmlPropertyData::DontRemoveBinding) && object)
!(flags & QQml...RemoveBinding)Description
TRUEevaluated 986 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
FALSEevaluated 430470 times by 76 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_qquickanimationcontroller
  • ...
objectDescription
TRUEevaluated 986 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
FALSEnever evaluated
0-430470
1178 removeBinding(object, encodedIndex(core, valueTypeData));
executed 986 times by 22 tests: removeBinding(object, encodedIndex(core, valueTypeData));
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
986
1179-
1180 bool rv = false;-
1181 if (valueTypeData.isValid()) {
valueTypeData.isValid()Description
TRUEevaluated 4875 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader_static
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquicktext
FALSEevaluated 426581 times by 77 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • ...
4875-426581
1182 QQmlValueType *writeBack = QQmlValueTypeFactory::valueType(core.propType());-
1183 writeBack->read(object, core.coreIndex());-
1184 rv = write(writeBack, valueTypeData, value, context, flags);-
1185 writeBack->write(object, core.coreIndex(), flags);-
1186 } else {
executed 4875 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflipable
  • tst_qquickfontloader_static
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquicktext
4875
1187 rv = write(object, core, value, context, flags);-
1188 }
executed 426581 times by 77 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • ...
426581
1189-
1190 return rv;
executed 431456 times by 79 tests: return rv;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • ...
431456
1191}-
1192-
1193bool QQmlPropertyPrivate::write(QObject *object,-
1194 const QQmlPropertyData &property,-
1195 const QVariant &value, QQmlContextData *context,-
1196 QQmlPropertyData::WriteFlags flags)-
1197{-
1198 const int propertyType = property.propType();-
1199 const int variantType = value.userType();-
1200-
1201 if (property.isEnum()) {
property.isEnum()Description
TRUEevaluated 212 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 440837 times by 96 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • ...
212-440837
1202 QMetaProperty prop = object->metaObject()->property(property.coreIndex());-
1203 QVariant v = value;-
1204 // Enum values come through the script engine as doubles-
1205 if (variantType == QVariant::Double) {
variantType ==...ariant::DoubleDescription
TRUEnever evaluated
FALSEevaluated 212 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
0-212
1206 double integral;-
1207 double fractional = std::modf(value.toDouble(), &integral);-
1208 if (qFuzzyIsNull(fractional))
qFuzzyIsNull(fractional)Description
TRUEnever evaluated
FALSEnever evaluated
0
1209 v.convert(QVariant::Int);
never executed: v.convert(QVariant::Int);
0
1210 }
never executed: end of block
0
1211 return writeEnumProperty(prop, property.coreIndex(), object, v, flags);
executed 212 times by 10 tests: return writeEnumProperty(prop, property.coreIndex(), object, v, flags);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
212
1212 }-
1213-
1214 QQmlEnginePrivate *enginePriv = QQmlEnginePrivate::get(context);-
1215 const bool isUrl = propertyType == QVariant::Url; // handled separately-
1216-
1217 // The cases below are in approximate order of likelyhood:-
1218 if (propertyType == variantType && !isUrl && propertyType != qMetaTypeId<QList<QUrl>>() && !property.isQList()) {
propertyType == variantTypeDescription
TRUEevaluated 138709 times by 82 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
FALSEevaluated 302128 times by 68 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • ...
!isUrlDescription
TRUEevaluated 138517 times by 81 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
FALSEevaluated 192 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qqmlsettings
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
propertyType !...QList<QUrl>>()Description
TRUEevaluated 138493 times by 81 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
!property.isQList()Description
TRUEevaluated 138493 times by 81 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
FALSEnever evaluated
0-302128
1219 return property.writeProperty(object, const_cast<void *>(value.constData()), flags);
executed 138493 times by 81 tests: return property.writeProperty(object, const_cast<void *>(value.constData()), flags);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
138493
1220 } else if (property.isQObject()) {
property.isQObject()Description
TRUEevaluated 624 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktaphandler
FALSEevaluated 301720 times by 68 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • ...
624-301720
1221 QQmlMetaObject valMo = rawMetaObjectForType(enginePriv, variantType);-
1222 if (valMo.isNull())
valMo.isNull()Description
TRUEnever evaluated
FALSEevaluated 624 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktaphandler
0-624
1223 return false;
never executed: return false;
0
1224 QObject *o = *static_cast<QObject *const *>(value.constData());-
1225 QQmlMetaObject propMo = rawMetaObjectForType(enginePriv, propertyType);-
1226-
1227 if (o)
oDescription
TRUEevaluated 624 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktaphandler
FALSEnever evaluated
0-624
1228 valMo = o;
executed 624 times by 20 tests: valMo = o;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktaphandler
624
1229-
1230 if (QQmlMetaObject::canConvert(valMo, propMo)) {
QQmlMetaObject...valMo, propMo)Description
TRUEevaluated 616 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktaphandler
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlproperty
8-616
1231 return property.writeProperty(object, &o, flags);
executed 616 times by 20 tests: return property.writeProperty(object, &o, flags);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktaphandler
616
1232 } else if (!o && QQmlMetaObject::canConvert(propMo, valMo)) {
!oDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlproperty
QQmlMetaObject...propMo, valMo)Description
TRUEnever evaluated
FALSEnever evaluated
0-8
1233 // In the case of a null QObject, we assign the null if there is-
1234 // any change that the null variant type could be up or down cast to-
1235 // the property type.-
1236 return property.writeProperty(object, &o, flags);
never executed: return property.writeProperty(object, &o, flags);
0
1237 } else {-
1238 return false;
executed 8 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
8
1239 }-
1240 } else if (value.canConvert(propertyType) && !isUrl && variantType != QVariant::String && propertyType != qMetaTypeId<QList<QUrl>>() && !property.isQList()) {
value.canConvert(propertyType)Description
TRUEevaluated 273849 times by 54 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • ...
FALSEevaluated 27871 times by 43 tests
Evaluated by:
  • tst_examples
  • tst_qjsonbinding
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickfontloader
  • ...
!isUrlDescription
TRUEevaluated 273411 times by 45 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • ...
FALSEevaluated 438 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
variantType !=...ariant::StringDescription
TRUEevaluated 192591 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickparticlegroup
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickspritesequence
  • ...
FALSEevaluated 80820 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquickstates
  • ...
propertyType !...QList<QUrl>>()Description
TRUEevaluated 192567 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickparticlegroup
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickspritesequence
  • ...
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
!property.isQList()Description
TRUEevaluated 192567 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickparticlegroup
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickspritesequence
  • ...
FALSEnever evaluated
0-273849
1241 // common cases:-
1242 switch (propertyType) {-
1243 case QMetaType::Bool: {
never executed: case QMetaType::Bool:
0
1244 bool b = value.toBool();-
1245 return property.writeProperty(object, &b, flags);
never executed: return property.writeProperty(object, &b, flags);
0
1246 }-
1247 case QMetaType::Int: {
executed 117 times by 7 tests: case QMetaType::Int:
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickshadereffect
  • tst_qquickstates
117
1248 int i = value.toInt();-
1249 return property.writeProperty(object, &i, flags);
executed 117 times by 7 tests: return property.writeProperty(object, &i, flags);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickloader
  • tst_qquickshadereffect
  • tst_qquickstates
117
1250 }-
1251 case QMetaType::Double: {
executed 1334 times by 7 tests: case QMetaType::Double:
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
  • tst_qquickstates
  • tst_qquicktext
1334
1252 double d = value.toDouble();-
1253 return property.writeProperty(object, &d, flags);
executed 1334 times by 7 tests: return property.writeProperty(object, &d, flags);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypes
  • tst_qquickdesignersupport
  • tst_qquickstates
  • tst_qquicktext
1334
1254 }-
1255 case QMetaType::Float: {
never executed: case QMetaType::Float:
0
1256 float f = value.toFloat();-
1257 return property.writeProperty(object, &f, flags);
never executed: return property.writeProperty(object, &f, flags);
0
1258 }-
1259 case QMetaType::QString: {
executed 190994 times by 15 tests: case QMetaType::QString:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
190994
1260 QString s = value.toString();-
1261 return property.writeProperty(object, &s, flags);
executed 190994 times by 15 tests: return property.writeProperty(object, &s, flags);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
190994
1262 }-
1263 default: { // "fallback":
executed 122 times by 11 tests: default:
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickparticlegroup
  • tst_qquickspritesequence
  • tst_sharedimage
122
1264 QVariant v = value;-
1265 v.convert(propertyType);-
1266 return property.writeProperty(object, const_cast<void *>(v.constData()), flags);
executed 122 times by 11 tests: return property.writeProperty(object, const_cast<void *>(v.constData()), flags);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickparticlegroup
  • tst_qquickspritesequence
  • tst_sharedimage
122
1267 }-
1268 }-
1269 } else if (propertyType == qMetaTypeId<QVariant>()) {
propertyType =...Id<QVariant>()Description
TRUEevaluated 27439 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • ...
FALSEevaluated 81714 times by 44 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickgridview
  • ...
27439-81714
1270 return property.writeProperty(object, const_cast<QVariant *>(&value), flags);
executed 27439 times by 37 tests: return property.writeProperty(object, const_cast<QVariant *>(&value), flags);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • ...
27439
1271 } else if (isUrl) {
isUrlDescription
TRUEevaluated 458 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
FALSEevaluated 81256 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • ...
458-81256
1272 QUrl u;-
1273 if (variantType == QVariant::Url) {
variantType == QVariant::UrlDescription
TRUEevaluated 192 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qqmlsettings
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
FALSEevaluated 266 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
192-266
1274 u = value.toUrl();-
1275 } else if (variantType == QVariant::ByteArray) {
executed 192 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qqmlsettings
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
variantType ==...ant::ByteArrayDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 246 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
20-246
1276 QString input(QString::fromUtf8(value.toByteArray()));-
1277 // Encoded dir-separators defeat QUrl processing - decode them first-
1278 input.replace(QLatin1String("%2f"), QLatin1String("/"), Qt::CaseInsensitive);-
1279 u = QUrl(input);-
1280 } else if (variantType == QVariant::String) {
executed 20 times by 1 test: end of block
Executed by:
  • tst_qqmlproperty
variantType ==...ariant::StringDescription
TRUEevaluated 246 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
FALSEnever evaluated
0-246
1281 QString input(value.toString());-
1282 // Encoded dir-separators defeat QUrl processing - decode them first-
1283 input.replace(QLatin1String("%2f"), QLatin1String("/"), Qt::CaseInsensitive);-
1284 u = QUrl(input);-
1285 } else {
executed 246 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
246
1286 return false;
never executed: return false;
0
1287 }-
1288-
1289 if (context && u.isRelative() && !u.isEmpty())
contextDescription
TRUEevaluated 412 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qqmltypeloader
u.isRelative()Description
TRUEevaluated 206 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
  • tst_qquickstates
FALSEevaluated 206 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlsettings
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
  • tst_qquicktextedit
!u.isEmpty()Description
TRUEevaluated 162 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
  • tst_qquickstates
FALSEevaluated 44 times by 5 tests
Evaluated by:
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
44-412
1290 u = context->resolvedUrl(u);
executed 162 times by 10 tests: u = context->resolvedUrl(u);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedsprite
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
  • tst_qquickstates
162
1291 return property.writeProperty(object, &u, flags);
executed 458 times by 14 tests: return property.writeProperty(object, &u, flags);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickfontloader
  • tst_qquickimage
  • tst_qquickloader
  • tst_qquickstates
  • tst_qquicktextedit
458
1292 } else if (propertyType == qMetaTypeId<QList<QUrl>>()) {
propertyType =...QList<QUrl>>()Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 81224 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • ...
32-81224
1293 QList<QUrl> urlSeq = resolvedUrlSequence(value, context).value<QList<QUrl>>();-
1294 return property.writeProperty(object, &urlSeq, flags);
executed 32 times by 1 test: return property.writeProperty(object, &urlSeq, flags);
Executed by:
  • tst_qqmlecmascript
32
1295 } else if (property.isQList()) {
property.isQList()Description
TRUEevaluated 48 times by 9 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
FALSEevaluated 81176 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • ...
48-81176
1296 QQmlMetaObject listType;-
1297-
1298 if (enginePriv) {
enginePrivDescription
TRUEevaluated 44 times by 8 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlproperty
4-44
1299 listType = enginePriv->rawMetaObjectForType(enginePriv->listType(property.propType()));-
1300 } else {
executed 44 times by 8 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
44
1301 QQmlType type = QQmlMetaType::qmlType(QQmlMetaType::listType(property.propType()));-
1302 if (!type.isValid())
!type.isValid()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlproperty
0-4
1303 return false;
never executed: return false;
0
1304 listType = type.baseMetaObject();-
1305 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlproperty
4
1306 if (listType.isNull())
listType.isNull()Description
TRUEnever evaluated
FALSEevaluated 48 times by 9 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
0-48
1307 return false;
never executed: return false;
0
1308-
1309 QQmlListProperty<void> prop;-
1310 property.readProperty(object, &prop);-
1311-
1312 if (!prop.clear)
!prop.clearDescription
TRUEnever evaluated
FALSEevaluated 48 times by 9 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
0-48
1313 return false;
never executed: return false;
0
1314-
1315 prop.clear(&prop);-
1316-
1317 if (variantType == qMetaTypeId<QQmlListReference>()) {
variantType ==...stReference>()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanimations
FALSEevaluated 44 times by 8 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
4-44
1318 QQmlListReference qdlr = value.value<QQmlListReference>();-
1319-
1320 for (int ii = 0; ii < qdlr.count(); ++ii) {
ii < qdlr.count()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanimations
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanimations
4-8
1321 QObject *o = qdlr.at(ii);-
1322 if (o && !QQmlMetaObject::canConvert(o, listType))
oDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanimations
FALSEnever evaluated
!QQmlMetaObjec...t(o, listType)Description
TRUEnever evaluated
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanimations
0-8
1323 o = nullptr;
never executed: o = nullptr;
0
1324 prop.append(&prop, o);-
1325 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanimations
8
1326 } else if (variantType == qMetaTypeId<QList<QObject *> >()) {
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanimations
variantType ==...QObject *> >()Description
TRUEevaluated 20 times by 6 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
FALSEevaluated 24 times by 5 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
4-24
1327 const QList<QObject *> &list = qvariant_cast<QList<QObject *> >(value);-
1328-
1329 for (int ii = 0; ii < list.count(); ++ii) {
ii < list.count()Description
TRUEevaluated 42 times by 5 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
FALSEevaluated 20 times by 6 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
20-42
1330 QObject *o = list.at(ii);-
1331 if (o && !QQmlMetaObject::canConvert(o, listType))
oDescription
TRUEevaluated 36 times by 4 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickitem2
!QQmlMetaObjec...t(o, listType)Description
TRUEnever evaluated
FALSEevaluated 36 times by 4 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
0-36
1332 o = nullptr;
never executed: o = nullptr;
0
1333 prop.append(&prop, o);-
1334 }
executed 42 times by 5 tests: end of block
Executed by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
42
1335 } else {
executed 20 times by 6 tests: end of block
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
20
1336 QObject *o = enginePriv?enginePriv->toQObject(value):QQmlMetaType::toQObject(value);
enginePrivDescription
TRUEevaluated 22 times by 4 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
2-22
1337 if (o && !QQmlMetaObject::canConvert(o, listType))
oDescription
TRUEevaluated 24 times by 5 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
FALSEnever evaluated
!QQmlMetaObjec...t(o, listType)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickitem2
FALSEevaluated 22 times by 5 tests
Evaluated by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
0-24
1338 o = nullptr;
executed 2 times by 1 test: o = nullptr;
Executed by:
  • tst_qquickitem2
2
1339 prop.append(&prop, o);-
1340 }
executed 24 times by 5 tests: end of block
Executed by:
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
24
1341 } else {-
1342 Q_ASSERT(variantType != propertyType);-
1343-
1344 bool ok = false;-
1345 QVariant v;-
1346 if (variantType == QVariant::String)
variantType ==...ariant::StringDescription
TRUEevaluated 80866 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • ...
FALSEevaluated 310 times by 4 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
310-80866
1347 v = QQmlStringConverters::variantFromString(value.toString(), propertyType, &ok);
executed 80866 times by 33 tests: v = QQmlStringConverters::variantFromString(value.toString(), propertyType, &ok);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsonbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • ...
80866
1348-
1349 if (!ok) {
!okDescription
TRUEevaluated 360 times by 8 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
FALSEevaluated 80816 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
  • ...
360-80816
1350 v = value;-
1351 if (v.convert(propertyType)) {
v.convert(propertyType)Description
TRUEevaluated 36 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
FALSEevaluated 324 times by 4 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
36-324
1352 ok = true;-
1353 } else if (v.isValid() && value.isNull()) {
executed 36 times by 5 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
v.isValid()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 318 times by 4 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
value.isNull()Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-318
1354 // For historical reasons converting a null QVariant to another type will do the trick-
1355 // but return false anyway. This is caught with the above condition and considered a-
1356 // successful conversion.-
1357 Q_ASSERT(v.userType() == propertyType);-
1358 ok = true;-
1359 } else if (static_cast<uint>(propertyType) >= QVariant::UserType &&
never executed: end of block
static_cast<ui...iant::UserTypeDescription
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
FALSEevaluated 304 times by 4 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
0-304
1360 variantType == QVariant::String) {
variantType ==...ariant::StringDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlproperty
2-18
1361 QQmlMetaType::StringConverter con = QQmlMetaType::customStringConverter(propertyType);-
1362 if (con) {
conDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-2
1363 v = con(value.toString());-
1364 if (v.userType() == propertyType)
v.userType() == propertyTypeDescription
TRUEnever evaluated
FALSEnever evaluated
0
1365 ok = true;
never executed: ok = true;
0
1366 }
never executed: end of block
0
1367 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
2
1368 }
executed 360 times by 8 tests: end of block
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
360
1369 if (!ok) {
!okDescription
TRUEevaluated 324 times by 4 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
FALSEevaluated 80852 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquickstates
  • ...
324-80852
1370 // the only other option is that they are assigning a single value-
1371 // to a sequence type property (eg, an int to a QList<int> property).-
1372 // Note that we've already handled single-value assignment to QList<QUrl> properties.-
1373 if (variantType == QVariant::Int && propertyType == qMetaTypeId<QList<int> >()) {
variantType == QVariant::IntDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
FALSEevaluated 310 times by 4 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
propertyType =...QList<int> >()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
4-310
1374 QList<int> list;-
1375 list << value.toInt();-
1376 v = QVariant::fromValue<QList<int> >(list);-
1377 ok = true;-
1378 } else if ((variantType == QVariant::Double || variantType == QVariant::Int)
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
variantType ==...ariant::DoubleDescription
TRUEevaluated 134 times by 3 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qquickanimations
FALSEevaluated 186 times by 4 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
variantType == QVariant::IntDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
FALSEevaluated 176 times by 4 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
4-186
1379 && (propertyType == qMetaTypeId<QList<qreal> >())) {
(propertyType ...st<qreal> >())Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 140 times by 3 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qquickanimations
4-140
1380 QList<qreal> list;-
1381 list << value.toReal();-
1382 v = QVariant::fromValue<QList<qreal> >(list);-
1383 ok = true;-
1384 } else if (variantType == QVariant::Bool && propertyType == qMetaTypeId<QList<bool> >()) {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
variantType == QVariant::BoolDescription
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
FALSEevaluated 304 times by 4 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
propertyType =...List<bool> >()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qjsonbinding
4-304
1385 QList<bool> list;-
1386 list << value.toBool();-
1387 v = QVariant::fromValue<QList<bool> >(list);-
1388 ok = true;-
1389 } else if (variantType == QVariant::String && propertyType == qMetaTypeId<QList<QString> >()) {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
variantType ==...ariant::StringDescription
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
FALSEevaluated 298 times by 4 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
propertyType =...t<QString> >()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
2-298
1390 QList<QString> list;-
1391 list << value.toString();-
1392 v = QVariant::fromValue<QList<QString> >(list);-
1393 ok = true;-
1394 } else if (variantType == QVariant::String && propertyType == qMetaTypeId<QStringList>()) {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
variantType ==...ariant::StringDescription
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
FALSEevaluated 298 times by 4 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
propertyType =...QStringList>()Description
TRUEnever evaluated
FALSEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
0-298
1395 QStringList list;-
1396 list << value.toString();-
1397 v = QVariant::fromValue<QStringList>(list);-
1398 ok = true;-
1399 }
never executed: end of block
0
1400 }
executed 324 times by 4 tests: end of block
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
324
1401-
1402 if (ok) {
okDescription
TRUEevaluated 80866 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquickstates
  • ...
FALSEevaluated 310 times by 4 tests
Evaluated by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
310-80866
1403 return property.writeProperty(object, const_cast<void *>(v.constData()), flags);
executed 80866 times by 31 tests: return property.writeProperty(object, const_cast<void *>(v.constData()), flags);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquickstates
  • ...
80866
1404 } else {-
1405 return false;
executed 310 times by 4 tests: return false;
Executed by:
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimations
310
1406 }-
1407 }-
1408-
1409 return true;
executed 48 times by 9 tests: return true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickspritesequence
48
1410}-
1411-
1412QQmlMetaObject QQmlPropertyPrivate::rawMetaObjectForType(QQmlEnginePrivate *engine, int userType)-
1413{-
1414 QMetaType metaType(userType);-
1415 if ((metaType.flags() & QMetaType::PointerToQObject) && metaType.metaObject())
metaType.metaObject()Description
TRUEevaluated 25196 times by 94 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_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • ...
FALSEevaluated 48 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickloader
48-25196
1416 return metaType.metaObject();
executed 25196 times by 94 tests: return metaType.metaObject();
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_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • ...
25196
1417 if (engine)
engineDescription
TRUEevaluated 50 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickloader
FALSEnever evaluated
0-50
1418 return engine->rawMetaObjectForType(userType);
executed 50 times by 6 tests: return engine->rawMetaObjectForType(userType);
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickloader
50
1419 QQmlType type = QQmlMetaType::qmlType(userType);-
1420 if (type.isValid())
type.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
0
1421 return QQmlMetaObject(type.baseMetaObject());
never executed: return QQmlMetaObject(type.baseMetaObject());
0
1422 return QQmlMetaObject();
never executed: return QQmlMetaObject();
0
1423}-
1424-
1425/*!-
1426 Sets the property value to \a value. Returns \c true on success, or-
1427 \c false if the property can't be set because the \a value is the-
1428 wrong type, for example.-
1429 */-
1430bool QQmlProperty::write(const QVariant &value) const-
1431{-
1432 return QQmlPropertyPrivate::write(*this, value, nullptr);
executed 1028 times by 22 tests: return QQmlPropertyPrivate::write(*this, value, nullptr);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qquickstates
1028
1433}-
1434-
1435/*!-
1436 Writes \a value to the \a name property of \a object. This method-
1437 is equivalent to:-
1438-
1439 \code-
1440 QQmlProperty p(object, name);-
1441 p.write(value);-
1442 \endcode-
1443-
1444 Returns \c true on success, \c false otherwise.-
1445*/-
1446bool QQmlProperty::write(QObject *object, const QString &name, const QVariant &value)-
1447{-
1448 QQmlProperty p(object, name);-
1449 return p.write(value);
executed 16 times by 3 tests: return p.write(value);
Executed by:
  • tst_qqmlincubator
  • tst_qqmlproperty
  • tst_qqmltypeloader
16
1450}-
1451-
1452/*!-
1453 Writes \a value to the \a name property of \a object using the-
1454 \l{QQmlContext} {context} \a ctxt. This method is-
1455 equivalent to:-
1456-
1457 \code-
1458 QQmlProperty p(object, name, ctxt);-
1459 p.write(value);-
1460 \endcode-
1461-
1462 Returns \c true on success, \c false otherwise.-
1463*/-
1464bool QQmlProperty::write(QObject *object,-
1465 const QString &name,-
1466 const QVariant &value,-
1467 QQmlContext *ctxt)-
1468{-
1469 QQmlProperty p(object, name, ctxt);-
1470 return p.write(value);
executed 4 times by 1 test: return p.write(value);
Executed by:
  • tst_qqmlproperty
4
1471}-
1472-
1473/*!-
1474-
1475 Writes \a value to the \a name property of \a object using the-
1476 environment for instantiating QML components that is provided by-
1477 \a engine. This method is equivalent to:-
1478-
1479 \code-
1480 QQmlProperty p(object, name, engine);-
1481 p.write(value);-
1482 \endcode-
1483-
1484 Returns \c true on success, \c false otherwise.-
1485*/-
1486bool QQmlProperty::write(QObject *object, const QString &name, const QVariant &value,-
1487 QQmlEngine *engine)-
1488{-
1489 QQmlProperty p(object, name, engine);-
1490 return p.write(value);
executed 2 times by 1 test: return p.write(value);
Executed by:
  • tst_qqmlproperty
2
1491}-
1492-
1493/*!-
1494 Resets the property and returns true if the property is-
1495 resettable. If the property is not resettable, nothing happens-
1496 and false is returned.-
1497*/-
1498bool QQmlProperty::reset() const-
1499{-
1500 if (isResettable()) {
isResettable()Description
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdesignersupport
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmlproperty
10-14
1501 void *args[] = { nullptr };-
1502 QMetaObject::metacall(d->object, QMetaObject::ResetProperty, d->core.coreIndex(), args);-
1503 return true;
executed 10 times by 3 tests: return true;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdesignersupport
10
1504 } else {-
1505 return false;
executed 14 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
14
1506 }-
1507}-
1508-
1509bool QQmlPropertyPrivate::write(const QQmlProperty &that,-
1510 const QVariant &value, QQmlPropertyData::WriteFlags flags)-
1511{-
1512 if (!that.d)
!that.dDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 122594 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
4-122594
1513 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
4
1514 if (that.d->object && that.type() & QQmlProperty::Property &&
that.type() & ...erty::PropertyDescription
TRUEevaluated 122564 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlproperty
16-122564
1515 that.d->core.isValid() && that.isWritable())
that.d->core.isValid()Description
TRUEevaluated 122564 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEnever evaluated
that.isWritable()Description
TRUEevaluated 122550 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlproperty
0-122564
1516 return that.d->writeValueProperty(value, flags);
executed 122550 times by 32 tests: return that.d->writeValueProperty(value, flags);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
122550
1517 else-
1518 return false;
executed 44 times by 2 tests: return false;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlproperty
44
1519}-
1520-
1521/*!-
1522 Returns true if the property has a change notifier signal, otherwise false.-
1523*/-
1524bool QQmlProperty::hasNotifySignal() const-
1525{-
1526 if (type() & Property && d->object) {
type() & PropertyDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlproperty
8-18
1527 return d->object->metaObject()->property(d->core.coreIndex()).hasNotifySignal();
executed 8 times by 1 test: return d->object->metaObject()->property(d->core.coreIndex()).hasNotifySignal();
Executed by:
  • tst_qqmlproperty
8
1528 }-
1529 return false;
executed 18 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
18
1530}-
1531-
1532/*!-
1533 Returns true if the property needs a change notifier signal for bindings-
1534 to remain upto date, false otherwise.-
1535-
1536 Some properties, such as attached properties or those whose value never-
1537 changes, do not require a change notifier.-
1538*/-
1539bool QQmlProperty::needsNotifySignal() const-
1540{-
1541 return type() & Property && !property().isConstant();
executed 26 times by 1 test: return type() & Property && !property().isConstant();
Executed by:
  • tst_qqmlproperty
26
1542}-
1543-
1544/*!-
1545 Connects the property's change notifier signal to the-
1546 specified \a method of the \a dest object and returns-
1547 true. Returns false if this metaproperty does not-
1548 represent a regular Qt property or if it has no-
1549 change notifier signal, or if the \a dest object does-
1550 not have the specified \a method.-
1551*/-
1552bool QQmlProperty::connectNotifySignal(QObject *dest, int method) const-
1553{-
1554 if (!(type() & Property) || !d->object)
!(type() & Property)Description
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_qqmlproperty
!d->objectDescription
TRUEnever evaluated
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_qqmlproperty
0-72
1555 return false;
executed 72 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
72
1556-
1557 QMetaProperty prop = d->object->metaObject()->property(d->core.coreIndex());-
1558 if (prop.hasNotifySignal()) {
prop.hasNotifySignal()Description
TRUEnever evaluated
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_qqmlproperty
0-32
1559 return QQmlPropertyPrivate::connect(d->object, prop.notifySignalIndex(), dest, method, Qt::DirectConnection);
never executed: return QQmlPropertyPrivate::connect(d->object, prop.notifySignalIndex(), dest, method, Qt::DirectConnection);
0
1560 } else {-
1561 return false;
executed 32 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
32
1562 }-
1563}-
1564-
1565/*!-
1566 Connects the property's change notifier signal to the-
1567 specified \a slot of the \a dest object and returns-
1568 true. Returns false if this metaproperty does not-
1569 represent a regular Qt property or if it has no-
1570 change notifier signal, or if the \a dest object does-
1571 not have the specified \a slot.-
1572-
1573 \note \a slot should be passed using the SLOT() macro so it is-
1574 correctly identified.-
1575*/-
1576bool QQmlProperty::connectNotifySignal(QObject *dest, const char *slot) const-
1577{-
1578 if (!(type() & Property) || !d->object)
!(type() & Property)Description
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 938 times by 2 tests
Evaluated by:
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
!d->objectDescription
TRUEnever evaluated
FALSEevaluated 938 times by 2 tests
Evaluated by:
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
0-938
1579 return false;
executed 36 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
36
1580-
1581 QMetaProperty prop = d->object->metaObject()->property(d->core.coreIndex());-
1582 if (prop.hasNotifySignal()) {
prop.hasNotifySignal()Description
TRUEevaluated 922 times by 1 test
Evaluated by:
  • tst_qqmllistmodelworkerscript
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlproperty
16-922
1583 QByteArray signal('2' + prop.notifySignal().methodSignature());-
1584 return QObject::connect(d->object, signal.constData(), dest, slot);
executed 922 times by 1 test: return QObject::connect(d->object, signal.constData(), dest, slot);
Executed by:
  • tst_qqmllistmodelworkerscript
922
1585 } else {-
1586 return false;
executed 16 times by 1 test: return false;
Executed by:
  • tst_qqmlproperty
16
1587 }-
1588}-
1589-
1590/*!-
1591 Return the Qt metaobject index of the property.-
1592*/-
1593int QQmlProperty::index() const-
1594{-
1595 return d ? d->core.coreIndex() : -1;
executed 26 times by 1 test: return d ? d->core.coreIndex() : -1;
Executed by:
  • tst_qqmlproperty
26
1596}-
1597-
1598QQmlPropertyIndex QQmlPropertyPrivate::propertyIndex(const QQmlProperty &that)-
1599{-
1600 return that.d ? that.d->encodedIndex() : QQmlPropertyIndex();
executed 618 times by 9 tests: return that.d ? that.d->encodedIndex() : QQmlPropertyIndex();
Executed by:
  • tst_examples
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
618
1601}-
1602-
1603QQmlProperty-
1604QQmlPropertyPrivate::restore(QObject *object, const QQmlPropertyData &data,-
1605 const QQmlPropertyData *valueTypeData, QQmlContextData *ctxt)-
1606{-
1607 QQmlProperty prop;-
1608-
1609 prop.d = new QQmlPropertyPrivate;-
1610 prop.d->object = object;-
1611 prop.d->context = ctxt;-
1612 prop.d->engine = ctxt ? ctxt->engine : nullptr;
ctxtDescription
TRUEevaluated 5678 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
FALSEevaluated 20 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickitem2
20-5678
1613-
1614 prop.d->core = data;-
1615 if (valueTypeData)
valueTypeDataDescription
TRUEevaluated 34 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickitem2
FALSEevaluated 5664 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
34-5664
1616 prop.d->valueTypeData = *valueTypeData;
executed 34 times by 6 tests: prop.d->valueTypeData = *valueTypeData;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickitem2
34
1617-
1618 return prop;
executed 5698 times by 16 tests: return prop;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
5698
1619}-
1620-
1621/*!-
1622 Return the signal corresponding to \a name-
1623*/-
1624QMetaMethod QQmlPropertyPrivate::findSignalByName(const QMetaObject *mo, const QByteArray &name)-
1625{-
1626 Q_ASSERT(mo);-
1627 int methods = mo->methodCount();-
1628 for (int ii = methods - 1; ii >= 2; --ii) { // >= 2 to block the destroyed signal
ii >= 2Description
TRUEevaluated 478 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
FALSEevaluated 76 times by 2 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlproperty
76-478
1629 QMetaMethod method = mo->method(ii);-
1630-
1631 if (method.name() == name && (method.methodType() & QMetaMethod::Signal))
method.name() == nameDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
FALSEevaluated 468 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
(method.method...ethod::Signal)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
FALSEnever evaluated
0-468
1632 return method;
executed 10 times by 2 tests: return method;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
10
1633 }
executed 468 times by 3 tests: end of block
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
468
1634-
1635 // If no signal is found, but the signal is of the form "onBlahChanged",-
1636 // return the notify signal for the property "Blah"-
1637 if (name.endsWith("Changed")) {
name.endsWith("Changed")Description
TRUEevaluated 74 times by 2 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlproperty
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
2-74
1638 QByteArray propName = name.mid(0, name.length() - 7);-
1639 int propIdx = mo->indexOfProperty(propName.constData());-
1640 if (propIdx >= 0) {
propIdx >= 0Description
TRUEevaluated 72 times by 2 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlproperty
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlproperty
2-72
1641 QMetaProperty prop = mo->property(propIdx);-
1642 if (prop.hasNotifySignal())
prop.hasNotifySignal()Description
TRUEevaluated 72 times by 2 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmlproperty
FALSEnever evaluated
0-72
1643 return prop.notifySignal();
executed 72 times by 2 tests: return prop.notifySignal();
Executed by:
  • tst_qqmllistmodel
  • tst_qqmlproperty
72
1644 }
never executed: end of block
0
1645 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlproperty
2
1646-
1647 return QMetaMethod();
executed 4 times by 1 test: return QMetaMethod();
Executed by:
  • tst_qqmlproperty
4
1648}-
1649-
1650/*! \internal-
1651 If \a indexInSignalRange is true, \a index is treated as a signal index-
1652 (see QObjectPrivate::signalIndex()), otherwise it is treated as a-
1653 method index (QMetaMethod::methodIndex()).-
1654*/-
1655static inline void flush_vme_signal(const QObject *object, int index, bool indexInSignalRange)-
1656{-
1657 QQmlData *data = QQmlData::get(object);-
1658 if (data && data->propertyCache) {
dataDescription
TRUEevaluated 705020 times by 122 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
FALSEevaluated 1638 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qqmlstatemachine
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
data->propertyCacheDescription
TRUEevaluated 631080 times by 119 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEevaluated 73940 times by 63 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • ...
1638-705020
1659 QQmlPropertyData *property = indexInSignalRange ? data->propertyCache->signal(index)
indexInSignalRangeDescription
TRUEevaluated 630290 times by 119 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEevaluated 790 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
790-630290
1660 : data->propertyCache->method(index);-
1661-
1662 if (property && property->isVMESignal()) {
propertyDescription
TRUEevaluated 631078 times by 119 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickitem2
property->isVMESignal()Description
TRUEevaluated 47612 times by 60 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • 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_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
FALSEevaluated 583466 times by 113 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetaobject
  • tst_qqmlnativeconnector
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
2-631078
1663 QQmlVMEMetaObject *vme;-
1664 if (indexInSignalRange)
indexInSignalRangeDescription
TRUEevaluated 47604 times by 59 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlenginedebugservice
8-47604
1665 vme = QQmlVMEMetaObject::getForSignal(const_cast<QObject *>(object), index);
executed 47604 times by 59 tests: vme = QQmlVMEMetaObject::getForSignal(const_cast<QObject *>(object), index);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
47604
1666 else-
1667 vme = QQmlVMEMetaObject::getForMethod(const_cast<QObject *>(object), index);
executed 8 times by 1 test: vme = QQmlVMEMetaObject::getForMethod(const_cast<QObject *>(object), index);
Executed by:
  • tst_qqmlenginedebugservice
8
1668 vme->connectAliasSignal(index, indexInSignalRange);-
1669 }
executed 47612 times by 60 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • 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_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
47612
1670 }
executed 631080 times by 119 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
631080
1671}
executed 706658 times by 122 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
706658
1672-
1673/*!-
1674Connect \a sender \a signal_index to \a receiver \a method_index with the specified-
1675\a type and \a types. This behaves identically to QMetaObject::connect() except that-
1676it connects any lazy "proxy" signal connections set up by QML.-
1677-
1678It is possible that this logic should be moved to QMetaObject::connect().-
1679*/-
1680bool QQmlPropertyPrivate::connect(const QObject *sender, int signal_index,-
1681 const QObject *receiver, int method_index,-
1682 int type, int *types)-
1683{-
1684 static const bool indexInSignalRange = false;-
1685 flush_vme_signal(sender, signal_index, indexInSignalRange);-
1686 flush_vme_signal(receiver, method_index, indexInSignalRange);-
1687-
1688 return QMetaObject::connect(sender, signal_index, receiver, method_index, type, types);
executed 710 times by 6 tests: return QMetaObject::connect(sender, signal_index, receiver, method_index, type, types);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
710
1689}-
1690-
1691/*! \internal-
1692 \a signal_index MUST be in the signal index range (see QObjectPrivate::signalIndex()).-
1693 This is different from QMetaMethod::methodIndex().-
1694*/-
1695void QQmlPropertyPrivate::flushSignal(const QObject *sender, int signal_index)-
1696{-
1697 static const bool indexInSignalRange = true;-
1698 flush_vme_signal(sender, signal_index, indexInSignalRange);-
1699}
executed 705238 times by 122 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
705238
1700-
1701QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0