OpenCoverage

qquickrepeater.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickrepeater.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6QQuickRepeaterPrivate::QQuickRepeaterPrivate()-
7 : model(nullptr)-
8 , ownModel(false)-
9 , dataSourceIsObject(false)-
10 , delegateValidated(false)-
11 , itemCount(0)-
12{-
13 setTransparentForPositioner(true);-
14}
executed 1512 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
1512
15-
16QQuickRepeaterPrivate::~QQuickRepeaterPrivate()-
17{-
18 if (ownModel
ownModelDescription
TRUEevaluated 1486 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickrepeater
)
8-1486
19 delete model;
executed 1486 times by 16 tests: delete model;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
1486
20}
executed 1494 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
1494
21QQuickRepeater::QQuickRepeater(QQuickItem *parent)-
22 : QQuickItem(*(new QQuickRepeaterPrivate), parent)-
23{-
24}
executed 1512 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
1512
25-
26QQuickRepeater::~QQuickRepeater()-
27{-
28}-
29QVariant QQuickRepeater::model() const-
30{-
31 const QQuickRepeaterPrivate * const d = d_func();-
32-
33 if (d->dataSourceIsObject
d->dataSourceIsObjectDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 424 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
) {
10-424
34 QObject *o = d->dataSourceAsObject;-
35 return
executed 10 times by 1 test: return QVariant::fromValue(o);
Executed by:
  • tst_qquickrepeater
QVariant::fromValue(o);
executed 10 times by 1 test: return QVariant::fromValue(o);
Executed by:
  • tst_qquickrepeater
10
36 }-
37-
38 return
executed 424 times by 2 tests: return d->dataSource;
Executed by:
  • tst_examples
  • tst_qquicklistview
d->dataSource;
executed 424 times by 2 tests: return d->dataSource;
Executed by:
  • tst_examples
  • tst_qquicklistview
424
39}-
40-
41void QQuickRepeater::setModel(const QVariant &m)-
42{-
43 QQuickRepeaterPrivate * const d = d_func();-
44 QVariant model = m;-
45 if (model.userType() == qMetaTypeId<QJSValue>()
model.userType...Id<QJSValue>()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickrepeater
FALSEevaluated 1706 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
)
8-1706
46 model = model.value<QJSValue>().toVariant();
executed 8 times by 2 tests: model = model.value<QJSValue>().toVariant();
Executed by:
  • tst_examples
  • tst_qquickrepeater
8
47-
48 if (d->dataSource == model
d->dataSource == modelDescription
TRUEevaluated 964 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
FALSEevaluated 750 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
)
750-964
49 return;
executed 964 times by 2 tests: return;
Executed by:
  • tst_qquickpositioners
  • tst_qquickrepeater
964
50-
51 clear();-
52 if (d->model
d->modelDescription
TRUEevaluated 522 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 228 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) {
228-522
53 { QQmlInstanceModel *sender = (d->model); QQuickRepeater *receiver = (this); const char *signal = (qFlagLocation("2""modelUpdated(QQmlChangeSet,bool)" "\0" __FILE__ ":" "210")); const char *method = (qFlagLocation("1""modelUpdated(QQmlChangeSet,bool)" "\0" __FILE__ ":" "210")); static int signalIdx = -1; static int methodIdx = -1; if (signalIdx < 0
signalIdx < 0Description
TRUEevaluated 20 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 502 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
) { ((((int)(*signal) - '0') == 2) ? static_cast<void>(0) : qt_assert("((int)(*signal) - '0') == QSIGNAL_CODE",
20-502
54 __FILE__-
55 ,-
56 210-
57 )); signalIdx = QQmlInstanceModel::staticMetaObject.indexOfSignal(signal+1); }
executed 20 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
if (methodIdx < 0
methodIdx < 0Description
TRUEevaluated 20 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 502 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
) { int code = ((int)(*method) - '0'); ((code == 1 || code == 2) ? static_cast<void>(0) : qt_assert("code == QSLOT_CODE || code == QSIGNAL_CODE",
20-502
58 __FILE__-
59 ,-
60 210-
61 )); if (code == 1
code == 1Description
TRUEevaluated 20 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEnever evaluated
) methodIdx = QQuickRepeater::staticMetaObject.indexOfSlot(method+1);
executed 20 times by 10 tests: methodIdx = QQuickRepeater::staticMetaObject.indexOfSlot(method+1);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
else methodIdx = QQuickRepeater::staticMetaObject.indexOfSignal(method+1);
never executed: methodIdx = QQuickRepeater::staticMetaObject.indexOfSignal(method+1);
} ((signalIdx != -1 && methodIdx != -1) ? static_cast<void>(0) : qt_assert("signalIdx != -1 && methodIdx != -1",
0-20
62 __FILE__-
63 ,-
64 210-
65 )); QMetaObject::disconnect(sender, signalIdx, receiver, methodIdx); }-
66 ;-
67 { QQmlInstanceModel *sender = (d->model); QQuickRepeater *receiver = (this); const char *signal = (qFlagLocation("2""createdItem(int,QObject*)" "\0" __FILE__ ":" "212")); const char *method = (qFlagLocation("1""createdItem(int,QObject*)" "\0" __FILE__ ":" "212")); static int signalIdx = -1; static int methodIdx = -1; if (signalIdx < 0
signalIdx < 0Description
TRUEevaluated 20 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 502 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
) { ((((int)(*signal) - '0') == 2) ? static_cast<void>(0) : qt_assert("((int)(*signal) - '0') == QSIGNAL_CODE",
20-502
68 __FILE__-
69 ,-
70 212-
71 )); signalIdx = QQmlInstanceModel::staticMetaObject.indexOfSignal(signal+1); }
executed 20 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
if (methodIdx < 0
methodIdx < 0Description
TRUEevaluated 20 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 502 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
) { int code = ((int)(*method) - '0'); ((code == 1 || code == 2) ? static_cast<void>(0) : qt_assert("code == QSLOT_CODE || code == QSIGNAL_CODE",
20-502
72 __FILE__-
73 ,-
74 212-
75 )); if (code == 1
code == 1Description
TRUEevaluated 20 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEnever evaluated
) methodIdx = QQuickRepeater::staticMetaObject.indexOfSlot(method+1);
executed 20 times by 10 tests: methodIdx = QQuickRepeater::staticMetaObject.indexOfSlot(method+1);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
else methodIdx = QQuickRepeater::staticMetaObject.indexOfSignal(method+1);
never executed: methodIdx = QQuickRepeater::staticMetaObject.indexOfSignal(method+1);
} ((signalIdx != -1 && methodIdx != -1) ? static_cast<void>(0) : qt_assert("signalIdx != -1 && methodIdx != -1",
0-20
76 __FILE__-
77 ,-
78 212-
79 )); QMetaObject::disconnect(sender, signalIdx, receiver, methodIdx); }-
80 ;-
81 { QQmlInstanceModel *sender = (d->model); QQuickRepeater *receiver = (this); const char *signal = (qFlagLocation("2""initItem(int,QObject*)" "\0" __FILE__ ":" "214")); const char *method = (qFlagLocation("1""initItem(int,QObject*)" "\0" __FILE__ ":" "214")); static int signalIdx = -1; static int methodIdx = -1; if (signalIdx < 0
signalIdx < 0Description
TRUEevaluated 20 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 502 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
) { ((((int)(*signal) - '0') == 2) ? static_cast<void>(0) : qt_assert("((int)(*signal) - '0') == QSIGNAL_CODE",
20-502
82 __FILE__-
83 ,-
84 214-
85 )); signalIdx = QQmlInstanceModel::staticMetaObject.indexOfSignal(signal+1); }
executed 20 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
if (methodIdx < 0
methodIdx < 0Description
TRUEevaluated 20 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 502 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
) { int code = ((int)(*method) - '0'); ((code == 1 || code == 2) ? static_cast<void>(0) : qt_assert("code == QSLOT_CODE || code == QSIGNAL_CODE",
20-502
86 __FILE__-
87 ,-
88 214-
89 )); if (code == 1
code == 1Description
TRUEevaluated 20 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEnever evaluated
) methodIdx = QQuickRepeater::staticMetaObject.indexOfSlot(method+1);
executed 20 times by 10 tests: methodIdx = QQuickRepeater::staticMetaObject.indexOfSlot(method+1);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
else methodIdx = QQuickRepeater::staticMetaObject.indexOfSignal(method+1);
never executed: methodIdx = QQuickRepeater::staticMetaObject.indexOfSignal(method+1);
} ((signalIdx != -1 && methodIdx != -1) ? static_cast<void>(0) : qt_assert("signalIdx != -1 && methodIdx != -1",
0-20
90 __FILE__-
91 ,-
92 214-
93 )); QMetaObject::disconnect(sender, signalIdx, receiver, methodIdx); }-
94 ;-
95 }
executed 522 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
522
96 d->dataSource = model;-
97 QObject *object = qvariant_cast<QObject*>(model);-
98 d->dataSourceAsObject = object;-
99 d->dataSourceIsObject = object != nullptr;-
100 QQmlInstanceModel *vim = nullptr;-
101 if (object
objectDescription
TRUEevaluated 314 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 436 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
&& (
(vim = qobject...el *>(object))Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 302 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
vim = qobject_cast<QQmlInstanceModel *>(object))
(vim = qobject...el *>(object))Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 302 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
12-436
102 if (d->ownModel
d->ownModelDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickrepeater
) {
2-10
103 delete d->model;-
104 d->ownModel = false;-
105 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickrepeater
2
106 d->model = vim;-
107 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qquickrepeater
else {
12
108 if (!d->ownModel
!d->ownModelDescription
TRUEevaluated 222 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 516 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
) {
222-516
109 d->model = new QQmlDelegateModel(qmlContext(this));-
110 d->ownModel = true;-
111 if (isComponentComplete()
isComponentComplete()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 214 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
)
8-214
112 static_cast<
executed 8 times by 1 test: static_cast<QQmlDelegateModel *>(d->model.data())->componentComplete();
Executed by:
  • tst_qquickrepeater
QQmlDelegateModel *>(d->model.data())->componentComplete();
executed 8 times by 1 test: static_cast<QQmlDelegateModel *>(d->model.data())->componentComplete();
Executed by:
  • tst_qquickrepeater
8
113 }
executed 222 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
222
114 if (QQmlDelegateModel *dataModel = qobject_cast<QQmlDelegateModel*>(d->model)
QQmlDelegateMo...el*>(d->model)Description
TRUEevaluated 738 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
)
0-738
115 dataModel->setModel(model);
executed 738 times by 16 tests: dataModel->setModel(model);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
738
116 }
executed 738 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
738
117 if (d->model
d->modelDescription
TRUEevaluated 750 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
) {
0-750
118 { QQmlInstanceModel *sender = (d->model); QQuickRepeater *receiver = (this); const char *signal = (qFlagLocation("2""modelUpdated(QQmlChangeSet,bool)" "\0" __FILE__ ":" "239")); const char *method = (qFlagLocation("1""modelUpdated(QQmlChangeSet,bool)" "\0" __FILE__ ":" "239")); static int signalIdx = -1; static int methodIdx = -1; if (signalIdx < 0
signalIdx < 0Description
TRUEevaluated 32 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 718 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) { ((((int)(*signal) - '0') == 2) ? static_cast<void>(0) : qt_assert("((int)(*signal) - '0') == QSIGNAL_CODE",
32-718
119 __FILE__-
120 ,-
121 239-
122 )); signalIdx = QQmlInstanceModel::staticMetaObject.indexOfSignal(signal+1); }
executed 32 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
if (methodIdx < 0
methodIdx < 0Description
TRUEevaluated 32 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 718 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) { int code = ((int)(*method) - '0'); ((code == 1 || code == 2) ? static_cast<void>(0) : qt_assert("code == QSLOT_CODE || code == QSIGNAL_CODE",
32-718
123 __FILE__-
124 ,-
125 239-
126 )); if (code == 1
code == 1Description
TRUEevaluated 32 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
) methodIdx = QQuickRepeater::staticMetaObject.indexOfSlot(method+1);
executed 32 times by 16 tests: methodIdx = QQuickRepeater::staticMetaObject.indexOfSlot(method+1);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
else methodIdx = QQuickRepeater::staticMetaObject.indexOfSignal(method+1);
never executed: methodIdx = QQuickRepeater::staticMetaObject.indexOfSignal(method+1);
} ((signalIdx != -1 && methodIdx != -1) ? static_cast<void>(0) : qt_assert("signalIdx != -1 && methodIdx != -1",
0-32
127 __FILE__-
128 ,-
129 239-
130 )); QMetaObject::connect(sender, signalIdx, receiver, methodIdx, Qt::DirectConnection); }-
131 ;-
132 { QQmlInstanceModel *sender = (d->model); QQuickRepeater *receiver = (this); const char *signal = (qFlagLocation("2""createdItem(int,QObject*)" "\0" __FILE__ ":" "241")); const char *method = (qFlagLocation("1""createdItem(int,QObject*)" "\0" __FILE__ ":" "241")); static int signalIdx = -1; static int methodIdx = -1; if (signalIdx < 0
signalIdx < 0Description
TRUEevaluated 32 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 718 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) { ((((int)(*signal) - '0') == 2) ? static_cast<void>(0) : qt_assert("((int)(*signal) - '0') == QSIGNAL_CODE",
32-718
133 __FILE__-
134 ,-
135 241-
136 )); signalIdx = QQmlInstanceModel::staticMetaObject.indexOfSignal(signal+1); }
executed 32 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
if (methodIdx < 0
methodIdx < 0Description
TRUEevaluated 32 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 718 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) { int code = ((int)(*method) - '0'); ((code == 1 || code == 2) ? static_cast<void>(0) : qt_assert("code == QSLOT_CODE || code == QSIGNAL_CODE",
32-718
137 __FILE__-
138 ,-
139 241-
140 )); if (code == 1
code == 1Description
TRUEevaluated 32 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
) methodIdx = QQuickRepeater::staticMetaObject.indexOfSlot(method+1);
executed 32 times by 16 tests: methodIdx = QQuickRepeater::staticMetaObject.indexOfSlot(method+1);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
else methodIdx = QQuickRepeater::staticMetaObject.indexOfSignal(method+1);
never executed: methodIdx = QQuickRepeater::staticMetaObject.indexOfSignal(method+1);
} ((signalIdx != -1 && methodIdx != -1) ? static_cast<void>(0) : qt_assert("signalIdx != -1 && methodIdx != -1",
0-32
141 __FILE__-
142 ,-
143 241-
144 )); QMetaObject::connect(sender, signalIdx, receiver, methodIdx, Qt::DirectConnection); }-
145 ;-
146 { QQmlInstanceModel *sender = (d->model); QQuickRepeater *receiver = (this); const char *signal = (qFlagLocation("2""initItem(int,QObject*)" "\0" __FILE__ ":" "243")); const char *method = (qFlagLocation("1""initItem(int,QObject*)" "\0" __FILE__ ":" "243")); static int signalIdx = -1; static int methodIdx = -1; if (signalIdx < 0
signalIdx < 0Description
TRUEevaluated 32 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 718 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) { ((((int)(*signal) - '0') == 2) ? static_cast<void>(0) : qt_assert("((int)(*signal) - '0') == QSIGNAL_CODE",
32-718
147 __FILE__-
148 ,-
149 243-
150 )); signalIdx = QQmlInstanceModel::staticMetaObject.indexOfSignal(signal+1); }
executed 32 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
if (methodIdx < 0
methodIdx < 0Description
TRUEevaluated 32 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 718 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) { int code = ((int)(*method) - '0'); ((code == 1 || code == 2) ? static_cast<void>(0) : qt_assert("code == QSLOT_CODE || code == QSIGNAL_CODE",
32-718
151 __FILE__-
152 ,-
153 243-
154 )); if (code == 1
code == 1Description
TRUEevaluated 32 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
) methodIdx = QQuickRepeater::staticMetaObject.indexOfSlot(method+1);
executed 32 times by 16 tests: methodIdx = QQuickRepeater::staticMetaObject.indexOfSlot(method+1);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
else methodIdx = QQuickRepeater::staticMetaObject.indexOfSignal(method+1);
never executed: methodIdx = QQuickRepeater::staticMetaObject.indexOfSignal(method+1);
} ((signalIdx != -1 && methodIdx != -1) ? static_cast<void>(0) : qt_assert("signalIdx != -1 && methodIdx != -1",
0-32
155 __FILE__-
156 ,-
157 243-
158 )); QMetaObject::connect(sender, signalIdx, receiver, methodIdx, Qt::DirectConnection); }-
159 ;-
160 regenerate();-
161 }
executed 750 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
750
162 modelChanged();-
163 countChanged();-
164}
executed 750 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
750
165QQmlComponent *QQuickRepeater::delegate() const-
166{-
167 const QQuickRepeaterPrivate * const d = d_func();-
168 if (d->model
d->modelDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEnever evaluated
) {
0-2
169 if (QQmlDelegateModel *dataModel = qobject_cast<QQmlDelegateModel*>(d->model)
QQmlDelegateMo...el*>(d->model)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEnever evaluated
)
0-2
170 return
executed 2 times by 1 test: return dataModel->delegate();
Executed by:
  • tst_qquickrepeater
dataModel->delegate();
executed 2 times by 1 test: return dataModel->delegate();
Executed by:
  • tst_qquickrepeater
2
171 }
never executed: end of block
0
172-
173 return
never executed: return nullptr;
nullptr;
never executed: return nullptr;
0
174}-
175-
176void QQuickRepeater::setDelegate(QQmlComponent *delegate)-
177{-
178 QQuickRepeaterPrivate * const d = d_func();-
179 if (QQmlDelegateModel *dataModel = qobject_cast<QQmlDelegateModel*>(d->model)
QQmlDelegateMo...el*>(d->model)Description
TRUEevaluated 220 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 1284 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
)
220-1284
180 if (delegate
delegate == da...el->delegate()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 218 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
== dataModel->delegate()
delegate == da...el->delegate()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 218 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
)
2-218
181 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickrepeater
2
182-
183 if (!d->ownModel
!d->ownModelDescription
TRUEevaluated 1284 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 218 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) {
218-1284
184 d->model = new QQmlDelegateModel(qmlContext(this));-
185 d->ownModel = true;-
186 }
executed 1284 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
1284
187-
188 if (QQmlDelegateModel *dataModel = qobject_cast<QQmlDelegateModel*>(d->model)
QQmlDelegateMo...el*>(d->model)Description
TRUEevaluated 1502 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
) {
0-1502
189 dataModel->setDelegate(delegate);-
190 regenerate();-
191 delegateChanged();-
192 d->delegateValidated = false;-
193 }
executed 1502 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
1502
194}
executed 1502 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
1502
195int QQuickRepeater::count() const-
196{-
197 const QQuickRepeaterPrivate * const d = d_func();-
198 if (d->model
d->modelDescription
TRUEevaluated 742 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
)
0-742
199 return
executed 742 times by 16 tests: return d->model->count();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
d->model->count();
executed 742 times by 16 tests: return d->model->count();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
742
200 return
never executed: return 0;
0;
never executed: return 0;
0
201}-
202-
203-
204-
205-
206-
207-
208-
209QQuickItem *QQuickRepeater::itemAt(int index) const-
210{-
211 const QQuickRepeaterPrivate * const d = d_func();-
212 if (index >= 0
index >= 0Description
TRUEevaluated 454 times by 2 tests
Evaluated by:
  • tst_qquickdraghandler
  • tst_qquickrepeater
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickrepeater
&& index < d->deletables.count()
index < d->deletables.count()Description
TRUEevaluated 444 times by 2 tests
Evaluated by:
  • tst_qquickdraghandler
  • tst_qquickrepeater
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickrepeater
)
4-454
213 return
executed 444 times by 2 tests: return d->deletables[index];
Executed by:
  • tst_qquickdraghandler
  • tst_qquickrepeater
d->deletables[index];
executed 444 times by 2 tests: return d->deletables[index];
Executed by:
  • tst_qquickdraghandler
  • tst_qquickrepeater
444
214 return
executed 14 times by 1 test: return nullptr;
Executed by:
  • tst_qquickrepeater
nullptr;
executed 14 times by 1 test: return nullptr;
Executed by:
  • tst_qquickrepeater
14
215}-
216-
217void QQuickRepeater::componentComplete()-
218{-
219 QQuickRepeaterPrivate * const d = d_func();-
220 if (d->model && d->ownModel
d->ownModelDescription
TRUEevaluated 1498 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickrepeater
)
8-1498
221 static_cast<
executed 1498 times by 16 tests: static_cast<QQmlDelegateModel *>(d->model.data())->componentComplete();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
QQmlDelegateModel *>(d->model.data())->componentComplete();
executed 1498 times by 16 tests: static_cast<QQmlDelegateModel *>(d->model.data())->componentComplete();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
1498
222 QQuickItem::componentComplete();-
223 regenerate();-
224 if (d->model && d->model->count()
d->model->count()Description
TRUEevaluated 308 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 1198 times by 4 tests
Evaluated by:
  • tst_qquickitem2
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
)
308-1198
225 countChanged();
executed 308 times by 15 tests: countChanged();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
308
226}
executed 1512 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
1512
227-
228void QQuickRepeater::itemChange(ItemChange change, const ItemChangeData &value)-
229{-
230 QQuickItem::itemChange(change, value);-
231 if (change == ItemParentHasChanged
change == ItemParentHasChangedDescription
TRUEevaluated 2998 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 2918 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) {
2918-2998
232 regenerate();-
233 }
executed 2998 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
2998
234}
executed 5916 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
5916
235-
236void QQuickRepeater::clear()-
237{-
238 QQuickRepeaterPrivate * const d = d_func();-
239 bool complete = isComponentComplete();-
240-
241 if (d->model
d->modelDescription
TRUEevaluated 3928 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 236 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) {
236-3928
242-
243-
244 for (int i = d->deletables.count() - 1; i >= 0
i >= 0Description
TRUEevaluated 8984 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 3928 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
; --i) {
3928-8984
245 if (QQuickItem *item = d->deletables.at(i)
QQuickItem *it...letables.at(i)Description
TRUEevaluated 8984 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
) {
0-8984
246 if (complete
completeDescription
TRUEevaluated 8984 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
)
0-8984
247 itemRemoved(i, item);
executed 8984 times by 16 tests: itemRemoved(i, item);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
8984
248 d->model->release(item);-
249 }
executed 8984 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
8984
250 }
executed 8984 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
8984
251 for (QQuickItem *item : qAsConst(d->deletables)) {-
252 if (item
itemDescription
TRUEevaluated 8984 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
)
0-8984
253 item->setParentItem(nullptr);
executed 8984 times by 16 tests: item->setParentItem(nullptr);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
8984
254 }
executed 8984 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
8984
255 }
executed 3928 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
3928
256 d->deletables.clear();-
257 d->itemCount = 0;-
258}
executed 4164 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
4164
259-
260void QQuickRepeater::regenerate()-
261{-
262 QQuickRepeaterPrivate * const d = d_func();-
263 if (!isComponentComplete()
!isComponentComplete()Description
TRUEevaluated 3358 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 3414 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
)
3358-3414
264 return;
executed 3358 times by 16 tests: return;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
3358
265-
266 clear();-
267-
268 if (!d->model
!d->modelDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 3406 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
|| !d->model->count()
!d->model->count()Description
TRUEevaluated 2180 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
FALSEevaluated 1226 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
|| !d->model->isValid()
!d->model->isValid()Description
TRUEnever evaluated
FALSEevaluated 1226 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
|| !parentItem()
!parentItem()Description
TRUEevaluated 632 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 594 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
|| !isComponentComplete()
!isComponentComplete()Description
TRUEnever evaluated
FALSEevaluated 594 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
)
0-3406
269 return;
executed 2820 times by 16 tests: return;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
2820
270-
271 d->itemCount = count();-
272 d->deletables.resize(d->itemCount);-
273 d->requestItems();-
274}
executed 594 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
594
275-
276void QQuickRepeaterPrivate::requestItems()-
277{-
278 for (int i = 0; i < itemCount
i < itemCountDescription
TRUEevaluated 7052 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 594 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
; i++) {
594-7052
279 QObject *object = model->object(i, QQmlIncubator::AsynchronousIfNested);-
280 if (object
objectDescription
TRUEevaluated 6992 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 60 times by 1 test
Evaluated by:
  • tst_qquickrepeater
)
60-6992
281 model->release(object);
executed 6992 times by 16 tests: model->release(object);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
6992
282 }
executed 7052 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
7052
283}
executed 594 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
594
284-
285void QQuickRepeater::createdItem(int index, QObject *)-
286{-
287 QQuickRepeaterPrivate * const d = d_func();-
288 QObject *object = d->model->object(index, QQmlIncubator::AsynchronousIfNested);-
289 QQuickItem *item = qmlobject_cast<QQuickItem*>(object);-
290 itemAdded(index, item);-
291}
executed 9258 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
9258
292-
293void QQuickRepeater::initItem(int index, QObject *object)-
294{-
295 QQuickRepeaterPrivate * const d = d_func();-
296 QQuickItem *item = qmlobject_cast<QQuickItem*>(object);-
297-
298 if (!d->deletables.at(index)
!d->deletables.at(index)Description
TRUEevaluated 9258 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEnever evaluated
) {
0-9258
299 if (!item
!itemDescription
TRUEnever evaluated
FALSEevaluated 9258 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) {
0-9258
300 if (object
objectDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
301 d->model->release(object);-
302 if (!d->delegateValidated
!d->delegateValidatedDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
303 d->delegateValidated = true;-
304 QObject* delegate = this->delegate();-
305 qmlWarning(delegate ? delegate : this) << QQuickRepeater::tr("Delegate must be of Item type");-
306 }
never executed: end of block
0
307 }
never executed: end of block
0
308 return;
never executed: return;
0
309 }-
310 d->deletables[index] = item;-
311 item->setParentItem(parentItem());-
312 if (index > 0
index > 0Description
TRUEevaluated 8428 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 830 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
&& d->deletables.at(index-1)) {
830-8428
313 item->stackAfter(d->deletables.at(index-1));-
314 }
executed 8382 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
else {
8382
315 QQuickItem *after = this;-
316 for (int si = index+1; si < d->itemCount
si < d->itemCountDescription
TRUEevaluated 6556 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 730 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
; ++si) {
730-6556
317 if (d->deletables.at(si)
d->deletables.at(si)Description
TRUEevaluated 146 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
FALSEevaluated 6410 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) {
146-6410
318 after = d->deletables.at(si);-
319 break;
executed 146 times by 2 tests: break;
Executed by:
  • tst_qquickpositioners
  • tst_qquickrepeater
146
320 }-
321 }
executed 6410 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
6410
322 item->stackBefore(after);-
323 }
executed 876 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
876
324 }-
325}
executed 9258 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
9258
326-
327void QQuickRepeater::modelUpdated(const QQmlChangeSet &changeSet, bool reset)-
328{-
329 QQuickRepeaterPrivate * const d = d_func();-
330-
331 if (!isComponentComplete()
!isComponentComplete()Description
TRUEevaluated 692 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 2238 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
)
692-2238
332 return;
executed 692 times by 15 tests: return;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
692
333-
334 if (reset
resetDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 2228 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
) {
10-2228
335 regenerate();-
336 if (changeSet.difference() != 0
changeSet.difference() != 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickrepeater
)
2-8
337 countChanged();
executed 8 times by 1 test: countChanged();
Executed by:
  • tst_qquickrepeater
8
338 return;
executed 10 times by 1 test: return;
Executed by:
  • tst_qquickrepeater
10
339 }-
340-
341 int difference = 0;-
342 QHash<int, QVector<QPointer<QQuickItem> > > moved;-
343 for (const QQmlChangeSet::Change &remove : changeSet.removes()) {-
344 int index = qMin(remove.index, d->deletables.count());-
345 int count = qMin(remove.index + remove.count, d->deletables.count()) - index;-
346 if (remove.isMove()
remove.isMove()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 110 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
) {
14-110
347 moved.insert(remove.moveId, d->deletables.mid(index, count));-
348 d->deletables.erase(-
349 d->deletables.begin() + index,-
350 d->deletables.begin() + index + count);-
351 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_qquickrepeater
else while (count--
count--Description
TRUEevaluated 216 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
FALSEevaluated 110 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
) {
14-216
352 QQuickItem *item = d->deletables.at(index);-
353 d->deletables.remove(index);-
354 itemRemoved(index, item);-
355 if (item
itemDescription
TRUEevaluated 216 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
FALSEnever evaluated
) {
0-216
356 d->model->release(item);-
357 item->setParentItem(nullptr);-
358 }
executed 216 times by 2 tests: end of block
Executed by:
  • tst_qquickpositioners
  • tst_qquickrepeater
216
359 --d->itemCount;-
360 }
executed 216 times by 2 tests: end of block
Executed by:
  • tst_qquickpositioners
  • tst_qquickrepeater
216
361-
362 difference -= remove.count;-
363 }
executed 124 times by 2 tests: end of block
Executed by:
  • tst_qquickpositioners
  • tst_qquickrepeater
124
364-
365 for (const QQmlChangeSet::Change &insert : changeSet.inserts()) {-
366 int index = qMin(insert.index, d->deletables.count());-
367 if (insert.isMove()
insert.isMove()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 2102 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
) {
14-2102
368 QVector<QPointer<QQuickItem> > items = moved.value(insert.moveId);-
369 d->deletables = d->deletables.mid(0, index) + items + d->deletables.mid(index);-
370 QQuickItem *stackBefore = index + items.count() < d->deletables.count()
index + items....tables.count()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickrepeater
2-12
371 ? d->deletables.at(index + items.count())-
372 : this;-
373 if (stackBefore
stackBeforeDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickrepeater
) {
6-8
374 for (int i = index; i < index + items.count()
i < index + items.count()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickrepeater
; ++i) {
8-12
375 if (i < d->deletables.count()
i < d->deletables.count()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEnever evaluated
) {
0-12
376 QPointer<QQuickItem> item = d->deletables.at(i);-
377 if (item
itemDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickrepeater
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickrepeater
)
4-8
378 item->stackBefore(stackBefore);
executed 8 times by 1 test: item->stackBefore(stackBefore);
Executed by:
  • tst_qquickrepeater
8
379 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qquickrepeater
12
380 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qquickrepeater
12
381 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qquickrepeater
8
382 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_qquickrepeater
else for (int i = 0; i < insert.count
i < insert.countDescription
TRUEevaluated 2206 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
FALSEevaluated 2102 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
; ++i) {
14-2206
383 int modelIndex = index + i;-
384 ++d->itemCount;-
385 d->deletables.insert(modelIndex, nullptr);-
386 QObject *object = d->model->object(modelIndex, QQmlIncubator::AsynchronousIfNested);-
387 if (object
objectDescription
TRUEevaluated 2206 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
FALSEnever evaluated
)
0-2206
388 d->model->release(object);
executed 2206 times by 2 tests: d->model->release(object);
Executed by:
  • tst_qquickpositioners
  • tst_qquickrepeater
2206
389 }
executed 2206 times by 2 tests: end of block
Executed by:
  • tst_qquickpositioners
  • tst_qquickrepeater
2206
390 difference += insert.count;-
391 }
executed 2116 times by 2 tests: end of block
Executed by:
  • tst_qquickpositioners
  • tst_qquickrepeater
2116
392-
393 if (difference != 0
difference != 0Description
TRUEevaluated 2208 times by 2 tests
Evaluated by:
  • tst_qquickpositioners
  • tst_qquickrepeater
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_qquickrepeater
)
20-2208
394 countChanged();
executed 2208 times by 2 tests: countChanged();
Executed by:
  • tst_qquickpositioners
  • tst_qquickrepeater
2208
395}
executed 2228 times by 2 tests: end of block
Executed by:
  • tst_qquickpositioners
  • tst_qquickrepeater
2228
396-
397-
398-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0