OpenCoverage

qqmldelegatemodel.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/types/qqmldelegatemodel.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 "qqmldelegatemodel_p_p.h"-
41-
42#include <QtQml/qqmlinfo.h>-
43-
44#include <private/qquickpackage_p.h>-
45#include <private/qmetaobjectbuilder_p.h>-
46#include <private/qqmladaptormodel_p.h>-
47#include <private/qqmlchangeset_p.h>-
48#include <private/qqmlengine_p.h>-
49#include <private/qqmlcomponent_p.h>-
50#include <private/qqmlincubator_p.h>-
51-
52#include <private/qv4value_p.h>-
53#include <private/qv4functionobject_p.h>-
54#include <qv4objectiterator_p.h>-
55-
56QT_BEGIN_NAMESPACE-
57-
58class QQmlDelegateModelItem;-
59-
60namespace QV4 {-
61-
62namespace Heap {-
63-
64struct DelegateModelGroupFunction : FunctionObject {-
65 void init(QV4::ExecutionContext *scope, uint flag, QV4::ReturnedValue (*code)(QQmlDelegateModelItem *item, uint flag, const QV4::Value &arg));-
66-
67 QV4::ReturnedValue (*code)(QQmlDelegateModelItem *item, uint flag, const QV4::Value &arg);-
68 uint flag;-
69};-
70-
71struct QQmlDelegateModelGroupChange : Object {-
72 void init() { Object::init(); }
executed 166 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
166
73-
74 QQmlChangeSet::ChangeData change;-
75};-
76-
77struct QQmlDelegateModelGroupChangeArray : Object {-
78 void init(const QVector<QQmlChangeSet::Change> &changes);-
79 void destroy() {-
80 delete changes;-
81 Object::destroy();-
82 }
executed 164 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
164
83-
84 QVector<QQmlChangeSet::Change> *changes;-
85};-
86-
87-
88}-
89-
90struct DelegateModelGroupFunction : QV4::FunctionObject-
91{-
92 V4_OBJECT2(DelegateModelGroupFunction, FunctionObject)
never executed: end of block
never executed: end of block
executed 16290 times by 2 tests: return &static_vtbl;
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
executed 51424 times by 2 tests: return static_cast<QV4::Heap::DelegateModelGroupFunction *>(m());
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
executed 45994 times by 2 tests: return dptr;
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
0-51424
93-
94 static Heap::DelegateModelGroupFunction *create(QV4::ExecutionContext *scope, uint flag, QV4::ReturnedValue (*code)(QQmlDelegateModelItem *item, uint flag, const QV4::Value &arg))-
95 {-
96 return scope->engine()->memoryManager->allocate<DelegateModelGroupFunction>(scope, flag, code);
executed 5430 times by 2 tests: return scope->engine()->memoryManager->allocate<DelegateModelGroupFunction>(scope, flag, code);
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
5430
97 }-
98-
99 static ReturnedValue virtualCall(const QV4::FunctionObject *that, const Value *thisObject, const Value *argv, int argc)-
100 {-
101 QV4::Scope scope(that->engine());-
102 QV4::Scoped<DelegateModelGroupFunction> f(scope, static_cast<const DelegateModelGroupFunction *>(that));-
103 QV4::Scoped<QQmlDelegateModelItemObject> o(scope, thisObject);-
104 if (!o)
!oDescription
TRUEnever evaluated
FALSEevaluated 20282 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
0-20282
105 return scope.engine->throwTypeError(QStringLiteral("Not a valid VisualData object"));
never executed: return scope.engine->throwTypeError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid VisualData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid VisualData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()));
never executed: return qstring_literal_temp;
0
106-
107 QV4::ScopedValue v(scope, argc ? argv[0] : Primitive::undefinedValue());-
108 return f->d()->code(o->d()->item, f->d()->flag, v);
executed 20282 times by 2 tests: return f->d()->code(o->d()->item, f->d()->flag, v);
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
20282
109 }-
110};-
111-
112void Heap::DelegateModelGroupFunction::init(QV4::ExecutionContext *scope, uint flag, QV4::ReturnedValue (*code)(QQmlDelegateModelItem *item, uint flag, const QV4::Value &arg))-
113{-
114 QV4::Heap::FunctionObject::init(scope, QStringLiteral("DelegateModelGroupFunction"));
executed 5430 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
5430
115 this->flag = flag;-
116 this->code = code;-
117}
executed 5430 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
5430
118-
119}-
120-
121DEFINE_OBJECT_VTABLE(QV4::DelegateModelGroupFunction);-
122-
123-
124-
125class QQmlDelegateModelEngineData : public QV8Engine::Deletable-
126{-
127public:-
128 QQmlDelegateModelEngineData(QV4::ExecutionEngine *v4);-
129 ~QQmlDelegateModelEngineData();-
130-
131 QV4::ReturnedValue array(QV4::ExecutionEngine *engine,-
132 const QVector<QQmlChangeSet::Change> &changes);-
133-
134 QV4::PersistentValue changeProto;-
135};-
136-
137V4_DEFINE_EXTENSION(QQmlDelegateModelEngineData, engineData)
executed 4 times by 2 tests: extensionId = QV8Engine::registerExtension();
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
executed 330 times by 2 tests: return rv;
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
extensionId == -1Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
FALSEevaluated 326 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
extensionId == -1Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
FALSEnever evaluated
!rvDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
FALSEevaluated 326 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
0-330
138-
139-
140void QQmlDelegateModelPartsMetaObject::propertyCreated(int, QMetaPropertyBuilder &prop)-
141{-
142 prop.setWritable(false);-
143}
executed 368 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
368
144-
145QVariant QQmlDelegateModelPartsMetaObject::initialValue(int id)-
146{-
147 QQmlDelegateModelParts *parts = static_cast<QQmlDelegateModelParts *>(object());-
148 QQmlPartsModel *m = new QQmlPartsModel(-
149 parts->model, QString::fromUtf8(name(id)), parts);-
150 parts->models.append(m);-
151 return QVariant::fromValue(static_cast<QObject *>(m));
executed 368 times by 6 tests: return QVariant::fromValue(static_cast<QObject *>(m));
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
368
152}-
153-
154QQmlDelegateModelParts::QQmlDelegateModelParts(QQmlDelegateModel *parent)-
155: QObject(parent), model(parent)-
156{-
157 new QQmlDelegateModelPartsMetaObject(this);-
158}
executed 352 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
352
159-
160//----------------------------------------------------------------------------
161-
162/*!-
163 \qmltype VisualDataModel-
164 \instantiates QQmlDelegateModel-
165 \inqmlmodule QtQuick-
166 \ingroup qtquick-models-
167 \brief Encapsulates a model and delegate.-
168-
169 The VisualDataModel type encapsulates a model and the delegate that will-
170 be instantiated for items in a model.-
171-
172 This type is provided by the \l{Qt QML} module due to compatibility reasons.-
173 The same implementation is now primarily available as DelegateModel in the-
174 \l{Qt QML Models QML Types}{Qt QML Models} module.-
175-
176 \sa {QtQml.Models::DelegateModel}-
177*/-
178/*!-
179 \qmltype DelegateModel-
180 \instantiates QQmlDelegateModel-
181 \inqmlmodule QtQml.Models-
182 \brief Encapsulates a model and delegate.-
183-
184 The DelegateModel type encapsulates a model and the delegate that will-
185 be instantiated for items in the model.-
186-
187 It is usually not necessary to create a DelegateModel.-
188 However, it can be useful for manipulating and accessing the \l modelIndex-
189 when a QAbstractItemModel subclass is used as the-
190 model. Also, DelegateModel is used together with \l Package to-
191 provide delegates to multiple views, and with DelegateModelGroup to sort and filter-
192 delegate items.-
193-
194 The example below illustrates using a DelegateModel with a ListView.-
195-
196 \snippet delegatemodel/visualdatamodel.qml 0-
197-
198 \note This type is also available as \l VisualDataModel in the \l{Qt QML}-
199 module due to compatibility reasons.-
200*/-
201-
202QQmlDelegateModelPrivate::QQmlDelegateModelPrivate(QQmlContext *ctxt)-
203 : m_cacheMetaType(nullptr)-
204 , m_context(ctxt)-
205 , m_parts(nullptr)-
206 , m_filterGroup(QStringLiteral("items"))-
207 , m_count(0)-
208 , m_groupCount(Compositor::MinimumGroupCount)-
209 , m_compositorGroup(Compositor::Cache)-
210 , m_complete(false)-
211 , m_delegateValidated(false)-
212 , m_reset(false)-
213 , m_transaction(false)-
214 , m_incubatorCleanupScheduled(false)-
215 , m_waitingToFetchMore(false)-
216 , m_useFirstColumnOnly(true)-
217 , m_cacheItems(nullptr)-
218 , m_items(nullptr)-
219 , m_persistedItems(nullptr)-
220{-
221}
executed 5622 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5622
222-
223QQmlDelegateModelPrivate::~QQmlDelegateModelPrivate()-
224{-
225 qDeleteAll(m_finishedIncubating);-
226-
227 if (m_cacheMetaType)
m_cacheMetaTypeDescription
TRUEevaluated 5556 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
  • tst_scenegraph
FALSEnever evaluated
0-5556
228 m_cacheMetaType->release();
executed 5556 times by 25 tests: m_cacheMetaType->release();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
  • tst_scenegraph
5556
229}
executed 5556 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
  • tst_scenegraph
5556
230-
231int QQmlDelegateModelPrivate::adaptorModelCount() const-
232{-
233 return m_useFirstColumnOnly ? m_adaptorModel.rowCount() : m_adaptorModel.count();
executed 6348 times by 27 tests: return m_useFirstColumnOnly ? m_adaptorModel.rowCount() : m_adaptorModel.count();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
6348
234}-
235-
236void QQmlDelegateModelPrivate::requestMoreIfNecessary()-
237{-
238 Q_Q(QQmlDelegateModel);-
239 if (!m_waitingToFetchMore && m_adaptorModel.canFetchMore()) {
!m_waitingToFetchMoreDescription
TRUEevaluated 14881 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicklistview
m_adaptorModel.canFetchMore()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquicklistview
FALSEevaluated 14863 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
2-14881
240 m_waitingToFetchMore = true;-
241 QCoreApplication::postEvent(q, new QEvent(QEvent::UpdateRequest));-
242 }
executed 18 times by 1 test: end of block
Executed by:
  • tst_qquicklistview
18
243}
executed 14883 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
14883
244-
245void QQmlDelegateModelPrivate::init()-
246{-
247 Q_Q(QQmlDelegateModel);-
248 m_compositor.setRemoveGroups(Compositor::GroupMask & ~Compositor::PersistedFlag);-
249-
250 m_items = new QQmlDelegateModelGroup(QStringLiteral("items"), q, Compositor::Default, q);
executed 5622 times by 27 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5622
251 m_items->setDefaultInclude(true);-
252 m_persistedItems = new QQmlDelegateModelGroup(QStringLiteral("persistedItems"), q, Compositor::Persisted, q);
executed 5622 times by 27 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5622
253 QQmlDelegateModelGroupPrivate::get(m_items)->emitters.insert(this);-
254}
executed 5622 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5622
255-
256QQmlDelegateModel::QQmlDelegateModel()-
257 : QQmlDelegateModel(nullptr, nullptr)-
258{-
259}
executed 760 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
760
260-
261QQmlDelegateModel::QQmlDelegateModel(QQmlContext *ctxt, QObject *parent)-
262: QQmlInstanceModel(*(new QQmlDelegateModelPrivate(ctxt)), parent)-
263{-
264 Q_D(QQmlDelegateModel);-
265 d->init();-
266}
executed 5622 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5622
267-
268QQmlDelegateModel::~QQmlDelegateModel()-
269{-
270 Q_D(QQmlDelegateModel);-
271 d->m_adaptorModel.setObject(nullptr, this);-
272-
273 for (QQmlDelegateModelItem *cacheItem : qAsConst(d->m_cache)) {-
274 if (cacheItem->object) {
cacheItem->objectDescription
TRUEevaluated 65876 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 91 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
91-65876
275 delete cacheItem->object;-
276-
277 cacheItem->object = nullptr;-
278 cacheItem->contextData->invalidate();-
279 Q_ASSERT(cacheItem->contextData->refCount == 1);-
280 cacheItem->contextData = nullptr;-
281 cacheItem->scriptRef -= 1;-
282 }
executed 65876 times by 23 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
65876
283 cacheItem->groups &= ~Compositor::UnresolvedFlag;-
284 cacheItem->objectRef = 0;-
285 if (!cacheItem->isReferenced())
!cacheItem->isReferenced()Description
TRUEevaluated 63945 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 2022 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
2022-63945
286 delete cacheItem;
executed 63945 times by 23 tests: delete cacheItem;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
63945
287 else if (cacheItem->incubationTask)
cacheItem->incubationTaskDescription
TRUEevaluated 36 times by 2 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 1986 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
36-1986
288 cacheItem->incubationTask->vdm = nullptr;
executed 36 times by 2 tests: cacheItem->incubationTask->vdm = nullptr;
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
36
289 }
executed 65967 times by 23 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
65967
290}
executed 5556 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
  • tst_scenegraph
5556
291-
292-
293void QQmlDelegateModel::classBegin()-
294{-
295 Q_D(QQmlDelegateModel);-
296 if (!d->m_context)
!d->m_contextDescription
TRUEevaluated 760 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlinstantiator
16-760
297 d->m_context = qmlContext(this);
executed 760 times by 7 tests: d->m_context = qmlContext(this);
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
760
298}
executed 776 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
776
299-
300void QQmlDelegateModel::componentComplete()-
301{-
302 Q_D(QQmlDelegateModel);-
303 d->m_complete = true;-
304-
305 int defaultGroups = 0;-
306 QStringList groupNames;-
307 groupNames.append(QStringLiteral("items"));
executed 5622 times by 27 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5622
308 groupNames.append(QStringLiteral("persistedItems"));
executed 5622 times by 27 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5622
309 if (QQmlDelegateModelGroupPrivate::get(d->m_items)->defaultInclude)
QQmlDelegateMo...defaultIncludeDescription
TRUEevaluated 5620 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
2-5620
310 defaultGroups |= Compositor::DefaultFlag;
executed 5620 times by 27 tests: defaultGroups |= Compositor::DefaultFlag;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5620
311 if (QQmlDelegateModelGroupPrivate::get(d->m_persistedItems)->defaultInclude)
QQmlDelegateMo...defaultIncludeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 5620 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
2-5620
312 defaultGroups |= Compositor::PersistedFlag;
executed 2 times by 1 test: defaultGroups |= Compositor::PersistedFlag;
Executed by:
  • tst_qquickvisualdatamodel
2
313 for (int i = Compositor::MinimumGroupCount; i < d->m_groupCount; ++i) {
i < d->m_groupCountDescription
TRUEevaluated 1076 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
FALSEevaluated 5622 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
1076-5622
314 QString name = d->m_groups[i]->name();-
315 if (name.isEmpty()) {
name.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 1074 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
2-1074
316 d->m_groups[i] = d->m_groups[d->m_groupCount - 1];-
317 --d->m_groupCount;-
318 --i;-
319 } else if (name.at(0).isUpper()) {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
name.at(0).isUpper()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 1072 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
2-1072
320 qmlWarning(d->m_groups[i]) << QQmlDelegateModelGroup::tr("Group names must start with a lower case letter");-
321 d->m_groups[i] = d->m_groups[d->m_groupCount - 1];-
322 --d->m_groupCount;-
323 --i;-
324 } else {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
2
325 groupNames.append(name);-
326-
327 QQmlDelegateModelGroupPrivate *group = QQmlDelegateModelGroupPrivate::get(d->m_groups[i]);-
328 group->setModel(this, Compositor::Group(i));-
329 if (group->defaultInclude)
group->defaultIncludeDescription
TRUEevaluated 536 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
FALSEevaluated 536 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
536
330 defaultGroups |= (1 << i);
executed 536 times by 2 tests: defaultGroups |= (1 << i);
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
536
331 }
executed 1072 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
1072
332 }-
333-
334 d->m_cacheMetaType = new QQmlDelegateModelItemMetaType(-
335 d->m_context->engine()->handle(), this, groupNames);-
336-
337 d->m_compositor.setGroupCount(d->m_groupCount);-
338 d->m_compositor.setDefaultGroups(defaultGroups);-
339 d->updateFilterGroup();-
340-
341 while (!d->m_pendingParts.isEmpty())
!d->m_pendingParts.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 5622 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
0-5622
342 static_cast<QQmlPartsModel *>(d->m_pendingParts.first())->updateFilterGroup();
never executed: static_cast<QQmlPartsModel *>(d->m_pendingParts.first())->updateFilterGroup();
0
343-
344 QVector<Compositor::Insert> inserts;-
345 d->m_count = d->adaptorModelCount();-
346 d->m_compositor.append(-
347 &d->m_adaptorModel,-
348 0,-
349 d->m_count,-
350 defaultGroups | Compositor::AppendFlag | Compositor::PrependFlag,-
351 &inserts);-
352 d->itemsInserted(inserts);-
353 d->emitChanges();-
354 d->requestMoreIfNecessary();-
355}
executed 5622 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5622
356-
357/*!-
358 \qmlproperty model QtQml.Models::DelegateModel::model-
359 This property holds the model providing data for the DelegateModel.-
360-
361 The model provides a set of data that is used to create the items-
362 for a view. For large or dynamic datasets the model is usually-
363 provided by a C++ model object. The C++ model object must be a \l-
364 {QAbstractItemModel} subclass or a simple list.-
365-
366 Models can also be created directly in QML, using a \l{ListModel} or-
367 \l{XmlListModel}.-
368-
369 \sa {qml-data-models}{Data Models}-
370*/-
371QVariant QQmlDelegateModel::model() const-
372{-
373 Q_D(const QQmlDelegateModel);-
374 return d->m_adaptorModel.model();
executed 8 times by 1 test: return d->m_adaptorModel.model();
Executed by:
  • tst_qquicklistview
8
375}-
376-
377void QQmlDelegateModel::setModel(const QVariant &model)-
378{-
379 Q_D(QQmlDelegateModel);-
380-
381 if (d->m_complete)
d->m_completeDescription
TRUEevaluated 648 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 4316 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
648-4316
382 _q_itemsRemoved(0, d->m_count);
executed 648 times by 12 tests: _q_itemsRemoved(0, d->m_count);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
648
383-
384 d->m_adaptorModel.setModel(model, this, d->m_context->engine());-
385 d->m_adaptorModel.replaceWatchedRoles(QList<QByteArray>(), d->m_watchedRoles);-
386 for (int i = 0; d->m_parts && i < d->m_parts->models.count(); ++i) {
d->m_partsDescription
TRUEevaluated 282 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 4828 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
i < d->m_parts->models.count()Description
TRUEevaluated 146 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 136 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
136-4828
387 d->m_adaptorModel.replaceWatchedRoles(-
388 QList<QByteArray>(), d->m_parts->models.at(i)->watchedRoles());-
389 }
executed 146 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
146
390-
391 if (d->m_complete) {
d->m_completeDescription
TRUEevaluated 648 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 4316 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
648-4316
392 _q_itemsInserted(0, d->adaptorModelCount());-
393 d->requestMoreIfNecessary();-
394 }
executed 648 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
648
395}
executed 4964 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
4964
396-
397/*!-
398 \qmlproperty Component QtQml.Models::DelegateModel::delegate-
399-
400 The delegate provides a template defining each item instantiated by a view.-
401 The index is exposed as an accessible \c index property. Properties of the-
402 model are also available depending upon the type of \l {qml-data-models}{Data Model}.-
403*/-
404QQmlComponent *QQmlDelegateModel::delegate() const-
405{-
406 Q_D(const QQmlDelegateModel);-
407 return d->m_delegate;
executed 91304 times by 25 tests: return d->m_delegate;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
91304
408}-
409-
410void QQmlDelegateModel::setDelegate(QQmlComponent *delegate)-
411{-
412 Q_D(QQmlDelegateModel);-
413 if (d->m_transaction) {
d->m_transactionDescription
TRUEnever evaluated
FALSEevaluated 5616 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
0-5616
414 qmlWarning(this) << tr("The delegate of a DelegateModel cannot be changed within onUpdated.");-
415 return;
never executed: return;
0
416 }-
417 bool wasValid = d->m_delegate != nullptr;-
418 d->m_delegate.setObject(delegate, this);-
419 d->m_delegateValidated = false;-
420 if (wasValid && d->m_complete) {
wasValidDescription
TRUEevaluated 18 times by 5 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 5598 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
d->m_completeDescription
TRUEevaluated 18 times by 5 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-5598
421 for (int i = 1; i < d->m_groupCount; ++i) {
i < d->m_groupCountDescription
TRUEevaluated 36 times by 5 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 18 times by 5 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
18-36
422 QQmlDelegateModelGroupPrivate::get(d->m_groups[i])->changeSet.remove(-
423 0, d->m_compositor.count(Compositor::Group(i)));-
424 }
executed 36 times by 5 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
36
425 }
executed 18 times by 5 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
18
426 if (d->m_complete && d->m_delegate) {
d->m_completeDescription
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 5596 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
20-5596
427 for (int i = 1; i < d->m_groupCount; ++i) {
i < d->m_groupCountDescription
TRUEevaluated 28 times by 4 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 14 times by 4 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
14-28
428 QQmlDelegateModelGroupPrivate::get(d->m_groups[i])->changeSet.insert(-
429 0, d->m_compositor.count(Compositor::Group(i)));-
430 }
executed 28 times by 4 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
28
431 }
executed 14 times by 4 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
14
432 d->emitChanges();-
433}
executed 5616 times by 26 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5616
434-
435/*!-
436 \qmlproperty QModelIndex QtQml.Models::DelegateModel::rootIndex-
437-
438 QAbstractItemModel provides a hierarchical tree of data, whereas-
439 QML only operates on list data. \c rootIndex allows the children of-
440 any node in a QAbstractItemModel to be provided by this model.-
441-
442 This property only affects models of type QAbstractItemModel that-
443 are hierarchical (e.g, a tree model).-
444-
445 For example, here is a simple interactive file system browser.-
446 When a directory name is clicked, the view's \c rootIndex is set to the-
447 QModelIndex node of the clicked directory, thus updating the view to show-
448 the new directory's contents.-
449-
450 \c main.cpp:-
451 \snippet delegatemodel/visualdatamodel_rootindex/main.cpp 0-
452-
453 \c view.qml:-
454 \snippet delegatemodel/visualdatamodel_rootindex/view.qml 0-
455-
456 If the \l model is a QAbstractItemModel subclass, the delegate can also-
457 reference a \c hasModelChildren property (optionally qualified by a-
458 \e model. prefix) that indicates whether the delegate's model item has-
459 any child nodes.-
460-
461-
462 \sa modelIndex(), parentModelIndex()-
463*/-
464QVariant QQmlDelegateModel::rootIndex() const-
465{-
466 Q_D(const QQmlDelegateModel);-
467 return QVariant::fromValue(QModelIndex(d->m_adaptorModel.rootIndex));
executed 22 times by 1 test: return QVariant::fromValue(QModelIndex(d->m_adaptorModel.rootIndex));
Executed by:
  • tst_qquickvisualdatamodel
22
468}-
469-
470void QQmlDelegateModel::setRootIndex(const QVariant &root)-
471{-
472 Q_D(QQmlDelegateModel);-
473-
474 QModelIndex modelIndex = qvariant_cast<QModelIndex>(root);-
475 const bool changed = d->m_adaptorModel.rootIndex != modelIndex;-
476 if (changed || !d->m_adaptorModel.isValid()) {
changedDescription
TRUEevaluated 24 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
!d->m_adaptorModel.isValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicklistview
2-24
477 const int oldCount = d->m_count;-
478 d->m_adaptorModel.rootIndex = modelIndex;-
479 if (!d->m_adaptorModel.isValid() && d->m_adaptorModel.aim()) // The previous root index was invalidated, so we need to reconnect the model.
!d->m_adaptorModel.isValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 24 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
d->m_adaptorModel.aim()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-24
480 d->m_adaptorModel.setModel(d->m_adaptorModel.list.list(), this, d->m_context->engine());
executed 2 times by 1 test: d->m_adaptorModel.setModel(d->m_adaptorModel.list.list(), this, d->m_context->engine());
Executed by:
  • tst_qquickvisualdatamodel
2
481 if (d->m_adaptorModel.canFetchMore())
d->m_adaptorMo...canFetchMore()Description
TRUEnever evaluated
FALSEevaluated 26 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
0-26
482 d->m_adaptorModel.fetchMore();
never executed: d->m_adaptorModel.fetchMore();
0
483 if (d->m_complete) {
d->m_completeDescription
TRUEevaluated 26 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-26
484 const int newCount = d->adaptorModelCount();-
485 if (oldCount)
oldCountDescription
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
4-22
486 _q_itemsRemoved(0, oldCount);
executed 22 times by 3 tests: _q_itemsRemoved(0, oldCount);
Executed by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
22
487 if (newCount)
newCountDescription
TRUEevaluated 20 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
6-20
488 _q_itemsInserted(0, newCount);
executed 20 times by 3 tests: _q_itemsInserted(0, newCount);
Executed by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
20
489 }
executed 26 times by 3 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
26
490 if (changed)
changedDescription
TRUEevaluated 24 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
2-24
491 emit rootIndexChanged();
executed 24 times by 3 tests: rootIndexChanged();
Executed by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
24
492 }
executed 26 times by 3 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
26
493}
executed 28 times by 3 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
28
494-
495/*!-
496 \qmlproperty int QtQml.Models::DelegateModel::rows-
497-
498 Contains the number of rows in the model. If the model-
499 is a list of items, it will be equal to the number of items-
500 in the list.-
501-
502 \since QtQml.Models 2.12-
503*/-
504int QQmlDelegateModel::rows() const-
505{-
506 Q_D(const QQmlDelegateModel);-
507 return d->m_adaptorModel.rowCount();
executed 102 times by 1 test: return d->m_adaptorModel.rowCount();
Executed by:
  • tst_qquicktableview
102
508}-
509-
510/*!-
511 \qmlproperty int QtQml.Models::DelegateModel::columns-
512-
513 Contains the number of columns in the model. If the model-
514 is a list of items, it will be equal to \c 1.-
515-
516 \since QtQml.Models 2.12-
517*/-
518int QQmlDelegateModel::columns() const-
519{-
520 Q_D(const QQmlDelegateModel);-
521 return d->m_adaptorModel.columnCount();
executed 102 times by 1 test: return d->m_adaptorModel.columnCount();
Executed by:
  • tst_qquicktableview
102
522}-
523-
524/*!-
525 \qmlmethod QModelIndex QtQml.Models::DelegateModel::modelIndex(int index)-
526-
527 QAbstractItemModel provides a hierarchical tree of data, whereas-
528 QML only operates on list data. This function assists in using-
529 tree models in QML.-
530-
531 Returns a QModelIndex for the specified index.-
532 This value can be assigned to rootIndex.-
533-
534 \sa rootIndex-
535*/-
536QVariant QQmlDelegateModel::modelIndex(int idx) const-
537{-
538 Q_D(const QQmlDelegateModel);-
539 return d->m_adaptorModel.modelIndex(idx);
executed 6 times by 2 tests: return d->m_adaptorModel.modelIndex(idx);
Executed by:
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
6
540}-
541-
542/*!-
543 \qmlmethod QModelIndex QtQml.Models::DelegateModel::parentModelIndex()-
544-
545 QAbstractItemModel provides a hierarchical tree of data, whereas-
546 QML only operates on list data. This function assists in using-
547 tree models in QML.-
548-
549 Returns a QModelIndex for the parent of the current rootIndex.-
550 This value can be assigned to rootIndex.-
551-
552 \sa rootIndex-
553*/-
554QVariant QQmlDelegateModel::parentModelIndex() const-
555{-
556 Q_D(const QQmlDelegateModel);-
557 return d->m_adaptorModel.parentModelIndex();
executed 2 times by 1 test: return d->m_adaptorModel.parentModelIndex();
Executed by:
  • tst_qquickvisualdatamodel
2
558}-
559-
560/*!-
561 \qmlproperty int QtQml.Models::DelegateModel::count-
562*/-
563-
564int QQmlDelegateModel::count() const-
565{-
566 Q_D(const QQmlDelegateModel);-
567 if (!d->m_delegate)
!d->m_delegateDescription
TRUEevaluated 3754 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
FALSEevaluated 457981 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
3754-457981
568 return 0;
executed 3754 times by 14 tests: return 0;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
3754
569 return d->m_compositor.count(d->m_compositorGroup);
executed 457981 times by 25 tests: return d->m_compositor.count(d->m_compositorGroup);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
457981
570}-
571-
572QQmlDelegateModel::ReleaseFlags QQmlDelegateModelPrivate::release(QObject *object)-
573{-
574 if (!object)
!objectDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicklistview
FALSEevaluated 103163 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
2-103163
575 return QQmlDelegateModel::ReleaseFlags(0);
executed 2 times by 1 test: return QQmlDelegateModel::ReleaseFlags(0);
Executed by:
  • tst_qquicklistview
2
576-
577 QQmlDelegateModelItem *cacheItem = QQmlDelegateModelItem::dataForObject(object);-
578 if (!cacheItem)
!cacheItemDescription
TRUEevaluated 66498 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 36665 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
36665-66498
579 return QQmlDelegateModel::ReleaseFlags(0);
executed 66498 times by 23 tests: return QQmlDelegateModel::ReleaseFlags(0);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
66498
580-
581 if (!cacheItem->releaseObject())
!cacheItem->releaseObject()Description
TRUEevaluated 14407 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 22258 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
14407-22258
582 return QQmlDelegateModel::Referenced;
executed 14407 times by 19 tests: return QQmlDelegateModel::Referenced;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
14407
583-
584 cacheItem->destroyObject();-
585 emitDestroyingItem(object);-
586 if (cacheItem->incubationTask) {
cacheItem->incubationTaskDescription
TRUEnever evaluated
FALSEevaluated 22258 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
0-22258
587 releaseIncubator(cacheItem->incubationTask);-
588 cacheItem->incubationTask = nullptr;-
589 }
never executed: end of block
0
590 cacheItem->Dispose();-
591 return QQmlInstanceModel::Destroyed;
executed 22258 times by 12 tests: return QQmlInstanceModel::Destroyed;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
22258
592}-
593-
594/*-
595 Returns ReleaseStatus flags.-
596*/-
597-
598QQmlDelegateModel::ReleaseFlags QQmlDelegateModel::release(QObject *item)-
599{-
600 Q_D(QQmlDelegateModel);-
601 QQmlInstanceModel::ReleaseFlags stat = d->release(item);-
602 return stat;
executed 99859 times by 24 tests: return stat;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
99859
603}-
604-
605// Cancel a requested async item-
606void QQmlDelegateModel::cancel(int index)-
607{-
608 Q_D(QQmlDelegateModel);-
609 if (!d->m_delegate || index < 0 || index >= d->m_compositor.count(d->m_compositorGroup)) {
!d->m_delegateDescription
TRUEevaluated 50 times by 2 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 31 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
index < 0Description
TRUEnever evaluated
FALSEevaluated 31 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
index >= d->m_...mpositorGroup)Description
TRUEnever evaluated
FALSEevaluated 31 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
0-50
610 qWarning() << "DelegateModel::cancel: index out range" << index << d->m_compositor.count(d->m_compositorGroup);-
611 return;
executed 50 times by 2 tests: return;
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
50
612 }-
613-
614 Compositor::iterator it = d->m_compositor.find(d->m_compositorGroup, index);-
615 QQmlDelegateModelItem *cacheItem = it->inCache() ? d->m_cache.at(it.cacheIndex) : 0;
it->inCache()Description
TRUEevaluated 31 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-31
616 if (cacheItem) {
cacheItemDescription
TRUEevaluated 31 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-31
617 if (cacheItem->incubationTask && !cacheItem->isObjectReferenced()) {
cacheItem->incubationTaskDescription
TRUEevaluated 31 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEnever evaluated
!cacheItem->is...ctReferenced()Description
TRUEevaluated 31 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-31
618 d->releaseIncubator(cacheItem->incubationTask);-
619 cacheItem->incubationTask = nullptr;-
620-
621 if (cacheItem->object) {
cacheItem->objectDescription
TRUEnever evaluated
FALSEevaluated 31 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
0-31
622 QObject *object = cacheItem->object;-
623 cacheItem->destroyObject();-
624 if (QQuickPackage *package = qmlobject_cast<QQuickPackage *>(object))
QQuickPackage ...age *>(object)Description
TRUEnever evaluated
FALSEnever evaluated
0
625 d->emitDestroyingPackage(package);
never executed: d->emitDestroyingPackage(package);
0
626 else-
627 d->emitDestroyingItem(object);
never executed: d->emitDestroyingItem(object);
0
628 }-
629-
630 cacheItem->scriptRef -= 1;-
631 }
executed 31 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
31
632 if (!cacheItem->isReferenced()) {
!cacheItem->isReferenced()Description
TRUEevaluated 31 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-31
633 d->m_compositor.clearFlags(Compositor::Cache, it.cacheIndex, 1, Compositor::CacheFlag);-
634 d->m_cache.removeAt(it.cacheIndex);-
635 delete cacheItem;-
636 Q_ASSERT(d->m_cache.count() == d->m_compositor.count(Compositor::Cache));-
637 }
executed 31 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
31
638 }
executed 31 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
31
639}
executed 31 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
31
640-
641void QQmlDelegateModelPrivate::group_append(-
642 QQmlListProperty<QQmlDelegateModelGroup> *property, QQmlDelegateModelGroup *group)-
643{-
644 QQmlDelegateModelPrivate *d = static_cast<QQmlDelegateModelPrivate *>(property->data);-
645 if (d->m_complete)
d->m_completeDescription
TRUEnever evaluated
FALSEevaluated 1076 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
0-1076
646 return;
never executed: return;
0
647 if (d->m_groupCount == Compositor::MaximumGroupCount) {
d->m_groupCoun...imumGroupCountDescription
TRUEnever evaluated
FALSEevaluated 1076 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
0-1076
648 qmlWarning(d->q_func()) << QQmlDelegateModel::tr("The maximum number of supported DelegateModelGroups is 8");-
649 return;
never executed: return;
0
650 }-
651 d->m_groups[d->m_groupCount] = group;-
652 d->m_groupCount += 1;-
653}
executed 1076 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
1076
654-
655int QQmlDelegateModelPrivate::group_count(-
656 QQmlListProperty<QQmlDelegateModelGroup> *property)-
657{-
658 QQmlDelegateModelPrivate *d = static_cast<QQmlDelegateModelPrivate *>(property->data);-
659 return d->m_groupCount - 1;
executed 10 times by 1 test: return d->m_groupCount - 1;
Executed by:
  • tst_qquickvisualdatamodel
10
660}-
661-
662QQmlDelegateModelGroup *QQmlDelegateModelPrivate::group_at(-
663 QQmlListProperty<QQmlDelegateModelGroup> *property, int index)-
664{-
665 QQmlDelegateModelPrivate *d = static_cast<QQmlDelegateModelPrivate *>(property->data);-
666 return index >= 0 && index < d->m_groupCount - 1
executed 8 times by 1 test: return index >= 0 && index < d->m_groupCount - 1 ? d->m_groups[index + 1] : nullptr;
Executed by:
  • tst_qquickvisualdatamodel
8
667 ? d->m_groups[index + 1]
executed 8 times by 1 test: return index >= 0 && index < d->m_groupCount - 1 ? d->m_groups[index + 1] : nullptr;
Executed by:
  • tst_qquickvisualdatamodel
8
668 : nullptr;
executed 8 times by 1 test: return index >= 0 && index < d->m_groupCount - 1 ? d->m_groups[index + 1] : nullptr;
Executed by:
  • tst_qquickvisualdatamodel
8
669}-
670-
671/*!-
672 \qmlproperty list<DelegateModelGroup> QtQml.Models::DelegateModel::groups-
673-
674 This property holds a delegate model's group definitions.-
675-
676 Groups define a sub-set of the items in a delegate model and can be used to filter-
677 a model.-
678-
679 For every group defined in a DelegateModel two attached properties are added to each-
680 delegate item. The first of the form DelegateModel.in\e{GroupName} holds whether the-
681 item belongs to the group and the second DelegateModel.\e{groupName}Index holds the-
682 index of the item in that group.-
683-
684 The following example illustrates using groups to select items in a model.-
685-
686 \snippet delegatemodel/visualdatagroup.qml 0-
687*/-
688-
689QQmlListProperty<QQmlDelegateModelGroup> QQmlDelegateModel::groups()-
690{-
691 Q_D(QQmlDelegateModel);-
692 return QQmlListProperty<QQmlDelegateModelGroup>(
executed 548 times by 2 tests: return QQmlListProperty<QQmlDelegateModelGroup>( this, d, QQmlDelegateModelPrivate::group_append, QQmlDelegateModelPrivate::group_count, QQmlDelegateModelPrivate::group_at, nullptr);
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
548
693 this,
executed 548 times by 2 tests: return QQmlListProperty<QQmlDelegateModelGroup>( this, d, QQmlDelegateModelPrivate::group_append, QQmlDelegateModelPrivate::group_count, QQmlDelegateModelPrivate::group_at, nullptr);
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
548
694 d,
executed 548 times by 2 tests: return QQmlListProperty<QQmlDelegateModelGroup>( this, d, QQmlDelegateModelPrivate::group_append, QQmlDelegateModelPrivate::group_count, QQmlDelegateModelPrivate::group_at, nullptr);
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
548
695 QQmlDelegateModelPrivate::group_append,
executed 548 times by 2 tests: return QQmlListProperty<QQmlDelegateModelGroup>( this, d, QQmlDelegateModelPrivate::group_append, QQmlDelegateModelPrivate::group_count, QQmlDelegateModelPrivate::group_at, nullptr);
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
548
696 QQmlDelegateModelPrivate::group_count,
executed 548 times by 2 tests: return QQmlListProperty<QQmlDelegateModelGroup>( this, d, QQmlDelegateModelPrivate::group_append, QQmlDelegateModelPrivate::group_count, QQmlDelegateModelPrivate::group_at, nullptr);
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
548
697 QQmlDelegateModelPrivate::group_at,
executed 548 times by 2 tests: return QQmlListProperty<QQmlDelegateModelGroup>( this, d, QQmlDelegateModelPrivate::group_append, QQmlDelegateModelPrivate::group_count, QQmlDelegateModelPrivate::group_at, nullptr);
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
548
698 nullptr);
executed 548 times by 2 tests: return QQmlListProperty<QQmlDelegateModelGroup>( this, d, QQmlDelegateModelPrivate::group_append, QQmlDelegateModelPrivate::group_count, QQmlDelegateModelPrivate::group_at, nullptr);
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
548
699}-
700-
701/*!-
702 \qmlproperty DelegateModelGroup QtQml.Models::DelegateModel::items-
703-
704 This property holds visual data model's default group to which all new items are added.-
705*/-
706-
707QQmlDelegateModelGroup *QQmlDelegateModel::items()-
708{-
709 Q_D(QQmlDelegateModel);-
710 return d->m_items;
executed 25934 times by 3 tests: return d->m_items;
Executed by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
25934
711}-
712-
713/*!-
714 \qmlproperty DelegateModelGroup QtQml.Models::DelegateModel::persistedItems-
715-
716 This property holds visual data model's persisted items group.-
717-
718 Items in this group are not destroyed when released by a view, instead they are persisted-
719 until removed from the group.-
720-
721 An item can be removed from the persistedItems group by setting the-
722 DelegateModel.inPersistedItems property to false. If the item is not referenced by a view-
723 at that time it will be destroyed. Adding an item to this group will not create a new-
724 instance.-
725-
726 Items returned by the \l QtQml.Models::DelegateModelGroup::create() function are automatically added-
727 to this group.-
728*/-
729-
730QQmlDelegateModelGroup *QQmlDelegateModel::persistedItems()-
731{-
732 Q_D(QQmlDelegateModel);-
733 return d->m_persistedItems;
executed 536 times by 1 test: return d->m_persistedItems;
Executed by:
  • tst_qquickvisualdatamodel
536
734}-
735-
736/*!-
737 \qmlproperty string QtQml.Models::DelegateModel::filterOnGroup-
738-
739 This property holds the name of the group used to filter the visual data model.-
740-
741 Only items which belong to this group are visible to a view.-
742-
743 By default this is the \l items group.-
744*/-
745-
746QString QQmlDelegateModel::filterGroup() const-
747{-
748 Q_D(const QQmlDelegateModel);-
749 return d->m_filterGroup;
executed 8 times by 1 test: return d->m_filterGroup;
Executed by:
  • tst_qquickvisualdatamodel
8
750}-
751-
752void QQmlDelegateModel::setFilterGroup(const QString &group)-
753{-
754 Q_D(QQmlDelegateModel);-
755-
756 if (d->m_transaction) {
d->m_transactionDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
0-6
757 qmlWarning(this) << tr("The group of a DelegateModel cannot be changed within onChanged");-
758 return;
never executed: return;
0
759 }-
760-
761 if (d->m_filterGroup != group) {
d->m_filterGroup != groupDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-6
762 d->m_filterGroup = group;-
763 d->updateFilterGroup();-
764 emit filterGroupChanged();-
765 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
6
766}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
6
767-
768void QQmlDelegateModel::resetFilterGroup()-
769{-
770 setFilterGroup(QStringLiteral("items"));
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquickvisualdatamodel
2
771}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
2
772-
773void QQmlDelegateModelPrivate::updateFilterGroup()-
774{-
775 Q_Q(QQmlDelegateModel);-
776 if (!m_cacheMetaType)
!m_cacheMetaTypeDescription
TRUEnever evaluated
FALSEevaluated 5628 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
0-5628
777 return;
never executed: return;
0
778-
779 QQmlListCompositor::Group previousGroup = m_compositorGroup;-
780 m_compositorGroup = Compositor::Default;-
781 for (int i = 1; i < m_groupCount; ++i) {
i < m_groupCountDescription
TRUEevaluated 5638 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
FALSEnever evaluated
0-5638
782 if (m_filterGroup == m_cacheMetaType->groupNames.at(i - 1)) {
m_filterGroup ...ames.at(i - 1)Description
TRUEevaluated 5628 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
10-5628
783 m_compositorGroup = Compositor::Group(i);-
784 break;
executed 5628 times by 27 tests: break;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5628
785 }-
786 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
10
787-
788 QQmlDelegateModelGroupPrivate::get(m_groups[m_compositorGroup])->emitters.insert(this);-
789 if (m_compositorGroup != previousGroup) {
m_compositorGr... previousGroupDescription
TRUEevaluated 5628 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
FALSEnever evaluated
0-5628
790 QVector<QQmlChangeSet::Change> removes;-
791 QVector<QQmlChangeSet::Change> inserts;-
792 m_compositor.transition(previousGroup, m_compositorGroup, &removes, &inserts);-
793-
794 QQmlChangeSet changeSet;-
795 changeSet.move(removes, inserts);-
796 emit q->modelUpdated(changeSet, false);-
797-
798 if (changeSet.difference() != 0)
changeSet.difference() != 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 5622 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
6-5622
799 emit q->countChanged();
executed 6 times by 1 test: q->countChanged();
Executed by:
  • tst_qquickvisualdatamodel
6
800-
801 if (m_parts) {
m_partsDescription
TRUEevaluated 352 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 5276 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
352-5276
802 auto partsCopy = m_parts->models; // deliberate; this may alter m_parts-
803 for (QQmlPartsModel *model : qAsConst(partsCopy))-
804 model->updateFilterGroup(m_compositorGroup, changeSet);
executed 368 times by 6 tests: model->updateFilterGroup(m_compositorGroup, changeSet);
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
368
805 }
executed 352 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
352
806 }
executed 5628 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5628
807}
executed 5628 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5628
808-
809/*!-
810 \qmlproperty object QtQml.Models::DelegateModel::parts-
811-
812 The \a parts property selects a DelegateModel which creates-
813 delegates from the part named. This is used in conjunction with-
814 the \l Package type.-
815-
816 For example, the code below selects a model which creates-
817 delegates named \e list from a \l Package:-
818-
819 \code-
820 DelegateModel {-
821 id: visualModel-
822 delegate: Package {-
823 Item { Package.name: "list" }-
824 }-
825 model: myModel-
826 }-
827-
828 ListView {-
829 width: 200; height:200-
830 model: visualModel.parts.list-
831 }-
832 \endcode-
833-
834 \sa Package-
835*/-
836-
837QObject *QQmlDelegateModel::parts()-
838{-
839 Q_D(QQmlDelegateModel);-
840 if (!d->m_parts)
!d->m_partsDescription
TRUEevaluated 352 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 30 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
30-352
841 d->m_parts = new QQmlDelegateModelParts(this);
executed 352 times by 6 tests: d->m_parts = new QQmlDelegateModelParts(this);
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
352
842 return d->m_parts;
executed 382 times by 6 tests: return d->m_parts;
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
382
843}-
844-
845const QAbstractItemModel *QQmlDelegateModel::abstractItemModel() const-
846{-
847 return d_func()->m_adaptorModel.aim();
never executed: return d_func()->m_adaptorModel.aim();
0
848}-
849-
850void QQmlDelegateModelPrivate::emitCreatedPackage(QQDMIncubationTask *incubationTask, QQuickPackage *package)-
851{-
852 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEevaluated 12098 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4962 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4962-12098
853 QQmlDelegateModelGroupPrivate::get(m_groups[i])->createdPackage(incubationTask->index[i], package);
executed 12098 times by 6 tests: QQmlDelegateModelGroupPrivate::get(m_groups[i])->createdPackage(incubationTask->index[i], package);
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
12098
854}
executed 4962 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4962
855-
856void QQmlDelegateModelPrivate::emitInitPackage(QQDMIncubationTask *incubationTask, QQuickPackage *package)-
857{-
858 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEevaluated 12098 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4962 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4962-12098
859 QQmlDelegateModelGroupPrivate::get(m_groups[i])->initPackage(incubationTask->index[i], package);
executed 12098 times by 6 tests: QQmlDelegateModelGroupPrivate::get(m_groups[i])->initPackage(incubationTask->index[i], package);
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
12098
860}
executed 4962 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4962
861-
862void QQmlDelegateModelPrivate::emitDestroyingPackage(QQuickPackage *package)-
863{-
864 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEevaluated 3324 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 1658 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
1658-3324
865 QQmlDelegateModelGroupPrivate::get(m_groups[i])->destroyingPackage(package);
executed 3324 times by 3 tests: QQmlDelegateModelGroupPrivate::get(m_groups[i])->destroyingPackage(package);
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
3324
866}
executed 1658 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
1658
867-
868static bool isDoneIncubating(QQmlIncubator::Status status)-
869{-
870 return status == QQmlIncubator::Ready || status == QQmlIncubator::Error;
executed 265128 times by 25 tests: return status == QQmlIncubator::Ready || status == QQmlIncubator::Error;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
265128
871}-
872-
873void QQDMIncubationTask::statusChanged(Status status)-
874{-
875 if (vdm) {
vdmDescription
TRUEevaluated 265099 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 29 times by 2 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
29-265099
876 vdm->incubatorStatusChanged(this, status);-
877 } else if (isDoneIncubating(status)) {
executed 265099 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
isDoneIncubating(status)Description
TRUEevaluated 29 times by 2 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
FALSEnever evaluated
0-265099
878 Q_ASSERT(incubating);-
879 // The model was deleted from under our feet, cleanup ourselves-
880 delete incubating->object;-
881 incubating->object = nullptr;-
882 if (incubating->contextData) {
incubating->contextDataDescription
TRUEevaluated 29 times by 2 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
FALSEnever evaluated
0-29
883 incubating->contextData->invalidate();-
884 Q_ASSERT(incubating->contextData->refCount == 1);-
885 incubating->contextData = nullptr;-
886 }
executed 29 times by 2 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
29
887 incubating->scriptRef = 0;-
888 incubating->deleteLater();-
889 }
executed 29 times by 2 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
29
890}
executed 265128 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
265128
891-
892void QQmlDelegateModelPrivate::releaseIncubator(QQDMIncubationTask *incubationTask)-
893{-
894 Q_Q(QQmlDelegateModel);-
895 if (!incubationTask->isError())
!incubationTask->isError()Description
TRUEevaluated 88371 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
0-88371
896 incubationTask->clear();
executed 88371 times by 25 tests: incubationTask->clear();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
88371
897 m_finishedIncubating.append(incubationTask);-
898 if (!m_incubatorCleanupScheduled) {
!m_incubatorCleanupScheduledDescription
TRUEevaluated 9109 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 79262 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
9109-79262
899 m_incubatorCleanupScheduled = true;-
900 QCoreApplication::postEvent(q, new QEvent(QEvent::User));-
901 }
executed 9109 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
9109
902}
executed 88371 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
88371
903-
904void QQmlDelegateModelPrivate::addCacheItem(QQmlDelegateModelItem *item, Compositor::iterator it)-
905{-
906 m_cache.insert(it.cacheIndex, item);-
907 m_compositor.setFlags(it, 1, Compositor::CacheFlag);-
908 Q_ASSERT(m_cache.count() == m_compositor.count(Compositor::Cache));-
909}
executed 87987 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
87987
910-
911void QQmlDelegateModelPrivate::removeCacheItem(QQmlDelegateModelItem *cacheItem)-
912{-
913 int cidx = m_cache.lastIndexOf(cacheItem);-
914 if (cidx >= 0) {
cidx >= 0Description
TRUEevaluated 22297 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-22297
915 m_compositor.clearFlags(Compositor::Cache, cidx, 1, Compositor::CacheFlag);-
916 m_cache.removeAt(cidx);-
917 }
executed 22297 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
22297
918 Q_ASSERT(m_cache.count() == m_compositor.count(Compositor::Cache));-
919}
executed 22297 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
22297
920-
921void QQmlDelegateModelPrivate::incubatorStatusChanged(QQDMIncubationTask *incubationTask, QQmlIncubator::Status status)-
922{-
923 if (!isDoneIncubating(status))
!isDoneIncubating(status)Description
TRUEevaluated 176778 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 88321 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
88321-176778
924 return;
executed 176778 times by 25 tests: return;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
176778
925-
926 const QList<QQmlError> incubationTaskErrors = incubationTask->errors();-
927-
928 QQmlDelegateModelItem *cacheItem = incubationTask->incubating;-
929 cacheItem->incubationTask = nullptr;-
930 incubationTask->incubating = nullptr;-
931 releaseIncubator(incubationTask);-
932-
933 if (status == QQmlIncubator::Ready) {
status == QQmlIncubator::ReadyDescription
TRUEevaluated 88321 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
0-88321
934 cacheItem->referenceObject();-
935 if (QQuickPackage *package = qmlobject_cast<QQuickPackage *>(cacheItem->object))
QQuickPackage ...eItem->object)Description
TRUEevaluated 4962 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 83359 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
4962-83359
936 emitCreatedPackage(incubationTask, package);
executed 4962 times by 6 tests: emitCreatedPackage(incubationTask, package);
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4962
937 else-
938 emitCreatedItem(incubationTask, cacheItem->object);
executed 83359 times by 25 tests: emitCreatedItem(incubationTask, cacheItem->object);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
83359
939 cacheItem->releaseObject();-
940 } else if (status == QQmlIncubator::Error) {
executed 88321 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
status == QQmlIncubator::ErrorDescription
TRUEnever evaluated
FALSEnever evaluated
0-88321
941 qmlWarning(m_delegate, incubationTaskErrors + m_delegate->errors()) << "Error creating delegate";-
942 }
never executed: end of block
0
943-
944 if (!cacheItem->isObjectReferenced()) {
!cacheItem->is...ctReferenced()Description
TRUEevaluated 33 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
FALSEevaluated 88288 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
33-88288
945 if (QQuickPackage *package = qmlobject_cast<QQuickPackage *>(cacheItem->object))
QQuickPackage ...eItem->object)Description
TRUEnever evaluated
FALSEevaluated 33 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
0-33
946 emitDestroyingPackage(package);
never executed: emitDestroyingPackage(package);
0
947 else-
948 emitDestroyingItem(cacheItem->object);
executed 33 times by 3 tests: emitDestroyingItem(cacheItem->object);
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
33
949 delete cacheItem->object;-
950 cacheItem->object = nullptr;-
951 cacheItem->scriptRef -= 1;-
952 if (cacheItem->contextData) {
cacheItem->contextDataDescription
TRUEevaluated 33 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
FALSEnever evaluated
0-33
953 cacheItem->contextData->invalidate();-
954 Q_ASSERT(cacheItem->contextData->refCount == 1);-
955 }
executed 33 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
33
956 cacheItem->contextData = nullptr;-
957-
958 if (!cacheItem->isReferenced()) {
!cacheItem->isReferenced()Description
TRUEevaluated 33 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
FALSEnever evaluated
0-33
959 removeCacheItem(cacheItem);-
960 delete cacheItem;-
961 }
executed 33 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
33
962 }
executed 33 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
33
963}
executed 88321 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
88321
964-
965void QQDMIncubationTask::setInitialState(QObject *o)-
966{-
967 vdm->setInitialState(this, o);-
968}
executed 88321 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
88321
969-
970void QQmlDelegateModelPrivate::setInitialState(QQDMIncubationTask *incubationTask, QObject *o)-
971{-
972 QQmlDelegateModelItem *cacheItem = incubationTask->incubating;-
973 cacheItem->object = o;-
974-
975 if (QQuickPackage *package = qmlobject_cast<QQuickPackage *>(cacheItem->object))
QQuickPackage ...eItem->object)Description
TRUEevaluated 4962 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 83359 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
4962-83359
976 emitInitPackage(incubationTask, package);
executed 4962 times by 6 tests: emitInitPackage(incubationTask, package);
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4962
977 else-
978 emitInitItem(incubationTask, cacheItem->object);
executed 83359 times by 25 tests: emitInitItem(incubationTask, cacheItem->object);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
83359
979}-
980-
981QObject *QQmlDelegateModelPrivate::object(Compositor::Group group, int index, QQmlIncubator::IncubationMode incubationMode)-
982{-
983 if (!m_delegate || index < 0 || index >= m_compositor.count(group)) {
!m_delegateDescription
TRUEnever evaluated
FALSEevaluated 109307 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
index < 0Description
TRUEnever evaluated
FALSEevaluated 109307 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
index >= m_com...r.count(group)Description
TRUEnever evaluated
FALSEevaluated 109307 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
0-109307
984 qWarning() << "DelegateModel::item: index out range" << index << m_compositor.count(group);-
985 return nullptr;
never executed: return nullptr;
0
986 } else if (!m_context || !m_context->isValid()) {
!m_contextDescription
TRUEnever evaluated
FALSEevaluated 109307 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
!m_context->isValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 109305 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
0-109307
987 return nullptr;
executed 2 times by 1 test: return nullptr;
Executed by:
  • tst_qquickvisualdatamodel
2
988 }-
989-
990 Compositor::iterator it = m_compositor.find(group, index);-
991-
992 QQmlDelegateModelItem *cacheItem = it->inCache() ? m_cache.at(it.cacheIndex) : 0;
it->inCache()Description
TRUEevaluated 21318 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 87987 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
21318-87987
993-
994 if (!cacheItem) {
!cacheItemDescription
TRUEevaluated 87987 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 21318 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
21318-87987
995 cacheItem = m_adaptorModel.createItem(m_cacheMetaType, it.modelIndex());-
996 if (!cacheItem)
!cacheItemDescription
TRUEnever evaluated
FALSEevaluated 87987 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
0-87987
997 return nullptr;
never executed: return nullptr;
0
998-
999 cacheItem->groups = it->flags;-
1000 addCacheItem(cacheItem, it);-
1001 }
executed 87987 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
87987
1002-
1003 // Bump the reference counts temporarily so neither the content data or the delegate object-
1004 // are deleted if incubatorStatusChanged() is called synchronously.-
1005 cacheItem->scriptRef += 1;-
1006 cacheItem->referenceObject();-
1007-
1008 if (cacheItem->incubationTask) {
cacheItem->incubationTaskDescription
TRUEevaluated 170 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 109135 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
170-109135
1009 bool sync = (incubationMode == QQmlIncubator::Synchronous || incubationMode == QQmlIncubator::AsynchronousIfNested);
incubationMode...r::SynchronousDescription
TRUEnever evaluated
FALSEevaluated 170 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
incubationMode...ronousIfNestedDescription
TRUEevaluated 168 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
0-170
1010 if (sync && cacheItem->incubationTask->incubationMode() == QQmlIncubator::Asynchronous) {
syncDescription
TRUEevaluated 168 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
cacheItem->inc...::AsynchronousDescription
TRUEevaluated 162 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
2-168
1011 // previously requested async - now needed immediately-
1012 cacheItem->incubationTask->forceCompletion();-
1013 }
executed 162 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
162
1014 } else if (!cacheItem->object) {
executed 170 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
!cacheItem->objectDescription
TRUEevaluated 88407 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 20728 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
170-88407
1015 QQmlContext *creationContext = m_delegate->creationContext();-
1016-
1017 cacheItem->scriptRef += 1;-
1018-
1019 cacheItem->incubationTask = new QQDMIncubationTask(this, incubationMode);-
1020 cacheItem->incubationTask->incubating = cacheItem;-
1021 cacheItem->incubationTask->clear();-
1022-
1023 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEevaluated 182034 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 88407 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
88407-182034
1024 cacheItem->incubationTask->index[i] = it.index[i];
executed 182034 times by 25 tests: cacheItem->incubationTask->index[i] = it.index[i];
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
182034
1025-
1026 QQmlContextData *ctxt = new QQmlContextData;-
1027 ctxt->setParent(QQmlContextData::get(creationContext ? creationContext : m_context.data()));-
1028 ctxt->contextObject = cacheItem;-
1029 cacheItem->contextData = ctxt;-
1030-
1031 if (m_adaptorModel.hasProxyObject()) {
m_adaptorModel...sProxyObject()Description
TRUEevaluated 78422 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
FALSEevaluated 9985 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
9985-78422
1032 if (QQmlAdaptorModelProxyInterface *proxy
QQmlAdaptorMod... *>(cacheItem)Description
TRUEevaluated 472 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 77950 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
472-77950
1033 = qobject_cast<QQmlAdaptorModelProxyInterface *>(cacheItem)) {
QQmlAdaptorMod... *>(cacheItem)Description
TRUEevaluated 472 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 77950 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
472-77950
1034 ctxt = new QQmlContextData;-
1035 ctxt->setParent(cacheItem->contextData, /*stronglyReferencedByParent*/true);-
1036 ctxt->contextObject = proxy->proxiedObject();-
1037 }
executed 472 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
472
1038 }
executed 78422 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
78422
1039-
1040 QQmlComponentPrivate *cp = QQmlComponentPrivate::get(m_delegate);-
1041 cp->incubateObject(-
1042 cacheItem->incubationTask,-
1043 m_delegate,-
1044 m_context->engine(),-
1045 ctxt,-
1046 QQmlContextData::get(m_context));-
1047 }
executed 88407 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
88407
1048-
1049 if (index == m_compositor.count(group) - 1)
index == m_com...unt(group) - 1Description
TRUEevaluated 8613 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 100692 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
8613-100692
1050 requestMoreIfNecessary();
executed 8613 times by 24 tests: requestMoreIfNecessary();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
8613
1051-
1052 // Remove the temporary reference count.-
1053 cacheItem->scriptRef -= 1;-
1054 if (cacheItem->object && (!cacheItem->incubationTask || isDoneIncubating(cacheItem->incubationTask->status())))
!cacheItem->incubationTaskDescription
TRUEevaluated 106373 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
isDoneIncubati...ask->status())Description
TRUEnever evaluated
FALSEnever evaluated
0-106373
1055 return cacheItem->object;
executed 106373 times by 25 tests: return cacheItem->object;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
106373
1056-
1057 cacheItem->releaseObject();-
1058 if (!cacheItem->isReferenced()) {
!cacheItem->isReferenced()Description
TRUEnever evaluated
FALSEevaluated 2932 times by 7 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
0-2932
1059 removeCacheItem(cacheItem);-
1060 delete cacheItem;-
1061 }
never executed: end of block
0
1062-
1063 return nullptr;
executed 2932 times by 7 tests: return nullptr;
Executed by:
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2932
1064}-
1065-
1066/*-
1067 If asynchronous is true or the component is being loaded asynchronously due-
1068 to an ancestor being loaded asynchronously, object() may return 0. In this-
1069 case createdItem() will be emitted when the object is available. The object-
1070 at this stage does not have any references, so object() must be called again-
1071 to ensure a reference is held. Any call to object() which returns a valid object-
1072 must be matched by a call to release() in order to destroy the object.-
1073*/-
1074QObject *QQmlDelegateModel::object(int index, QQmlIncubator::IncubationMode incubationMode)-
1075{-
1076 Q_D(QQmlDelegateModel);-
1077 if (!d->m_delegate || index < 0 || index >= d->m_compositor.count(d->m_compositorGroup)) {
!d->m_delegateDescription
TRUEnever evaluated
FALSEevaluated 103029 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
index < 0Description
TRUEnever evaluated
FALSEevaluated 103029 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
index >= d->m_...mpositorGroup)Description
TRUEnever evaluated
FALSEevaluated 103029 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
0-103029
1078 qWarning() << "DelegateModel::item: index out range" << index << d->m_compositor.count(d->m_compositorGroup);-
1079 return nullptr;
never executed: return nullptr;
0
1080 }-
1081-
1082 return d->object(d->m_compositorGroup, index, incubationMode);
executed 103029 times by 25 tests: return d->object(d->m_compositorGroup, index, incubationMode);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
103029
1083}-
1084-
1085QQmlIncubator::Status QQmlDelegateModel::incubationStatus(int index)-
1086{-
1087 Q_D(QQmlDelegateModel);-
1088 Compositor::iterator it = d->m_compositor.find(d->m_compositorGroup, index);-
1089 if (!it->inCache())
!it->inCache()Description
TRUEnever evaluated
FALSEevaluated 2770 times by 4 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickvisualdatamodel
0-2770
1090 return QQmlIncubator::Null;
never executed: return QQmlIncubator::Null;
0
1091-
1092 if (auto incubationTask = d->m_cache.at(it.cacheIndex)->incubationTask)
auto incubatio...incubationTaskDescription
TRUEevaluated 2770 times by 4 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-2770
1093 return incubationTask->status();
executed 2770 times by 4 tests: return incubationTask->status();
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickvisualdatamodel
2770
1094-
1095 return QQmlIncubator::Ready;
never executed: return QQmlIncubator::Ready;
0
1096}-
1097-
1098QString QQmlDelegateModelPrivate::stringValue(Compositor::Group group, int index, const QString &name)-
1099{-
1100 Compositor::iterator it = m_compositor.find(group, index);-
1101 if (QQmlAdaptorModel *model = it.list<QQmlAdaptorModel>()) {
QQmlAdaptorMod...daptorModel>()Description
TRUEevaluated 7412 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-7412
1102 QString role = name;-
1103 int dot = name.indexOf(QLatin1Char('.'));-
1104 if (dot > 0)
dot > 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 7404 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
8-7404
1105 role = name.left(dot);
executed 8 times by 1 test: role = name.left(dot);
Executed by:
  • tst_qquickvisualdatamodel
8
1106 QVariant value = model->value(it.modelIndex(), role);-
1107 while (dot > 0) {
dot > 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 7412 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
8-7412
1108 QObject *obj = qvariant_cast<QObject*>(value);-
1109 if (!obj)
!objDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
0-8
1110 return QString();
never executed: return QString();
0
1111 int from = dot+1;-
1112 dot = name.indexOf(QLatin1Char('.'), from);-
1113 value = obj->property(name.midRef(from, dot - from).toUtf8());-
1114 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
8
1115 return value.toString();
executed 7412 times by 4 tests: return value.toString();
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
7412
1116 }-
1117 return QString();
never executed: return QString();
0
1118}-
1119-
1120QString QQmlDelegateModel::stringValue(int index, const QString &name)-
1121{-
1122 Q_D(QQmlDelegateModel);-
1123 return d->stringValue(d->m_compositorGroup, index, name);
executed 7008 times by 4 tests: return d->stringValue(d->m_compositorGroup, index, name);
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
7008
1124}-
1125-
1126int QQmlDelegateModel::indexOf(QObject *item, QObject *) const-
1127{-
1128 Q_D(const QQmlDelegateModel);-
1129 if (QQmlDelegateModelItem *cacheItem = QQmlDelegateModelItem::dataForObject(item))
QQmlDelegateMo...orObject(item)Description
TRUEevaluated 44930 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 54689 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
44930-54689
1130 return cacheItem->groupIndex(d->m_compositorGroup);
executed 44930 times by 3 tests: return cacheItem->groupIndex(d->m_compositorGroup);
Executed by:
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
44930
1131 return -1;
executed 54689 times by 10 tests: return -1;
Executed by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
54689
1132}-
1133-
1134void QQmlDelegateModel::setWatchedRoles(const QList<QByteArray> &roles)-
1135{-
1136 Q_D(QQmlDelegateModel);-
1137 d->m_adaptorModel.replaceWatchedRoles(d->m_watchedRoles, roles);-
1138 d->m_watchedRoles = roles;-
1139}
executed 1620 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
1620
1140-
1141void QQmlDelegateModelPrivate::addGroups(-
1142 Compositor::iterator from, int count, Compositor::Group group, int groupFlags)-
1143{-
1144 QVector<Compositor::Insert> inserts;-
1145 m_compositor.setFlags(from, count, group, groupFlags, &inserts);-
1146 itemsInserted(inserts);-
1147 emitChanges();-
1148}
executed 22 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
22
1149-
1150void QQmlDelegateModelPrivate::removeGroups(-
1151 Compositor::iterator from, int count, Compositor::Group group, int groupFlags)-
1152{-
1153 QVector<Compositor::Remove> removes;-
1154 m_compositor.clearFlags(from, count, group, groupFlags, &removes);-
1155 itemsRemoved(removes);-
1156 emitChanges();-
1157}
executed 40 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
40
1158-
1159void QQmlDelegateModelPrivate::setGroups(-
1160 Compositor::iterator from, int count, Compositor::Group group, int groupFlags)-
1161{-
1162 QVector<Compositor::Remove> removes;-
1163 QVector<Compositor::Insert> inserts;-
1164-
1165 m_compositor.setFlags(from, count, group, groupFlags, &inserts);-
1166 itemsInserted(inserts);-
1167 const int removeFlags = ~groupFlags & Compositor::GroupMask;-
1168-
1169 from = m_compositor.find(from.group, from.index[from.group]);-
1170 m_compositor.clearFlags(from, count, group, removeFlags, &removes);-
1171 itemsRemoved(removes);-
1172 emitChanges();-
1173}
executed 36 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
36
1174-
1175bool QQmlDelegateModel::event(QEvent *e)-
1176{-
1177 Q_D(QQmlDelegateModel);-
1178 if (e->type() == QEvent::UpdateRequest) {
e->type() == Q...:UpdateRequestDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquicklistview
FALSEevaluated 19111 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
18-19111
1179 d->m_waitingToFetchMore = false;-
1180 d->m_adaptorModel.fetchMore();-
1181 } else if (e->type() == QEvent::User) {
executed 18 times by 1 test: end of block
Executed by:
  • tst_qquicklistview
e->type() == QEvent::UserDescription
TRUEevaluated 6885 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 12226 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
18-12226
1182 d->m_incubatorCleanupScheduled = false;-
1183 qDeleteAll(d->m_finishedIncubating);-
1184 d->m_finishedIncubating.clear();-
1185 }
executed 6885 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
6885
1186 return QQmlInstanceModel::event(e);
executed 19129 times by 27 tests: return QQmlInstanceModel::event(e);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
19129
1187}-
1188-
1189void QQmlDelegateModelPrivate::itemsChanged(const QVector<Compositor::Change> &changes)-
1190{-
1191 if (!m_delegate)
!m_delegateDescription
TRUEnever evaluated
FALSEevaluated 426 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
0-426
1192 return;
never executed: return;
0
1193-
1194 QVarLengthArray<QVector<QQmlChangeSet::Change>, Compositor::MaximumGroupCount> translatedChanges(m_groupCount);-
1195-
1196 for (const Compositor::Change &change : changes) {-
1197 for (int i = 1; i < m_groupCount; ++i) {
i < m_groupCountDescription
TRUEevaluated 852 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 426 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
426-852
1198 if (change.inGroup(i)) {
change.inGroup(i)Description
TRUEevaluated 426 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 426 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
426
1199 translatedChanges[i].append(QQmlChangeSet::Change(change.index[i], change.count));-
1200 }
executed 426 times by 2 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
426
1201 }
executed 852 times by 2 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
852
1202 }
executed 426 times by 2 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
426
1203-
1204 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEevaluated 852 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 426 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
426-852
1205 QQmlDelegateModelGroupPrivate::get(m_groups[i])->changeSet.change(translatedChanges.at(i));
executed 852 times by 2 tests: QQmlDelegateModelGroupPrivate::get(m_groups[i])->changeSet.change(translatedChanges.at(i));
Executed by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
852
1206}
executed 426 times by 2 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
426
1207-
1208void QQmlDelegateModel::_q_itemsChanged(int index, int count, const QVector<int> &roles)-
1209{-
1210 Q_D(QQmlDelegateModel);-
1211 if (count <= 0 || !d->m_complete)
count <= 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicklistview
FALSEevaluated 494 times by 5 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
!d->m_completeDescription
TRUEnever evaluated
FALSEevaluated 494 times by 5 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
0-494
1212 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_qquicklistview
4
1213-
1214 if (d->m_adaptorModel.notify(d->m_cache, index, count, roles)) {
d->m_adaptorMo... count, roles)Description
TRUEevaluated 426 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 68 times by 5 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
68-426
1215 QVector<Compositor::Change> changes;-
1216 d->m_compositor.listItemsChanged(&d->m_adaptorModel, index, count, &changes);-
1217 d->itemsChanged(changes);-
1218 d->emitChanges();-
1219 }
executed 426 times by 2 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
426
1220}
executed 494 times by 5 tests: end of block
Executed by:
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
494
1221-
1222static void incrementIndexes(QQmlDelegateModelItem *cacheItem, int count, const int *deltas)-
1223{-
1224 if (QQDMIncubationTask *incubationTask = cacheItem->incubationTask) {
QQDMIncubation...incubationTaskDescription
TRUEevaluated 322 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 120409 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
322-120409
1225 for (int i = 1; i < count; ++i)
i < countDescription
TRUEevaluated 644 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 322 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
322-644
1226 incubationTask->index[i] += deltas[i];
executed 644 times by 3 tests: incubationTask->index[i] += deltas[i];
Executed by:
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
644
1227 }
executed 322 times by 3 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
322
1228 if (QQmlDelegateModelAttached *attached = cacheItem->attached) {
QQmlDelegateMo...Item->attachedDescription
TRUEevaluated 2518 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 118213 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2518-118213
1229 for (int i = 1; i < qMin<int>(count, Compositor::MaximumGroupCount); ++i)
i < qMin<int>(...mumGroupCount)Description
TRUEevaluated 10040 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 2518 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
2518-10040
1230 attached->m_currentIndex[i] += deltas[i];
executed 10040 times by 1 test: attached->m_currentIndex[i] += deltas[i];
Executed by:
  • tst_qquickvisualdatamodel
10040
1231 }
executed 2518 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
2518
1232}
executed 120731 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
120731
1233-
1234void QQmlDelegateModelPrivate::itemsInserted(-
1235 const QVector<Compositor::Insert> &inserts,-
1236 QVarLengthArray<QVector<QQmlChangeSet::Change>, Compositor::MaximumGroupCount> *translatedInserts,-
1237 QHash<int, QList<QQmlDelegateModelItem *> > *movedItems)-
1238{-
1239 int cacheIndex = 0;-
1240-
1241 int inserted[Compositor::MaximumGroupCount];-
1242 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEevaluated 36072 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
FALSEevaluated 16130 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
16130-36072
1243 inserted[i] = 0;
executed 36072 times by 27 tests: inserted[i] = 0;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
36072
1244-
1245 for (const Compositor::Insert &insert : inserts) {-
1246 for (; cacheIndex < insert.cacheIndex; ++cacheIndex)
cacheIndex < insert.cacheIndexDescription
TRUEevaluated 45018 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 16086 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
16086-45018
1247 incrementIndexes(m_cache.at(cacheIndex), m_groupCount, inserted);
executed 45018 times by 8 tests: incrementIndexes(m_cache.at(cacheIndex), m_groupCount, inserted);
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
45018
1248-
1249 for (int i = 1; i < m_groupCount; ++i) {
i < m_groupCountDescription
TRUEevaluated 35768 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
FALSEevaluated 16086 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
16086-35768
1250 if (insert.inGroup(i)) {
insert.inGroup(i)Description
TRUEevaluated 16816 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
FALSEevaluated 18952 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
16816-18952
1251 (*translatedInserts)[i].append(-
1252 QQmlChangeSet::Change(insert.index[i], insert.count, insert.moveId));-
1253 inserted[i] += insert.count;-
1254 }
executed 16816 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
16816
1255 }
executed 35768 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
35768
1256-
1257 if (!insert.inCache())
!insert.inCache()Description
TRUEevaluated 14478 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
FALSEevaluated 1608 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1608-14478
1258 continue;
executed 14478 times by 27 tests: continue;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
14478
1259-
1260 if (movedItems && insert.isMove()) {
movedItemsDescription
TRUEevaluated 1018 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 590 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
insert.isMove()Description
TRUEevaluated 1018 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-1018
1261 QList<QQmlDelegateModelItem *> items = movedItems->take(insert.moveId);-
1262 Q_ASSERT(items.count() == insert.count);-
1263 m_cache = m_cache.mid(0, insert.cacheIndex) + items + m_cache.mid(insert.cacheIndex);-
1264 }
executed 1018 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1018
1265 if (insert.inGroup()) {
insert.inGroup()Description
TRUEevaluated 1608 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-1608
1266 for (int offset = 0; cacheIndex < insert.cacheIndex + insert.count; ++cacheIndex, ++offset) {
cacheIndex < i...+ insert.countDescription
TRUEevaluated 2764 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 1608 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1608-2764
1267 QQmlDelegateModelItem *cacheItem = m_cache.at(cacheIndex);-
1268 cacheItem->groups |= insert.flags & Compositor::GroupMask;-
1269-
1270 if (QQDMIncubationTask *incubationTask = cacheItem->incubationTask) {
QQDMIncubation...incubationTaskDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 2758 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
6-2758
1271 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
6-12
1272 incubationTask->index[i] = cacheItem->groups & (1 << i)
executed 12 times by 2 tests: incubationTask->index[i] = cacheItem->groups & (1 << i) ? insert.index[i] + offset : insert.index[i];
Executed by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
cacheItem->groups & (1 << i)Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
6-12
1273 ? insert.index[i] + offset
executed 12 times by 2 tests: incubationTask->index[i] = cacheItem->groups & (1 << i) ? insert.index[i] + offset : insert.index[i];
Executed by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
12
1274 : insert.index[i];
executed 12 times by 2 tests: incubationTask->index[i] = cacheItem->groups & (1 << i) ? insert.index[i] + offset : insert.index[i];
Executed by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
12
1275 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
6
1276 if (QQmlDelegateModelAttached *attached = cacheItem->attached) {
QQmlDelegateMo...Item->attachedDescription
TRUEevaluated 100 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 2664 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
100-2664
1277 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEevaluated 388 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 100 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
100-388
1278 attached->m_currentIndex[i] = cacheItem->groups & (1 << i)
executed 388 times by 2 tests: attached->m_currentIndex[i] = cacheItem->groups & (1 << i) ? insert.index[i] + offset : insert.index[i];
Executed by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
cacheItem->groups & (1 << i)Description
TRUEevaluated 224 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 164 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
164-388
1279 ? insert.index[i] + offset
executed 388 times by 2 tests: attached->m_currentIndex[i] = cacheItem->groups & (1 << i) ? insert.index[i] + offset : insert.index[i];
Executed by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
388
1280 : insert.index[i];
executed 388 times by 2 tests: attached->m_currentIndex[i] = cacheItem->groups & (1 << i) ? insert.index[i] + offset : insert.index[i];
Executed by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
388
1281 }
executed 100 times by 2 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
100
1282 }
executed 2764 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2764
1283 } else {
executed 1608 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1608
1284 cacheIndex = insert.cacheIndex + insert.count;-
1285 }
never executed: end of block
0
1286 }-
1287 for (const QList<QQmlDelegateModelItem *> cache = m_cache; cacheIndex < cache.count(); ++cacheIndex)
cacheIndex < cache.count()Description
TRUEevaluated 25798 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 16130 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
16130-25798
1288 incrementIndexes(cache.at(cacheIndex), m_groupCount, inserted);
executed 25798 times by 8 tests: incrementIndexes(cache.at(cacheIndex), m_groupCount, inserted);
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
25798
1289}
executed 16130 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
16130
1290-
1291void QQmlDelegateModelPrivate::itemsInserted(const QVector<Compositor::Insert> &inserts)-
1292{-
1293 QVarLengthArray<QVector<QQmlChangeSet::Change>, Compositor::MaximumGroupCount> translatedInserts(m_groupCount);-
1294 itemsInserted(inserts, &translatedInserts);-
1295 Q_ASSERT(m_cache.count() == m_compositor.count(Compositor::Cache));-
1296 if (!m_delegate)
!m_delegateDescription
TRUEevaluated 42 times by 7 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
FALSEevaluated 14782 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
42-14782
1297 return;
executed 42 times by 7 tests: return;
Executed by:
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
42
1298-
1299 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEevaluated 33018 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
FALSEevaluated 14782 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
14782-33018
1300 QQmlDelegateModelGroupPrivate::get(m_groups[i])->changeSet.insert(translatedInserts.at(i));
executed 33018 times by 26 tests: QQmlDelegateModelGroupPrivate::get(m_groups[i])->changeSet.insert(translatedInserts.at(i));
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
33018
1301}
executed 14782 times by 26 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
14782
1302-
1303void QQmlDelegateModel::_q_itemsInserted(int index, int count)-
1304{-
1305-
1306 Q_D(QQmlDelegateModel);-
1307 if (count <= 0 || !d->m_complete)
count <= 0Description
TRUEevaluated 160 times by 9 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
FALSEevaluated 8148 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
!d->m_completeDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 8076 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
72-8148
1308 return;
executed 232 times by 10 tests: return;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
232
1309-
1310 d->m_count += count;-
1311-
1312 const QList<QQmlDelegateModelItem *> cache = d->m_cache;-
1313 for (int i = 0, c = cache.count(); i < c; ++i) {
i < cDescription
TRUEevaluated 48762 times by 7 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 8076 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
8076-48762
1314 QQmlDelegateModelItem *item = cache.at(i);-
1315 if (item->modelIndex() >= index)
item->modelIndex() >= indexDescription
TRUEevaluated 12234 times by 7 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 36528 times by 7 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
12234-36528
1316 item->setModelIndex(item->modelIndex() + count);
executed 12234 times by 7 tests: item->setModelIndex(item->modelIndex() + count);
Executed by:
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
12234
1317 }
executed 48762 times by 7 tests: end of block
Executed by:
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
48762
1318-
1319 QVector<Compositor::Insert> inserts;-
1320 d->m_compositor.listItemsInserted(&d->m_adaptorModel, index, count, &inserts);-
1321 d->itemsInserted(inserts);-
1322 d->emitChanges();-
1323}
executed 8076 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
8076
1324-
1325//### This method should be split in two. It will remove delegates, and it will re-render the list.-
1326// When e.g. QQmlListModel::remove is called, the removal of the delegates should be done on-
1327// QAbstractItemModel::rowsAboutToBeRemoved, and the re-rendering on-
1328// QAbstractItemModel::rowsRemoved. Currently both are done on the latter signal. The problem is-
1329// that the destruction of an item will emit a changed signal that ends up at the delegate, which-
1330// in turn will try to load the data from the model (which should have already freed it), resulting-
1331// in a use-after-free. See QTBUG-59256.-
1332void QQmlDelegateModelPrivate::itemsRemoved(-
1333 const QVector<Compositor::Remove> &removes,-
1334 QVarLengthArray<QVector<QQmlChangeSet::Change>, Compositor::MaximumGroupCount> *translatedRemoves,-
1335 QHash<int, QList<QQmlDelegateModelItem *> > *movedItems)-
1336{-
1337 int cacheIndex = 0;-
1338 int removedCache = 0;-
1339-
1340 int removed[Compositor::MaximumGroupCount];-
1341 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEevaluated 8912 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4074 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4074-8912
1342 removed[i] = 0;
executed 8912 times by 12 tests: removed[i] = 0;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
8912
1343-
1344 for (const Compositor::Remove &remove : removes) {-
1345 for (; cacheIndex < remove.cacheIndex; ++cacheIndex)
cacheIndex < remove.cacheIndexDescription
TRUEevaluated 21509 times by 6 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4484 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4484-21509
1346 incrementIndexes(m_cache.at(cacheIndex), m_groupCount, removed);
executed 21509 times by 6 tests: incrementIndexes(m_cache.at(cacheIndex), m_groupCount, removed);
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
21509
1347-
1348 for (int i = 1; i < m_groupCount; ++i) {
i < m_groupCountDescription
TRUEevaluated 9788 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4484 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4484-9788
1349 if (remove.inGroup(i)) {
remove.inGroup(i)Description
TRUEevaluated 4688 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 5100 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4688-5100
1350 (*translatedRemoves)[i].append(-
1351 QQmlChangeSet::Change(remove.index[i], remove.count, remove.moveId));-
1352 removed[i] -= remove.count;-
1353 }
executed 4688 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4688
1354 }
executed 9788 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
9788
1355-
1356 if (!remove.inCache())
!remove.inCache()Description
TRUEevaluated 1221 times by 9 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 3263 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1221-3263
1357 continue;
executed 1221 times by 9 tests: continue;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1221
1358-
1359 if (movedItems && remove.isMove()) {
movedItemsDescription
TRUEevaluated 1062 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 2201 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
remove.isMove()Description
TRUEevaluated 1018 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 44 times by 4 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
44-2201
1360 movedItems->insert(remove.moveId, m_cache.mid(remove.cacheIndex, remove.count));-
1361 QList<QQmlDelegateModelItem *>::iterator begin = m_cache.begin() + remove.cacheIndex;-
1362 QList<QQmlDelegateModelItem *>::iterator end = begin + remove.count;-
1363 m_cache.erase(begin, end);-
1364 } else {
executed 1018 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1018
1365 for (; cacheIndex < remove.cacheIndex + remove.count - removedCache; ++cacheIndex) {
cacheIndex < r...- removedCacheDescription
TRUEevaluated 5184 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 2245 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2245-5184
1366 QQmlDelegateModelItem *cacheItem = m_cache.at(cacheIndex);-
1367 if (remove.inGroup(Compositor::Persisted) && cacheItem->objectRef == 0 && cacheItem->object) {
remove.inGroup...or::Persisted)Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 5140 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
cacheItem->objectRef == 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
12-5140
1368 QObject *object = cacheItem->object;-
1369 cacheItem->destroyObject();-
1370 if (QQuickPackage *package = qmlobject_cast<QQuickPackage *>(object))
QQuickPackage ...age *>(object)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
4-6
1371 emitDestroyingPackage(package);
executed 4 times by 1 test: emitDestroyingPackage(package);
Executed by:
  • tst_qquickvisualdatamodel
4
1372 else-
1373 emitDestroyingItem(object);
executed 6 times by 1 test: emitDestroyingItem(object);
Executed by:
  • tst_qquickvisualdatamodel
6
1374 cacheItem->scriptRef -= 1;-
1375 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
10
1376 if (!cacheItem->isReferenced()) {
!cacheItem->isReferenced()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 5182 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2-5182
1377 m_compositor.clearFlags(Compositor::Cache, cacheIndex, 1, Compositor::CacheFlag);-
1378 m_cache.removeAt(cacheIndex);-
1379 delete cacheItem;-
1380 --cacheIndex;-
1381 ++removedCache;-
1382 Q_ASSERT(m_cache.count() == m_compositor.count(Compositor::Cache));-
1383 } else if (remove.groups() == cacheItem->groups) {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
remove.groups(...heItem->groupsDescription
TRUEnever evaluated
FALSEevaluated 5182 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
0-5182
1384 cacheItem->groups = 0;-
1385 if (QQDMIncubationTask *incubationTask = cacheItem->incubationTask) {
QQDMIncubation...incubationTaskDescription
TRUEnever evaluated
FALSEnever evaluated
0
1386 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEnever evaluated
FALSEnever evaluated
0
1387 incubationTask->index[i] = -1;
never executed: incubationTask->index[i] = -1;
0
1388 }
never executed: end of block
0
1389 if (QQmlDelegateModelAttached *attached = cacheItem->attached) {
QQmlDelegateMo...Item->attachedDescription
TRUEnever evaluated
FALSEnever evaluated
0
1390 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEnever evaluated
FALSEnever evaluated
0
1391 attached->m_currentIndex[i] = -1;
never executed: attached->m_currentIndex[i] = -1;
0
1392 }
never executed: end of block
0
1393 } else {
never executed: end of block
0
1394 if (QQDMIncubationTask *incubationTask = cacheItem->incubationTask) {
QQDMIncubation...incubationTaskDescription
TRUEevaluated 21 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 5161 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
21-5161
1395 if (!cacheItem->isObjectReferenced()) {
!cacheItem->is...ctReferenced()Description
TRUEevaluated 19 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicklistview
2-19
1396 releaseIncubator(cacheItem->incubationTask);-
1397 cacheItem->incubationTask = nullptr;-
1398 if (cacheItem->object) {
cacheItem->objectDescription
TRUEnever evaluated
FALSEevaluated 19 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
0-19
1399 QObject *object = cacheItem->object;-
1400 cacheItem->destroyObject();-
1401 if (QQuickPackage *package = qmlobject_cast<QQuickPackage *>(object))
QQuickPackage ...age *>(object)Description
TRUEnever evaluated
FALSEnever evaluated
0
1402 emitDestroyingPackage(package);
never executed: emitDestroyingPackage(package);
0
1403 else-
1404 emitDestroyingItem(object);
never executed: emitDestroyingItem(object);
0
1405 }-
1406 cacheItem->scriptRef -= 1;-
1407 } else {
executed 19 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
19
1408 for (int i = 1; i < m_groupCount; ++i) {
i < m_groupCountDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicklistview
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicklistview
2-4
1409 if (remove.inGroup(i))
remove.inGroup(i)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicklistview
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicklistview
2
1410 incubationTask->index[i] = remove.index[i];
executed 2 times by 1 test: incubationTask->index[i] = remove.index[i];
Executed by:
  • tst_qquicklistview
2
1411 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicklistview
4
1412 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicklistview
2
1413 }-
1414 if (QQmlDelegateModelAttached *attached = cacheItem->attached) {
QQmlDelegateMo...Item->attachedDescription
TRUEevaluated 60 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 5122 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
60-5122
1415 for (int i = 1; i < m_groupCount; ++i) {
i < m_groupCountDescription
TRUEevaluated 224 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 60 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
60-224
1416 if (remove.inGroup(i))
remove.inGroup(i)Description
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 152 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
72-152
1417 attached->m_currentIndex[i] = remove.index[i];
executed 72 times by 1 test: attached->m_currentIndex[i] = remove.index[i];
Executed by:
  • tst_qquickvisualdatamodel
72
1418 }
executed 224 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
224
1419 }
executed 60 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
60
1420 cacheItem->groups &= ~remove.flags;-
1421 }
executed 5182 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
5182
1422 }-
1423 }
executed 2245 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2245
1424 }-
1425-
1426 for (const QList<QQmlDelegateModelItem *> cache = m_cache; cacheIndex < cache.count(); ++cacheIndex)
cacheIndex < cache.count()Description
TRUEevaluated 28406 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4074 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4074-28406
1427 incrementIndexes(cache.at(cacheIndex), m_groupCount, removed);
executed 28406 times by 8 tests: incrementIndexes(cache.at(cacheIndex), m_groupCount, removed);
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
28406
1428}
executed 4074 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4074
1429-
1430void QQmlDelegateModelPrivate::itemsRemoved(const QVector<Compositor::Remove> &removes)-
1431{-
1432 QVarLengthArray<QVector<QQmlChangeSet::Change>, Compositor::MaximumGroupCount> translatedRemoves(m_groupCount);-
1433 itemsRemoved(removes, &translatedRemoves);-
1434 Q_ASSERT(m_cache.count() == m_compositor.count(Compositor::Cache));-
1435 if (!m_delegate)
!m_delegateDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 2764 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4-2764
1436 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_qqmlecmascript
4
1437-
1438 for (int i = 1; i < m_groupCount; ++i)
i < m_groupCountDescription
TRUEevaluated 5938 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 2764 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2764-5938
1439 QQmlDelegateModelGroupPrivate::get(m_groups[i])->changeSet.remove(translatedRemoves.at(i));
executed 5938 times by 12 tests: QQmlDelegateModelGroupPrivate::get(m_groups[i])->changeSet.remove(translatedRemoves.at(i));
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
5938
1440}
executed 2764 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2764
1441-
1442void QQmlDelegateModel::_q_itemsRemoved(int index, int count)-
1443{-
1444 Q_D(QQmlDelegateModel);-
1445 if (count <= 0|| !d->m_complete)
count <= 0Description
TRUEevaluated 390 times by 10 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
FALSEevaluated 2558 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
!d->m_completeDescription
TRUEnever evaluated
FALSEevaluated 2558 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
0-2558
1446 return;
executed 390 times by 10 tests: return;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
390
1447-
1448 d->m_count -= count;-
1449 const QList<QQmlDelegateModelItem *> cache = d->m_cache;-
1450 for (int i = 0, c = cache.count(); i < c; ++i) {
i < cDescription
TRUEevaluated 36723 times by 7 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 2558 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_q