| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | const QLoggingCategory &lcItemViewDelegateLifecycle() { static const QLoggingCategory category("qt.quick.itemview.lifecycle"); returnexecuted 133888 times by 12 tests: return category;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
category;executed 133888 times by 12 tests: return category;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
} | 133888 |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | FxViewItem::FxViewItem(QQuickItem *i, QQuickItemView *v, bool own, QQuickItemViewAttached *attached) | - |
| 14 | : QQuickItemViewFxItem(i, own, QQuickItemViewPrivate::get(v)) | - |
| 15 | , view(v) | - |
| 16 | , attached(attached) | - |
| 17 | { | - |
| 18 | if (attached| TRUE | evaluated 87958 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) | 0-87958 |
| 19 | attached->setView(view);executed 87958 times by 11 tests: attached->setView(view);Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 87958 |
| 20 | }executed 87958 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 87958 |
| 21 | | - |
| 22 | QQuickItemViewChangeSet::QQuickItemViewChangeSet() | - |
| 23 | : active(false) | - |
| 24 | { | - |
| 25 | reset(); | - |
| 26 | }executed 7404 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 7404 |
| 27 | | - |
| 28 | bool QQuickItemViewChangeSet::hasPendingChanges() const | - |
| 29 | { | - |
| 30 | returnexecuted 242124 times by 12 tests: return !pendingChanges.isEmpty();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
!pendingChanges.isEmpty();executed 242124 times by 12 tests: return !pendingChanges.isEmpty();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 242124 |
| 31 | } | - |
| 32 | | - |
| 33 | void QQuickItemViewChangeSet::applyChanges(const QQmlChangeSet &changeSet) | - |
| 34 | { | - |
| 35 | pendingChanges.apply(changeSet); | - |
| 36 | | - |
| 37 | int moveId = -1; | - |
| 38 | int moveOffset = 0; | - |
| 39 | | - |
| 40 | for (const QQmlChangeSet::Change &r : changeSet.removes()) { | - |
| 41 | itemCount -= r.count; | - |
| 42 | if (moveId == -1| TRUE | evaluated 3398 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 38 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& newCurrentIndex >= r.index + r.count| TRUE | evaluated 288 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3110 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 38-3398 |
| 43 | newCurrentIndex -= r.count; | - |
| 44 | currentChanged = true; | - |
| 45 | }executed 288 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
else if (moveId == -1| TRUE | evaluated 3110 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 38 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& newCurrentIndex >= r.index| TRUE | evaluated 1405 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1705 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& newCurrentIndex < r.index + r.count| TRUE | evaluated 1405 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-3110 |
| 46 | | - |
| 47 | if (r.isMove()| TRUE | evaluated 252 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1153 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 252-1153 |
| 48 | moveId = r.moveId; | - |
| 49 | moveOffset = newCurrentIndex - r.index; | - |
| 50 | }executed 252 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
else { | 252 |
| 51 | currentRemoved = true; | - |
| 52 | newCurrentIndex = -1; | - |
| 53 | if (itemCount| TRUE | evaluated 1007 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 146 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 146-1007 |
| 54 | newCurrentIndex = qMin(r.index, itemCount - 1);executed 1007 times by 3 tests: newCurrentIndex = qMin(r.index, itemCount - 1);Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 1007 |
| 55 | }executed 1153 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 1153 |
| 56 | currentChanged = true; | - |
| 57 | }executed 1405 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 1405 |
| 58 | }executed 3436 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 3436 |
| 59 | for (const QQmlChangeSet::Change &i : changeSet.inserts()) { | - |
| 60 | if (moveId == -1| TRUE | evaluated 10192 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 298 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 298-10192 |
| 61 | if (itemCount| TRUE | evaluated 6446 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3746 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& newCurrentIndex >= i.index| TRUE | evaluated 870 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 5576 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 870-6446 |
| 62 | newCurrentIndex += i.count; | - |
| 63 | currentChanged = true; | - |
| 64 | }executed 870 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
else if (newCurrentIndex < 0| TRUE | evaluated 3722 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 5600 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 870-5600 |
| 65 | newCurrentIndex = 0; | - |
| 66 | currentChanged = true; | - |
| 67 | }executed 3722 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
else if (newCurrentIndex == 0| TRUE | evaluated 5244 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 356 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& !itemCount| TRUE | evaluated 20 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 5224 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 20-5244 |
| 68 | | - |
| 69 | currentChanged = true; | - |
| 70 | }executed 20 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 20 |
| 71 | }executed 10192 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
else if (moveId == i.moveId| TRUE | evaluated 252 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 46 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 46-10192 |
| 72 | newCurrentIndex = i.index + moveOffset; | - |
| 73 | }executed 252 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 252 |
| 74 | itemCount += i.count; | - |
| 75 | }executed 10490 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 10490 |
| 76 | }executed 16876 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 16876 |
| 77 | | - |
| 78 | void QQuickItemViewChangeSet::applyBufferedChanges(const QQuickItemViewChangeSet &other) | - |
| 79 | { | - |
| 80 | if (!other.hasPendingChanges()| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
| 81 | return; never executed: return; | 0 |
| 82 | | - |
| 83 | pendingChanges.apply(other.pendingChanges); | - |
| 84 | itemCount = other.itemCount; | - |
| 85 | newCurrentIndex = other.newCurrentIndex; | - |
| 86 | currentChanged = other.currentChanged; | - |
| 87 | currentRemoved = other.currentRemoved; | - |
| 88 | }executed 2 times by 1 test: end of block | 2 |
| 89 | | - |
| 90 | void QQuickItemViewChangeSet::prepare(int currentIndex, int count) | - |
| 91 | { | - |
| 92 | if (active| TRUE | evaluated 9124 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 7752 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 7752-9124 |
| 93 | return;executed 9124 times by 11 tests: return;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 9124 |
| 94 | reset(); | - |
| 95 | active = true; | - |
| 96 | itemCount = count; | - |
| 97 | newCurrentIndex = currentIndex; | - |
| 98 | }executed 7752 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 7752 |
| 99 | | - |
| 100 | void QQuickItemViewChangeSet::reset() | - |
| 101 | { | - |
| 102 | itemCount = 0; | - |
| 103 | newCurrentIndex = -1; | - |
| 104 | pendingChanges.clear(); | - |
| 105 | removedItems.clear(); | - |
| 106 | active = false; | - |
| 107 | currentChanged = false; | - |
| 108 | currentRemoved = false; | - |
| 109 | }executed 41781 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 41781 |
| 110 | | - |
| 111 | | - |
| 112 | | - |
| 113 | QQuickItemView::QQuickItemView(QQuickFlickablePrivate &dd, QQuickItem *parent) | - |
| 114 | : QQuickFlickable(dd, parent) | - |
| 115 | { | - |
| 116 | QQuickItemViewPrivate * const d = d_func(); | - |
| 117 | d->init(); | - |
| 118 | }executed 3702 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3702 |
| 119 | | - |
| 120 | QQuickItemView::~QQuickItemView() | - |
| 121 | { | - |
| 122 | QQuickItemViewPrivate * const d = d_func(); | - |
| 123 | d->clear(); | - |
| 124 | if (d->ownModel| TRUE | evaluated 2972 times by 10 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 722 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 722-2972 |
| 125 | delete d->model;executed 2972 times by 10 tests: delete d->model;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 2972 |
| 126 | delete d->header; | - |
| 127 | delete d->footer; | - |
| 128 | }executed 3694 times by 10 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3694 |
| 129 | | - |
| 130 | | - |
| 131 | QQuickItem *QQuickItemView::currentItem() const | - |
| 132 | { | - |
| 133 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 134 | returnexecuted 3744 times by 3 tests: return d->currentItem ? d->currentItem->item : nullptr;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
d->currentItem ? d->currentItem->item : nullptr;executed 3744 times by 3 tests: return d->currentItem ? d->currentItem->item : nullptr;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 3744 |
| 135 | } | - |
| 136 | | - |
| 137 | QVariant QQuickItemView::model() const | - |
| 138 | { | - |
| 139 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 140 | returnexecuted 1030 times by 5 tests: return d->modelVariant;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
d->modelVariant;executed 1030 times by 5 tests: return d->modelVariant;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 1030 |
| 141 | } | - |
| 142 | | - |
| 143 | void QQuickItemView::setModel(const QVariant &m) | - |
| 144 | { | - |
| 145 | QQuickItemViewPrivate * const d = d_func(); | - |
| 146 | QVariant model = m; | - |
| 147 | if (model.userType() == qMetaTypeId<QJSValue>()| TRUE | evaluated 18 times by 4 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 3766 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 18-3766 |
| 148 | model = model.value<QJSValue>().toVariant();executed 18 times by 4 tests: model = model.value<QJSValue>().toVariant();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
| 18 |
| 149 | | - |
| 150 | if (d->modelVariant == model| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 3776 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 8-3776 |
| 151 | return;executed 8 times by 2 tests: return;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 8 |
| 152 | if (d->model| TRUE | evaluated 622 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3154 times by 8 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 622-3154 |
| 153 | disconnect(d->model, qFlagLocation("2""modelUpdated(QQmlChangeSet,bool)" "\0" __FILE__ ":" "195"), | - |
| 154 | this, qFlagLocation("1""modelUpdated(QQmlChangeSet,bool)" "\0" __FILE__ ":" "196")); | - |
| 155 | disconnect(d->model, qFlagLocation("2""initItem(int,QObject*)" "\0" __FILE__ ":" "197"), this, qFlagLocation("1""initItem(int,QObject*)" "\0" __FILE__ ":" "197")); | - |
| 156 | disconnect(d->model, qFlagLocation("2""createdItem(int,QObject*)" "\0" __FILE__ ":" "198"), this, qFlagLocation("1""createdItem(int,QObject*)" "\0" __FILE__ ":" "198")); | - |
| 157 | disconnect(d->model, qFlagLocation("2""destroyingItem(QObject*)" "\0" __FILE__ ":" "199"), this, qFlagLocation("1""destroyingItem(QObject*)" "\0" __FILE__ ":" "199")); | - |
| 158 | }executed 622 times by 10 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 622 |
| 159 | | - |
| 160 | QQmlInstanceModel *oldModel = d->model; | - |
| 161 | | - |
| 162 | d->clear(); | - |
| 163 | d->model = nullptr; | - |
| 164 | d->setPosition(d->contentStartOffset()); | - |
| 165 | d->modelVariant = model; | - |
| 166 | | - |
| 167 | QObject *object = qvariant_cast<QObject*>(model); | - |
| 168 | QQmlInstanceModel *vim = nullptr; | - |
| 169 | if (object| TRUE | evaluated 3516 times by 7 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 260 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
&& (| TRUE | evaluated 720 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2796 times by 7 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
vim = qobject_cast<QQmlInstanceModel *>(object))| TRUE | evaluated 720 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2796 times by 7 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 260-3516 |
| 170 | if (d->ownModel| TRUE | never evaluated | | FALSE | evaluated 720 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 0-720 |
| 171 | delete oldModel; | - |
| 172 | d->ownModel = false; | - |
| 173 | } never executed: end of block | 0 |
| 174 | d->model = vim; | - |
| 175 | }executed 720 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
else { | 720 |
| 176 | if (!d->ownModel| TRUE | evaluated 2434 times by 7 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
| | FALSE | evaluated 622 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 622-2434 |
| 177 | d->model = new QQmlDelegateModel(qmlContext(this), this); | - |
| 178 | d->ownModel = true; | - |
| 179 | if (isComponentComplete()| TRUE | evaluated 6 times by 3 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2428 times by 6 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
|
) | 6-2428 |
| 180 | static_cast<executed 6 times by 3 tests: static_cast<QQmlDelegateModel *>(d->model.data())->componentComplete();Executed by:- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
QQmlDelegateModel *>(d->model.data())->componentComplete();executed 6 times by 3 tests: static_cast<QQmlDelegateModel *>(d->model.data())->componentComplete();Executed by:- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
| 6 |
| 181 | }executed 2434 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
else { | 2434 |
| 182 | d->model = oldModel; | - |
| 183 | }executed 622 times by 10 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 622 |
| 184 | if (QQmlDelegateModel *dataModel = qobject_cast<QQmlDelegateModel*>(d->model)| TRUE | evaluated 3056 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) | 0-3056 |
| 185 | dataModel->setModel(model);executed 3056 times by 12 tests: dataModel->setModel(model);Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3056 |
| 186 | }executed 3056 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3056 |
| 187 | | - |
| 188 | if (d->model| TRUE | evaluated 3776 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-3776 |
| 189 | d->bufferMode = QQuickItemViewPrivate::BufferBefore | QQuickItemViewPrivate::BufferAfter; | - |
| 190 | connect(d->model, qFlagLocation("2""createdItem(int,QObject*)" "\0" __FILE__ ":" "232"), this, qFlagLocation("1""createdItem(int,QObject*)" "\0" __FILE__ ":" "232")); | - |
| 191 | connect(d->model, qFlagLocation("2""initItem(int,QObject*)" "\0" __FILE__ ":" "233"), this, qFlagLocation("1""initItem(int,QObject*)" "\0" __FILE__ ":" "233")); | - |
| 192 | connect(d->model, qFlagLocation("2""destroyingItem(QObject*)" "\0" __FILE__ ":" "234"), this, qFlagLocation("1""destroyingItem(QObject*)" "\0" __FILE__ ":" "234")); | - |
| 193 | if (isComponentComplete()| TRUE | evaluated 98 times by 3 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 3678 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 98-3678 |
| 194 | d->updateSectionCriteria(); | - |
| 195 | d->refill(); | - |
| 196 | d->currentIndex = -1; | - |
| 197 | setCurrentIndex(d->model->count() > 0 ? 0 : -1); | - |
| 198 | d->updateViewport(); | - |
| 199 | | - |
| 200 | if (d->transitioner| TRUE | evaluated 48 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 50 times by 3 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
|
&& d->transitioner->populateTransition) { | 48-50 |
| 201 | d->transitioner->setPopulateTransitionEnabled(true); | - |
| 202 | d->forceLayoutPolish(); | - |
| 203 | }executed 24 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 24 |
| 204 | }executed 98 times by 3 tests: end of blockExecuted by:- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
| 98 |
| 205 | | - |
| 206 | connect(d->model, qFlagLocation("2""modelUpdated(QQmlChangeSet,bool)" "\0" __FILE__ ":" "248"), | - |
| 207 | this, qFlagLocation("1""modelUpdated(QQmlChangeSet,bool)" "\0" __FILE__ ":" "249")); | - |
| 208 | countChanged(); | - |
| 209 | }executed 3776 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3776 |
| 210 | modelChanged(); | - |
| 211 | }executed 3776 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3776 |
| 212 | | - |
| 213 | QQmlComponent *QQuickItemView::delegate() const | - |
| 214 | { | - |
| 215 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 216 | if (d->model| TRUE | evaluated 2488 times by 6 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
| | FALSE | evaluated 552 times by 9 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 552-2488 |
| 217 | if (QQmlDelegateModel *dataModel = qobject_cast<QQmlDelegateModel*>(d->model)| TRUE | evaluated 2488 times by 6 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
| | FALSE | never evaluated |
) | 0-2488 |
| 218 | returnexecuted 2488 times by 6 tests: return dataModel->delegate();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
dataModel->delegate();executed 2488 times by 6 tests: return dataModel->delegate();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
| 2488 |
| 219 | } never executed: end of block | 0 |
| 220 | | - |
| 221 | returnexecuted 552 times by 9 tests: return nullptr;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
nullptr;executed 552 times by 9 tests: return nullptr;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 552 |
| 222 | } | - |
| 223 | | - |
| 224 | void QQuickItemView::setDelegate(QQmlComponent *delegate) | - |
| 225 | { | - |
| 226 | QQuickItemViewPrivate * const d = d_func(); | - |
| 227 | if (delegate| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2978 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
== this->delegate()| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2978 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 4-2978 |
| 228 | return;executed 4 times by 2 tests: return;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 4 |
| 229 | if (!d->ownModel| TRUE | evaluated 544 times by 9 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2434 times by 6 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
|
) { | 544-2434 |
| 230 | d->model = new QQmlDelegateModel(qmlContext(this)); | - |
| 231 | d->ownModel = true; | - |
| 232 | if (isComponentComplete()| TRUE | never evaluated | | FALSE | evaluated 544 times by 9 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 0-544 |
| 233 | static_cast< never executed: static_cast<QQmlDelegateModel *>(d->model.data())->componentComplete(); QQmlDelegateModel *>(d->model.data())->componentComplete();never executed: static_cast<QQmlDelegateModel *>(d->model.data())->componentComplete(); | 0 |
| 234 | }executed 544 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 544 |
| 235 | if (QQmlDelegateModel *dataModel = qobject_cast<QQmlDelegateModel*>(d->model)| TRUE | evaluated 2978 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-2978 |
| 236 | int oldCount = dataModel->count(); | - |
| 237 | dataModel->setDelegate(delegate); | - |
| 238 | if (isComponentComplete()| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2972 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 6-2972 |
| 239 | d->releaseVisibleItems(); | - |
| 240 | d->releaseItem(d->currentItem); | - |
| 241 | d->currentItem = nullptr; | - |
| 242 | d->updateSectionCriteria(); | - |
| 243 | d->refill(); | - |
| 244 | d->moveReason = QQuickItemViewPrivate::SetIndex; | - |
| 245 | d->updateCurrent(d->currentIndex); | - |
| 246 | if (d->highlight| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
&& d->currentItem| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-6 |
| 247 | if (d->autoHighlight| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) | 0-6 |
| 248 | d->resetHighlightPosition();executed 6 times by 2 tests: d->resetHighlightPosition();Executed by:- tst_qquickgridview
- tst_qquicklistview
| 6 |
| 249 | d->updateTrackedItem(); | - |
| 250 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 6 |
| 251 | d->moveReason = QQuickItemViewPrivate::Other; | - |
| 252 | d->updateViewport(); | - |
| 253 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 6 |
| 254 | if (oldCount != dataModel->count()| TRUE | never evaluated | | FALSE | evaluated 2978 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 0-2978 |
| 255 | countChanged(); never executed: countChanged(); | 0 |
| 256 | }executed 2978 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 2978 |
| 257 | delegateChanged(); | - |
| 258 | d->delegateValidated = false; | - |
| 259 | }executed 2978 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 2978 |
| 260 | | - |
| 261 | | - |
| 262 | int QQuickItemView::count() const | - |
| 263 | { | - |
| 264 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 265 | if (!d->model| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 11725 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 8-11725 |
| 266 | returnexecuted 8 times by 1 test: return 0; 0;executed 8 times by 1 test: return 0; | 8 |
| 267 | returnexecuted 11725 times by 4 tests: return d->model->count();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
d->model->count();executed 11725 times by 4 tests: return d->model->count();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 11725 |
| 268 | } | - |
| 269 | | - |
| 270 | int QQuickItemView::currentIndex() const | - |
| 271 | { | - |
| 272 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 273 | returnexecuted 3670 times by 5 tests: return d->currentIndex;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
d->currentIndex;executed 3670 times by 5 tests: return d->currentIndex;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 3670 |
| 274 | } | - |
| 275 | | - |
| 276 | void QQuickItemView::setCurrentIndex(int index) | - |
| 277 | { | - |
| 278 | QQuickItemViewPrivate * const d = d_func(); | - |
| 279 | if (d->inRequest| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 744 times by 6 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) | 2-744 |
| 280 | return;executed 2 times by 1 test: return; | 2 |
| 281 | d->currentIndexCleared = (index == -1); | - |
| 282 | | - |
| 283 | d->applyPendingChanges(); | - |
| 284 | if (index == d->currentIndex| TRUE | evaluated 82 times by 4 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
| | FALSE | evaluated 662 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 82-662 |
| 285 | return;executed 82 times by 4 tests: return;Executed by:- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
| 82 |
| 286 | if (isComponentComplete()| TRUE | evaluated 634 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 28 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
&& d->isValid()| TRUE | evaluated 630 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 4 times by 1 test |
) { | 4-634 |
| 287 | d->moveReason = QQuickItemViewPrivate::SetIndex; | - |
| 288 | d->updateCurrent(index); | - |
| 289 | }executed 630 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
else if (d->currentIndex != index| TRUE | evaluated 32 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-630 |
| 290 | d->currentIndex = index; | - |
| 291 | currentIndexChanged(); | - |
| 292 | }executed 32 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 32 |
| 293 | }executed 662 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 662 |
| 294 | | - |
| 295 | | - |
| 296 | bool QQuickItemView::isWrapEnabled() const | - |
| 297 | { | - |
| 298 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 299 | returnexecuted 56 times by 2 tests: return d->wrap;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->wrap;executed 56 times by 2 tests: return d->wrap;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 56 |
| 300 | } | - |
| 301 | | - |
| 302 | void QQuickItemView::setWrapEnabled(bool wrap) | - |
| 303 | { | - |
| 304 | QQuickItemViewPrivate * const d = d_func(); | - |
| 305 | if (d->wrap == wrap| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 22 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 8-22 |
| 306 | return;executed 8 times by 2 tests: return;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 8 |
| 307 | d->wrap = wrap; | - |
| 308 | keyNavigationWrapsChanged(); | - |
| 309 | }executed 22 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 22 |
| 310 | | - |
| 311 | bool QQuickItemView::isKeyNavigationEnabled() const | - |
| 312 | { | - |
| 313 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 314 | returnexecuted 22 times by 2 tests: return d->explicitKeyNavigationEnabled ? d->keyNavigationEnabled : d->interactive;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->explicitKeyNavigationEnabled ? d->keyNavigationEnabled : d->interactive;executed 22 times by 2 tests: return d->explicitKeyNavigationEnabled ? d->keyNavigationEnabled : d->interactive;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 22 |
| 315 | } | - |
| 316 | | - |
| 317 | void QQuickItemView::setKeyNavigationEnabled(bool keyNavigationEnabled) | - |
| 318 | { | - |
| 319 | | - |
| 320 | QQuickItemViewPrivate * const d = d_func(); | - |
| 321 | const bool wasImplicit = !d->explicitKeyNavigationEnabled; | - |
| 322 | if (wasImplicit| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 4 |
| 323 | QObject::disconnect(this, &QQuickFlickable::interactiveChanged, this, &QQuickItemView::keyNavigationEnabledChanged);executed 4 times by 2 tests: QObject::disconnect(this, &QQuickFlickable::interactiveChanged, this, &QQuickItemView::keyNavigationEnabledChanged);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 4 |
| 324 | | - |
| 325 | d->explicitKeyNavigationEnabled = true; | - |
| 326 | | - |
| 327 | | - |
| 328 | if (d->keyNavigationEnabled != keyNavigationEnabled| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
|| wasImplicit| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-4 |
| 329 | d->keyNavigationEnabled = keyNavigationEnabled; | - |
| 330 | keyNavigationEnabledChanged(); | - |
| 331 | }executed 8 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 8 |
| 332 | }executed 8 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 8 |
| 333 | | - |
| 334 | int QQuickItemView::cacheBuffer() const | - |
| 335 | { | - |
| 336 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 337 | returnexecuted 194 times by 2 tests: return d->buffer;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->buffer;executed 194 times by 2 tests: return d->buffer;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 194 |
| 338 | } | - |
| 339 | | - |
| 340 | void QQuickItemView::setCacheBuffer(int b) | - |
| 341 | { | - |
| 342 | QQuickItemViewPrivate * const d = d_func(); | - |
| 343 | if (b < 0| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2564 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 2-2564 |
| 344 | qmlWarning(this) << "Cannot set a negative cache buffer"; | - |
| 345 | return;executed 2 times by 1 test: return; | 2 |
| 346 | } | - |
| 347 | | - |
| 348 | if (d->buffer != b| TRUE | evaluated 2534 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 30 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 30-2534 |
| 349 | d->buffer = b; | - |
| 350 | if (isComponentComplete()| TRUE | evaluated 70 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2464 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 70-2464 |
| 351 | d->bufferMode = QQuickItemViewPrivate::BufferBefore | QQuickItemViewPrivate::BufferAfter; | - |
| 352 | d->refillOrLayout(); | - |
| 353 | }executed 70 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 70 |
| 354 | cacheBufferChanged(); | - |
| 355 | }executed 2534 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 2534 |
| 356 | }executed 2564 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 2564 |
| 357 | | - |
| 358 | int QQuickItemView::displayMarginBeginning() const | - |
| 359 | { | - |
| 360 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 361 | returnexecuted 60 times by 1 test: return d->displayMarginBeginning; d->displayMarginBeginning;executed 60 times by 1 test: return d->displayMarginBeginning; | 60 |
| 362 | } | - |
| 363 | | - |
| 364 | void QQuickItemView::setDisplayMarginBeginning(int margin) | - |
| 365 | { | - |
| 366 | QQuickItemViewPrivate * const d = d_func(); | - |
| 367 | if (d->displayMarginBeginning != margin| TRUE | evaluated 18 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 12-18 |
| 368 | d->displayMarginBeginning = margin; | - |
| 369 | if (isComponentComplete()| TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 6 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 6-12 |
| 370 | d->forceLayoutPolish(); | - |
| 371 | }executed 12 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 12 |
| 372 | displayMarginBeginningChanged(); | - |
| 373 | }executed 18 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 18 |
| 374 | }executed 30 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 30 |
| 375 | | - |
| 376 | int QQuickItemView::displayMarginEnd() const | - |
| 377 | { | - |
| 378 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 379 | returnexecuted 60 times by 1 test: return d->displayMarginEnd; d->displayMarginEnd;executed 60 times by 1 test: return d->displayMarginEnd; | 60 |
| 380 | } | - |
| 381 | | - |
| 382 | void QQuickItemView::setDisplayMarginEnd(int margin) | - |
| 383 | { | - |
| 384 | QQuickItemViewPrivate * const d = d_func(); | - |
| 385 | if (d->displayMarginEnd != margin| TRUE | evaluated 22 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 4-22 |
| 386 | d->displayMarginEnd = margin; | - |
| 387 | if (isComponentComplete()| TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 10 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 10-12 |
| 388 | d->forceLayoutPolish(); | - |
| 389 | }executed 12 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 12 |
| 390 | displayMarginEndChanged(); | - |
| 391 | }executed 22 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 22 |
| 392 | }executed 26 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 26 |
| 393 | | - |
| 394 | Qt::LayoutDirection QQuickItemView::layoutDirection() const | - |
| 395 | { | - |
| 396 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 397 | returnexecuted 20 times by 2 tests: return d->layoutDirection;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->layoutDirection;executed 20 times by 2 tests: return d->layoutDirection;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 20 |
| 398 | } | - |
| 399 | | - |
| 400 | void QQuickItemView::setLayoutDirection(Qt::LayoutDirection layoutDirection) | - |
| 401 | { | - |
| 402 | QQuickItemViewPrivate * const d = d_func(); | - |
| 403 | if (d->layoutDirection != layoutDirection| TRUE | evaluated 778 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 792 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 778-792 |
| 404 | d->layoutDirection = layoutDirection; | - |
| 405 | d->regenerate(); | - |
| 406 | layoutDirectionChanged(); | - |
| 407 | effectiveLayoutDirectionChanged(); | - |
| 408 | }executed 778 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 778 |
| 409 | }executed 1570 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 1570 |
| 410 | | - |
| 411 | Qt::LayoutDirection QQuickItemView::effectiveLayoutDirection() const | - |
| 412 | { | - |
| 413 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 414 | if (d->effectiveLayoutMirror| TRUE | evaluated 284 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 818843 times by 5 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 284-818843 |
| 415 | returnexecuted 284 times by 2 tests: return d->layoutDirection == Qt::RightToLeft ? Qt::LeftToRight : Qt::RightToLeft;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->layoutDirection == Qt::RightToLeft ? Qt::LeftToRight : Qt::RightToLeft;executed 284 times by 2 tests: return d->layoutDirection == Qt::RightToLeft ? Qt::LeftToRight : Qt::RightToLeft;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 284 |
| 416 | else | - |
| 417 | returnexecuted 818843 times by 5 tests: return d->layoutDirection;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickvisualdatamodel
d->layoutDirection;executed 818843 times by 5 tests: return d->layoutDirection;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 818843 |
| 418 | } | - |
| 419 | | - |
| 420 | QQuickItemView::VerticalLayoutDirection QQuickItemView::verticalLayoutDirection() const | - |
| 421 | { | - |
| 422 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 423 | returnexecuted 1150397 times by 11 tests: return d->verticalLayoutDirection;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
d->verticalLayoutDirection;executed 1150397 times by 11 tests: return d->verticalLayoutDirection;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 1150397 |
| 424 | } | - |
| 425 | | - |
| 426 | void QQuickItemView::setVerticalLayoutDirection(VerticalLayoutDirection layoutDirection) | - |
| 427 | { | - |
| 428 | QQuickItemViewPrivate * const d = d_func(); | - |
| 429 | if (d->verticalLayoutDirection != layoutDirection| TRUE | evaluated 736 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 818 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 736-818 |
| 430 | d->verticalLayoutDirection = layoutDirection; | - |
| 431 | d->regenerate(); | - |
| 432 | verticalLayoutDirectionChanged(); | - |
| 433 | }executed 736 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 736 |
| 434 | }executed 1554 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 1554 |
| 435 | | - |
| 436 | QQmlComponent *QQuickItemView::header() const | - |
| 437 | { | - |
| 438 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 439 | returnexecuted 136 times by 2 tests: return d->headerComponent;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->headerComponent;executed 136 times by 2 tests: return d->headerComponent;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 136 |
| 440 | } | - |
| 441 | | - |
| 442 | QQuickItem *QQuickItemView::headerItem() const | - |
| 443 | { | - |
| 444 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 445 | returnexecuted 407 times by 2 tests: return d->header ? d->header->item : nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->header ? d->header->item : nullptr;executed 407 times by 2 tests: return d->header ? d->header->item : nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 407 |
| 446 | } | - |
| 447 | | - |
| 448 | void QQuickItemView::setHeader(QQmlComponent *headerComponent) | - |
| 449 | { | - |
| 450 | QQuickItemViewPrivate * const d = d_func(); | - |
| 451 | if (d->headerComponent != headerComponent| TRUE | evaluated 296 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 1906 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 296-1906 |
| 452 | d->applyPendingChanges(); | - |
| 453 | delete d->header; | - |
| 454 | d->header = nullptr; | - |
| 455 | d->headerComponent = headerComponent; | - |
| 456 | | - |
| 457 | d->markExtentsDirty(); | - |
| 458 | | - |
| 459 | if (isComponentComplete()| TRUE | evaluated 98 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 198 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 98-198 |
| 460 | d->updateHeader(); | - |
| 461 | d->updateFooter(); | - |
| 462 | d->updateViewport(); | - |
| 463 | d->fixupPosition(); | - |
| 464 | }executed 98 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else { | 98 |
| 465 | headerItemChanged(); | - |
| 466 | }executed 198 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 198 |
| 467 | headerChanged(); | - |
| 468 | }executed 296 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 296 |
| 469 | }executed 2202 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 2202 |
| 470 | | - |
| 471 | QQmlComponent *QQuickItemView::footer() const | - |
| 472 | { | - |
| 473 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 474 | returnexecuted 136 times by 2 tests: return d->footerComponent;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->footerComponent;executed 136 times by 2 tests: return d->footerComponent;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 136 |
| 475 | } | - |
| 476 | | - |
| 477 | QQuickItem *QQuickItemView::footerItem() const | - |
| 478 | { | - |
| 479 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 480 | returnexecuted 272 times by 2 tests: return d->footer ? d->footer->item : nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->footer ? d->footer->item : nullptr;executed 272 times by 2 tests: return d->footer ? d->footer->item : nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 272 |
| 481 | } | - |
| 482 | | - |
| 483 | void QQuickItemView::setFooter(QQmlComponent *footerComponent) | - |
| 484 | { | - |
| 485 | QQuickItemViewPrivate * const d = d_func(); | - |
| 486 | if (d->footerComponent != footerComponent| TRUE | evaluated 210 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 1880 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 210-1880 |
| 487 | d->applyPendingChanges(); | - |
| 488 | delete d->footer; | - |
| 489 | d->footer = nullptr; | - |
| 490 | d->footerComponent = footerComponent; | - |
| 491 | | - |
| 492 | if (isComponentComplete()| TRUE | evaluated 46 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 164 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 46-164 |
| 493 | d->updateFooter(); | - |
| 494 | d->updateViewport(); | - |
| 495 | d->fixupPosition(); | - |
| 496 | }executed 46 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else { | 46 |
| 497 | footerItemChanged(); | - |
| 498 | }executed 164 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 164 |
| 499 | footerChanged(); | - |
| 500 | }executed 210 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 210 |
| 501 | }executed 2090 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 2090 |
| 502 | | - |
| 503 | QQmlComponent *QQuickItemView::highlight() const | - |
| 504 | { | - |
| 505 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 506 | returnexecuted 56 times by 2 tests: return d->highlightComponent;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->highlightComponent;executed 56 times by 2 tests: return d->highlightComponent;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 56 |
| 507 | } | - |
| 508 | | - |
| 509 | void QQuickItemView::setHighlight(QQmlComponent *highlightComponent) | - |
| 510 | { | - |
| 511 | QQuickItemViewPrivate * const d = d_func(); | - |
| 512 | if (highlightComponent != d->highlightComponent| TRUE | evaluated 722 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 4-722 |
| 513 | d->applyPendingChanges(); | - |
| 514 | d->highlightComponent = highlightComponent; | - |
| 515 | d->createHighlight(); | - |
| 516 | if (d->currentItem| TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 710 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 12-710 |
| 517 | d->updateHighlight();executed 12 times by 2 tests: d->updateHighlight();Executed by:- tst_qquickgridview
- tst_qquicklistview
| 12 |
| 518 | highlightChanged(); | - |
| 519 | }executed 722 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 722 |
| 520 | }executed 726 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 726 |
| 521 | | - |
| 522 | QQuickItem *QQuickItemView::highlightItem() const | - |
| 523 | { | - |
| 524 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 525 | returnexecuted 439 times by 2 tests: return d->highlight ? d->highlight->item : nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->highlight ? d->highlight->item : nullptr;executed 439 times by 2 tests: return d->highlight ? d->highlight->item : nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 439 |
| 526 | } | - |
| 527 | | - |
| 528 | bool QQuickItemView::highlightFollowsCurrentItem() const | - |
| 529 | { | - |
| 530 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 531 | returnexecuted 36 times by 2 tests: return d->autoHighlight;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->autoHighlight;executed 36 times by 2 tests: return d->autoHighlight;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 36 |
| 532 | } | - |
| 533 | | - |
| 534 | void QQuickItemView::setHighlightFollowsCurrentItem(bool autoHighlight) | - |
| 535 | { | - |
| 536 | QQuickItemViewPrivate * const d = d_func(); | - |
| 537 | if (d->autoHighlight != autoHighlight| TRUE | evaluated 20 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-20 |
| 538 | d->autoHighlight = autoHighlight; | - |
| 539 | if (autoHighlight| TRUE | never evaluated | | FALSE | evaluated 20 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 0-20 |
| 540 | d->updateHighlight(); never executed: d->updateHighlight(); | 0 |
| 541 | highlightFollowsCurrentItemChanged(); | - |
| 542 | }executed 20 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 20 |
| 543 | }executed 20 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 20 |
| 544 | | - |
| 545 | QQuickItemView::HighlightRangeMode QQuickItemView::highlightRangeMode() const | - |
| 546 | { | - |
| 547 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 548 | returnexecuted 34 times by 2 tests: return static_cast<QQuickItemView::HighlightRangeMode>(d->highlightRange);Executed by:- tst_qquickgridview
- tst_qquicklistview
static_cast<QQuickItemView::HighlightRangeMode>(d->highlightRange);executed 34 times by 2 tests: return static_cast<QQuickItemView::HighlightRangeMode>(d->highlightRange);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 34 |
| 549 | } | - |
| 550 | | - |
| 551 | void QQuickItemView::setHighlightRangeMode(HighlightRangeMode mode) | - |
| 552 | { | - |
| 553 | QQuickItemViewPrivate * const d = d_func(); | - |
| 554 | if (d->highlightRange == mode| TRUE | evaluated 1604 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 180 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 180-1604 |
| 555 | return;executed 1604 times by 2 tests: return;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 1604 |
| 556 | d->highlightRange = mode; | - |
| 557 | d->haveHighlightRange = d->highlightRange != NoHighlightRange| TRUE | evaluated 148 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 32 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
&& d->highlightRangeStart <= d->highlightRangeEnd| TRUE | evaluated 148 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
; | 0-148 |
| 558 | if (isComponentComplete()| TRUE | evaluated 58 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 122 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 58-122 |
| 559 | d->updateViewport(); | - |
| 560 | d->fixupPosition(); | - |
| 561 | }executed 58 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 58 |
| 562 | highlightRangeModeChanged(); | - |
| 563 | }executed 180 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 180 |
| 564 | | - |
| 565 | | - |
| 566 | qreal QQuickItemView::preferredHighlightBegin() const | - |
| 567 | { | - |
| 568 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 569 | returnexecuted 34 times by 2 tests: return d->highlightRangeStart;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->highlightRangeStart;executed 34 times by 2 tests: return d->highlightRangeStart;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 34 |
| 570 | } | - |
| 571 | | - |
| 572 | void QQuickItemView::setPreferredHighlightBegin(qreal start) | - |
| 573 | { | - |
| 574 | QQuickItemViewPrivate * const d = d_func(); | - |
| 575 | d->highlightRangeStartValid = true; | - |
| 576 | if (d->highlightRangeStart == start| TRUE | evaluated 1590 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 290 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 290-1590 |
| 577 | return;executed 1590 times by 3 tests: return;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 1590 |
| 578 | d->highlightRangeStart = start; | - |
| 579 | d->haveHighlightRange = d->highlightRange != NoHighlightRange| TRUE | evaluated 276 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 14 times by 1 test |
&& d->highlightRangeStart <= d->highlightRangeEnd| TRUE | evaluated 82 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 194 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
; | 14-276 |
| 580 | if (isComponentComplete()| TRUE | evaluated 206 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 84 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 84-206 |
| 581 | d->updateViewport(); | - |
| 582 | if (!isMoving()| TRUE | evaluated 30 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 176 times by 1 test |
&& !isFlicking()| TRUE | evaluated 30 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) | 0-176 |
| 583 | d->fixupPosition();executed 30 times by 3 tests: d->fixupPosition();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 30 |
| 584 | }executed 206 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 206 |
| 585 | preferredHighlightBeginChanged(); | - |
| 586 | }executed 290 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 290 |
| 587 | | - |
| 588 | void QQuickItemView::resetPreferredHighlightBegin() | - |
| 589 | { | - |
| 590 | QQuickItemViewPrivate * const d = d_func(); | - |
| 591 | d->highlightRangeStartValid = false; | - |
| 592 | if (d->highlightRangeStart == 0| TRUE | never evaluated | | FALSE | evaluated 176 times by 1 test |
) | 0-176 |
| 593 | return; never executed: return; | 0 |
| 594 | d->highlightRangeStart = 0; | - |
| 595 | if (isComponentComplete()| TRUE | evaluated 176 times by 1 test | | FALSE | never evaluated |
) { | 0-176 |
| 596 | d->updateViewport(); | - |
| 597 | if (!isMoving()| TRUE | never evaluated | | FALSE | evaluated 176 times by 1 test |
&& !isFlicking()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0-176 |
| 598 | d->fixupPosition(); never executed: d->fixupPosition(); | 0 |
| 599 | }executed 176 times by 1 test: end of block | 176 |
| 600 | preferredHighlightBeginChanged(); | - |
| 601 | }executed 176 times by 1 test: end of block | 176 |
| 602 | | - |
| 603 | qreal QQuickItemView::preferredHighlightEnd() const | - |
| 604 | { | - |
| 605 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 606 | returnexecuted 34 times by 2 tests: return d->highlightRangeEnd;Executed by:- tst_qquickgridview
- tst_qquicklistview
d->highlightRangeEnd;executed 34 times by 2 tests: return d->highlightRangeEnd;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 34 |
| 607 | } | - |
| 608 | | - |
| 609 | void QQuickItemView::setPreferredHighlightEnd(qreal end) | - |
| 610 | { | - |
| 611 | QQuickItemViewPrivate * const d = d_func(); | - |
| 612 | d->highlightRangeEndValid = true; | - |
| 613 | if (d->highlightRangeEnd == end| TRUE | evaluated 1590 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 290 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 290-1590 |
| 614 | return;executed 1590 times by 3 tests: return;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 1590 |
| 615 | d->highlightRangeEnd = end; | - |
| 616 | d->haveHighlightRange = d->highlightRange != NoHighlightRange| TRUE | evaluated 276 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 14 times by 1 test |
&& d->highlightRangeStart <= d->highlightRangeEnd| TRUE | evaluated 276 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
; | 0-276 |
| 617 | if (isComponentComplete()| TRUE | evaluated 206 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 84 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 84-206 |
| 618 | d->updateViewport(); | - |
| 619 | if (!isMoving()| TRUE | evaluated 30 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 176 times by 1 test |
&& !isFlicking()| TRUE | evaluated 30 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) | 0-176 |
| 620 | d->fixupPosition();executed 30 times by 3 tests: d->fixupPosition();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 30 |
| 621 | }executed 206 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 206 |
| 622 | preferredHighlightEndChanged(); | - |
| 623 | }executed 290 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 290 |
| 624 | | - |
| 625 | void QQuickItemView::resetPreferredHighlightEnd() | - |
| 626 | { | - |
| 627 | QQuickItemViewPrivate * const d = d_func(); | - |
| 628 | d->highlightRangeEndValid = false; | - |
| 629 | if (d->highlightRangeEnd == 0| TRUE | never evaluated | | FALSE | evaluated 176 times by 1 test |
) | 0-176 |
| 630 | return; never executed: return; | 0 |
| 631 | d->highlightRangeEnd = 0; | - |
| 632 | if (isComponentComplete()| TRUE | evaluated 176 times by 1 test | | FALSE | never evaluated |
) { | 0-176 |
| 633 | d->updateViewport(); | - |
| 634 | if (!isMoving()| TRUE | never evaluated | | FALSE | evaluated 176 times by 1 test |
&& !isFlicking()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0-176 |
| 635 | d->fixupPosition(); never executed: d->fixupPosition(); | 0 |
| 636 | }executed 176 times by 1 test: end of block | 176 |
| 637 | preferredHighlightEndChanged(); | - |
| 638 | }executed 176 times by 1 test: end of block | 176 |
| 639 | | - |
| 640 | int QQuickItemView::highlightMoveDuration() const | - |
| 641 | { | - |
| 642 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 643 | returnexecuted 2 times by 1 test: return d->highlightMoveDuration; d->highlightMoveDuration;executed 2 times by 1 test: return d->highlightMoveDuration; | 2 |
| 644 | } | - |
| 645 | | - |
| 646 | void QQuickItemView::setHighlightMoveDuration(int duration) | - |
| 647 | { | - |
| 648 | QQuickItemViewPrivate * const d = d_func(); | - |
| 649 | if (d->highlightMoveDuration != duration| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-8 |
| 650 | d->highlightMoveDuration = duration; | - |
| 651 | highlightMoveDurationChanged(); | - |
| 652 | }executed 8 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 8 |
| 653 | }executed 8 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 8 |
| 654 | | - |
| 655 | QQuickTransition *QQuickItemView::populateTransition() const | - |
| 656 | { | - |
| 657 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 658 | return never executed: return d->transitioner ? d->transitioner->populateTransition : nullptr; d->transitioner ? d->transitioner->populateTransition : nullptr;never executed: return d->transitioner ? d->transitioner->populateTransition : nullptr; | 0 |
| 659 | } | - |
| 660 | | - |
| 661 | void QQuickItemView::setPopulateTransition(QQuickTransition *transition) | - |
| 662 | { | - |
| 663 | QQuickItemViewPrivate * const d = d_func(); | - |
| 664 | d->createTransitioner(); | - |
| 665 | if (d->transitioner->populateTransition != transition| TRUE | evaluated 14 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 12-14 |
| 666 | d->transitioner->populateTransition = transition; | - |
| 667 | populateTransitionChanged(); | - |
| 668 | }executed 14 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 14 |
| 669 | }executed 26 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 26 |
| 670 | | - |
| 671 | QQuickTransition *QQuickItemView::addTransition() const | - |
| 672 | { | - |
| 673 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 674 | return never executed: return d->transitioner ? d->transitioner->addTransition : nullptr; d->transitioner ? d->transitioner->addTransition : nullptr;never executed: return d->transitioner ? d->transitioner->addTransition : nullptr; | 0 |
| 675 | } | - |
| 676 | | - |
| 677 | void QQuickItemView::setAddTransition(QQuickTransition *transition) | - |
| 678 | { | - |
| 679 | QQuickItemViewPrivate * const d = d_func(); | - |
| 680 | d->createTransitioner(); | - |
| 681 | if (d->transitioner->addTransition != transition| TRUE | evaluated 142 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-142 |
| 682 | d->transitioner->addTransition = transition; | - |
| 683 | addTransitionChanged(); | - |
| 684 | }executed 142 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 142 |
| 685 | }executed 142 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 142 |
| 686 | | - |
| 687 | QQuickTransition *QQuickItemView::addDisplacedTransition() const | - |
| 688 | { | - |
| 689 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 690 | return never executed: return d->transitioner ? d->transitioner->addDisplacedTransition : nullptr; d->transitioner ? d->transitioner->addDisplacedTransition : nullptr;never executed: return d->transitioner ? d->transitioner->addDisplacedTransition : nullptr; | 0 |
| 691 | } | - |
| 692 | | - |
| 693 | void QQuickItemView::setAddDisplacedTransition(QQuickTransition *transition) | - |
| 694 | { | - |
| 695 | QQuickItemViewPrivate * const d = d_func(); | - |
| 696 | d->createTransitioner(); | - |
| 697 | if (d->transitioner->addDisplacedTransition != transition| TRUE | evaluated 116 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 28 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 28-116 |
| 698 | d->transitioner->addDisplacedTransition = transition; | - |
| 699 | addDisplacedTransitionChanged(); | - |
| 700 | }executed 116 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 116 |
| 701 | }executed 144 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 144 |
| 702 | | - |
| 703 | QQuickTransition *QQuickItemView::moveTransition() const | - |
| 704 | { | - |
| 705 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 706 | return never executed: return d->transitioner ? d->transitioner->moveTransition : nullptr; d->transitioner ? d->transitioner->moveTransition : nullptr;never executed: return d->transitioner ? d->transitioner->moveTransition : nullptr; | 0 |
| 707 | } | - |
| 708 | | - |
| 709 | void QQuickItemView::setMoveTransition(QQuickTransition *transition) | - |
| 710 | { | - |
| 711 | QQuickItemViewPrivate * const d = d_func(); | - |
| 712 | d->createTransitioner(); | - |
| 713 | if (d->transitioner->moveTransition != transition| TRUE | evaluated 174 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-174 |
| 714 | d->transitioner->moveTransition = transition; | - |
| 715 | moveTransitionChanged(); | - |
| 716 | }executed 174 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 174 |
| 717 | }executed 174 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 174 |
| 718 | | - |
| 719 | QQuickTransition *QQuickItemView::moveDisplacedTransition() const | - |
| 720 | { | - |
| 721 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 722 | return never executed: return d->transitioner ? d->transitioner->moveDisplacedTransition : nullptr; d->transitioner ? d->transitioner->moveDisplacedTransition : nullptr;never executed: return d->transitioner ? d->transitioner->moveDisplacedTransition : nullptr; | 0 |
| 723 | } | - |
| 724 | | - |
| 725 | void QQuickItemView::setMoveDisplacedTransition(QQuickTransition *transition) | - |
| 726 | { | - |
| 727 | QQuickItemViewPrivate * const d = d_func(); | - |
| 728 | d->createTransitioner(); | - |
| 729 | if (d->transitioner->moveDisplacedTransition != transition| TRUE | evaluated 178 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 32 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 32-178 |
| 730 | d->transitioner->moveDisplacedTransition = transition; | - |
| 731 | moveDisplacedTransitionChanged(); | - |
| 732 | }executed 178 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 178 |
| 733 | }executed 210 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 210 |
| 734 | | - |
| 735 | QQuickTransition *QQuickItemView::removeTransition() const | - |
| 736 | { | - |
| 737 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 738 | return never executed: return d->transitioner ? d->transitioner->removeTransition : nullptr; d->transitioner ? d->transitioner->removeTransition : nullptr;never executed: return d->transitioner ? d->transitioner->removeTransition : nullptr; | 0 |
| 739 | } | - |
| 740 | | - |
| 741 | void QQuickItemView::setRemoveTransition(QQuickTransition *transition) | - |
| 742 | { | - |
| 743 | QQuickItemViewPrivate * const d = d_func(); | - |
| 744 | d->createTransitioner(); | - |
| 745 | if (d->transitioner->removeTransition != transition| TRUE | evaluated 90 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-90 |
| 746 | d->transitioner->removeTransition = transition; | - |
| 747 | removeTransitionChanged(); | - |
| 748 | }executed 90 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 90 |
| 749 | }executed 90 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 90 |
| 750 | | - |
| 751 | QQuickTransition *QQuickItemView::removeDisplacedTransition() const | - |
| 752 | { | - |
| 753 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 754 | return never executed: return d->transitioner ? d->transitioner->removeDisplacedTransition : nullptr; d->transitioner ? d->transitioner->removeDisplacedTransition : nullptr;never executed: return d->transitioner ? d->transitioner->removeDisplacedTransition : nullptr; | 0 |
| 755 | } | - |
| 756 | | - |
| 757 | void QQuickItemView::setRemoveDisplacedTransition(QQuickTransition *transition) | - |
| 758 | { | - |
| 759 | QQuickItemViewPrivate * const d = d_func(); | - |
| 760 | d->createTransitioner(); | - |
| 761 | if (d->transitioner->removeDisplacedTransition != transition| TRUE | evaluated 104 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 28 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 28-104 |
| 762 | d->transitioner->removeDisplacedTransition = transition; | - |
| 763 | removeDisplacedTransitionChanged(); | - |
| 764 | }executed 104 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 104 |
| 765 | }executed 132 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 132 |
| 766 | | - |
| 767 | QQuickTransition *QQuickItemView::displacedTransition() const | - |
| 768 | { | - |
| 769 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 770 | return never executed: return d->transitioner ? d->transitioner->displacedTransition : nullptr; d->transitioner ? d->transitioner->displacedTransition : nullptr;never executed: return d->transitioner ? d->transitioner->displacedTransition : nullptr; | 0 |
| 771 | } | - |
| 772 | | - |
| 773 | void QQuickItemView::setDisplacedTransition(QQuickTransition *transition) | - |
| 774 | { | - |
| 775 | QQuickItemViewPrivate * const d = d_func(); | - |
| 776 | d->createTransitioner(); | - |
| 777 | if (d->transitioner->displacedTransition != transition| TRUE | evaluated 64 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 4-64 |
| 778 | d->transitioner->displacedTransition = transition; | - |
| 779 | displacedTransitionChanged(); | - |
| 780 | }executed 64 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 64 |
| 781 | }executed 68 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 68 |
| 782 | | - |
| 783 | void QQuickItemViewPrivate::positionViewAtIndex(int index, int mode) | - |
| 784 | { | - |
| 785 | if (!isValid()| TRUE | never evaluated | | FALSE | evaluated 386 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) | 0-386 |
| 786 | return; never executed: return; | 0 |
| 787 | if (mode < QQuickItemView::Beginning| TRUE | never evaluated | | FALSE | evaluated 386 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
|| mode > QQuickItemView::SnapPosition| TRUE | never evaluated | | FALSE | evaluated 386 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) | 0-386 |
| 788 | return; never executed: return; | 0 |
| 789 | | - |
| 790 | applyPendingChanges(); | - |
| 791 | const int modelCount = model->count(); | - |
| 792 | int idx = qMax(qMin(index, modelCount - 1), 0); | - |
| 793 | | - |
| 794 | const auto viewSize = size(); | - |
| 795 | qreal pos = isContentFlowReversed()| TRUE | evaluated 82 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 304 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
? -position() - viewSize : position(); | 82-304 |
| 796 | FxViewItem *item = visibleItem(idx); | - |
| 797 | qreal maxExtent = calculatedMaxExtent(); | - |
| 798 | if (!item| TRUE | evaluated 174 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 212 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 174-212 |
| 799 | qreal itemPos = positionAt(idx); | - |
| 800 | changedVisibleIndex(idx); | - |
| 801 | | - |
| 802 | const QList<FxViewItem *> oldVisible = visibleItems; | - |
| 803 | visibleItems.clear(); | - |
| 804 | setPosition(qMin(itemPos, maxExtent)); | - |
| 805 | | - |
| 806 | for (FxViewItem *item : oldVisible) | - |
| 807 | releaseItem(item);executed 2526 times by 4 tests: releaseItem(item);Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 2526 |
| 808 | item = visibleItem(idx); | - |
| 809 | }executed 174 times by 4 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 174 |
| 810 | if (item| TRUE | evaluated 382 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 4 times by 1 test |
) { | 4-382 |
| 811 | const bool stickyHeader = hasStickyHeader(); | - |
| 812 | const bool stickyFooter = hasStickyFooter(); | - |
| 813 | const qreal stickyHeaderSize = stickyHeader| TRUE | evaluated 96 times by 1 test | | FALSE | evaluated 286 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
? headerSize() : 0; | 96-286 |
| 814 | const qreal stickyFooterSize = stickyFooter| TRUE | evaluated 92 times by 1 test | | FALSE | evaluated 290 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
? footerSize() : 0; | 92-290 |
| 815 | | - |
| 816 | const qreal itemPos = item->position(); | - |
| 817 | switch (mode) { | - |
| 818 | caseexecuted 160 times by 4 tests: case QQuickItemView::Beginning:Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
QQuickItemView::Beginning:executed 160 times by 4 tests: case QQuickItemView::Beginning:Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 160 |
| 819 | pos = itemPos; | - |
| 820 | if (header| TRUE | evaluated 104 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 56 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
&& (index < 0| TRUE | evaluated 20 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 84 times by 1 test |
|| stickyHeader| TRUE | evaluated 84 times by 1 test | | FALSE | never evaluated |
)) | 0-104 |
| 821 | pos -= headerSize();executed 104 times by 2 tests: pos -= headerSize();Executed by:- tst_qquickgridview
- tst_qquicklistview
| 104 |
| 822 | break;executed 160 times by 4 tests: break;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 160 |
| 823 | caseexecuted 12 times by 2 tests: case QQuickItemView::Center:Executed by:- tst_qquickgridview
- tst_qquicklistview
QQuickItemView::Center:executed 12 times by 2 tests: case QQuickItemView::Center:Executed by:- tst_qquickgridview
- tst_qquicklistview
| 12 |
| 824 | pos = itemPos - (viewSize - item->size())/2; | - |
| 825 | break;executed 12 times by 2 tests: break;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 12 |
| 826 | caseexecuted 122 times by 3 tests: case QQuickItemView::End:Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
QQuickItemView::End:executed 122 times by 3 tests: case QQuickItemView::End:Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 122 |
| 827 | pos = itemPos - viewSize + item->size(); | - |
| 828 | if (footer| TRUE | evaluated 72 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 50 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& (index >= modelCount| TRUE | evaluated 32 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 40 times by 1 test |
|| stickyFooter| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
)) | 0-72 |
| 829 | pos += footerSize();executed 72 times by 2 tests: pos += footerSize();Executed by:- tst_qquickgridview
- tst_qquicklistview
| 72 |
| 830 | break;executed 122 times by 3 tests: break;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 122 |
| 831 | caseexecuted 40 times by 2 tests: case QQuickItemView::Visible:Executed by:- tst_qquickgridview
- tst_qquicklistview
QQuickItemView::Visible:executed 40 times by 2 tests: case QQuickItemView::Visible:Executed by:- tst_qquickgridview
- tst_qquicklistview
| 40 |
| 832 | if (itemPos > pos + viewSize - stickyFooterSize| TRUE | evaluated 14 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 14-26 |
| 833 | pos = item->endPosition() - viewSize + stickyFooterSize;executed 14 times by 2 tests: pos = item->endPosition() - viewSize + stickyFooterSize;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 14 |
| 834 | else if (item->endPosition() <= pos - stickyHeaderSize| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 18 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 8-18 |
| 835 | pos = itemPos - stickyHeaderSize;executed 8 times by 2 tests: pos = itemPos - stickyHeaderSize;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 8 |
| 836 | break;executed 40 times by 2 tests: break;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 40 |
| 837 | caseexecuted 32 times by 3 tests: case QQuickItemView::Contain:Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
QQuickItemView::Contain:executed 32 times by 3 tests: case QQuickItemView::Contain:Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
| 32 |
| 838 | if (item->endPosition() >= pos + viewSize + stickyFooterSize| TRUE | evaluated 18 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 14 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
|
) | 14-18 |
| 839 | pos = itemPos - viewSize + item->size() + stickyFooterSize;executed 18 times by 2 tests: pos = itemPos - viewSize + item->size() + stickyFooterSize;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 18 |
| 840 | if (itemPos - stickyHeaderSize < pos| TRUE | evaluated 10 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
| | FALSE | evaluated 22 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 10-22 |
| 841 | pos = itemPos - stickyHeaderSize;executed 10 times by 3 tests: pos = itemPos - stickyHeaderSize;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
| 10 |
| 842 | break;executed 32 times by 3 tests: break;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
| 32 |
| 843 | caseexecuted 16 times by 2 tests: case QQuickItemView::SnapPosition:Executed by:- tst_qquickgridview
- tst_qquicklistview
QQuickItemView::SnapPosition:executed 16 times by 2 tests: case QQuickItemView::SnapPosition:Executed by:- tst_qquickgridview
- tst_qquicklistview
| 16 |
| 844 | pos = itemPos - highlightRangeStart - stickyHeaderSize; | - |
| 845 | break;executed 16 times by 2 tests: break;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 16 |
| 846 | } | - |
| 847 | pos = qMin(pos, maxExtent); | - |
| 848 | qreal minExtent = calculatedMinExtent(); | - |
| 849 | pos = qMax(pos, minExtent); | - |
| 850 | moveReason = QQuickItemViewPrivate::Other; | - |
| 851 | setPosition(pos); | - |
| 852 | | - |
| 853 | if (highlight| TRUE | evaluated 382 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-382 |
| 854 | if (autoHighlight| TRUE | evaluated 380 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2 times by 1 test |
) | 2-380 |
| 855 | resetHighlightPosition();executed 380 times by 4 tests: resetHighlightPosition();Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 380 |
| 856 | updateHighlight(); | - |
| 857 | }executed 382 times by 4 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 382 |
| 858 | }executed 382 times by 4 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 382 |
| 859 | fixupPosition(); | - |
| 860 | }executed 386 times by 4 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 386 |
| 861 | | - |
| 862 | void QQuickItemView::positionViewAtIndex(int index, int mode) | - |
| 863 | { | - |
| 864 | QQuickItemViewPrivate * const d = d_func(); | - |
| 865 | if (!d->isValid()| TRUE | never evaluated | | FALSE | evaluated 304 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
|| index < 0| TRUE | never evaluated | | FALSE | evaluated 304 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
|| index >= d->model->count()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 302 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) | 0-304 |
| 866 | return;executed 2 times by 1 test: return; | 2 |
| 867 | d->positionViewAtIndex(index, mode); | - |
| 868 | }executed 302 times by 4 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 302 |
| 869 | | - |
| 870 | | - |
| 871 | void QQuickItemView::positionViewAtBeginning() | - |
| 872 | { | - |
| 873 | QQuickItemViewPrivate * const d = d_func(); | - |
| 874 | if (!d->isValid()| TRUE | never evaluated | | FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 0-26 |
| 875 | return; never executed: return; | 0 |
| 876 | d->positionViewAtIndex(-1, Beginning); | - |
| 877 | }executed 26 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 26 |
| 878 | | - |
| 879 | void QQuickItemView::positionViewAtEnd() | - |
| 880 | { | - |
| 881 | QQuickItemViewPrivate * const d = d_func(); | - |
| 882 | if (!d->isValid()| TRUE | never evaluated | | FALSE | evaluated 58 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 0-58 |
| 883 | return; never executed: return; | 0 |
| 884 | d->positionViewAtIndex(d->model->count(), End); | - |
| 885 | }executed 58 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 58 |
| 886 | | - |
| 887 | static FxViewItem * fxViewItemAtPosition(const QList<FxViewItem *> &items, qreal x, qreal y) | - |
| 888 | { | - |
| 889 | for (FxViewItem *item : items) { | - |
| 890 | if (item->contains(x, y)| TRUE | evaluated 2641 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 10849 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 2641-10849 |
| 891 | returnexecuted 2641 times by 2 tests: return item;Executed by:- tst_qquickgridview
- tst_qquicklistview
item;executed 2641 times by 2 tests: return item;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 2641 |
| 892 | }executed 10849 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 10849 |
| 893 | returnexecuted 18 times by 2 tests: return nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
nullptr;executed 18 times by 2 tests: return nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 18 |
| 894 | } | - |
| 895 | | - |
| 896 | int QQuickItemView::indexAt(qreal x, qreal y) const | - |
| 897 | { | - |
| 898 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 899 | const FxViewItem *item = fxViewItemAtPosition(d->visibleItems, x, y); | - |
| 900 | returnexecuted 166 times by 2 tests: return item ? item->index : -1;Executed by:- tst_qquickgridview
- tst_qquicklistview
item ? item->index : -1;executed 166 times by 2 tests: return item ? item->index : -1;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 166 |
| 901 | } | - |
| 902 | | - |
| 903 | QQuickItem *QQuickItemView::itemAt(qreal x, qreal y) const | - |
| 904 | { | - |
| 905 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 906 | const FxViewItem *item = fxViewItemAtPosition(d->visibleItems, x, y); | - |
| 907 | returnexecuted 2493 times by 2 tests: return item ? item->item : nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
item ? item->item : nullptr;executed 2493 times by 2 tests: return item ? item->item : nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 2493 |
| 908 | } | - |
| 909 | | - |
| 910 | void QQuickItemView::forceLayout() | - |
| 911 | { | - |
| 912 | QQuickItemViewPrivate * const d = d_func(); | - |
| 913 | if (isComponentComplete()| TRUE | evaluated 1492 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
&& (d->currentChanges.hasPendingChanges()| TRUE | evaluated 1394 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 98 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
|| d->forceLayout| TRUE | evaluated 40 times by 2 testsEvaluated by:- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 58 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
)) | 0-1492 |
| 914 | d->layout();executed 1434 times by 3 tests: d->layout();Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 1434 |
| 915 | }executed 1492 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 1492 |
| 916 | | - |
| 917 | void QQuickItemViewPrivate::applyPendingChanges() | - |
| 918 | { | - |
| 919 | QQuickItemView * const q = q_func(); | - |
| 920 | if (q->isComponentComplete()| TRUE | evaluated 28413 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1272 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
&& currentChanges.hasPendingChanges()| TRUE | evaluated 4305 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 24108 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 1272-28413 |
| 921 | layout();executed 4305 times by 4 tests: layout();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 4305 |
| 922 | }executed 29685 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 29685 |
| 923 | | - |
| 924 | int QQuickItemViewPrivate::findMoveKeyIndex(QQmlChangeSet::MoveKey key, const QVector<QQmlChangeSet::Change> &changes) const | - |
| 925 | { | - |
| 926 | for (int i=0; i<changes.count()| TRUE | evaluated 94 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
; i++) { | 0-94 |
| 927 | for (int j=changes[i].index; j<changes[i].index + changes[i].count| TRUE | evaluated 160 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 4 times by 1 test |
; j++) { | 4-160 |
| 928 | if (changes[i].moveKey(j) == key| TRUE | evaluated 90 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 70 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 70-90 |
| 929 | returnexecuted 90 times by 2 tests: return j;Executed by:- tst_qquickgridview
- tst_qquicklistview
j;executed 90 times by 2 tests: return j;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 90 |
| 930 | }executed 70 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 70 |
| 931 | }executed 4 times by 1 test: end of block | 4 |
| 932 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 933 | } | - |
| 934 | | - |
| 935 | qreal QQuickItemViewPrivate::minExtentForAxis(const AxisData &axisData, bool forXAxis) const | - |
| 936 | { | - |
| 937 | const QQuickItemView * const q = q_func(); | - |
| 938 | | - |
| 939 | qreal highlightStart; | - |
| 940 | qreal highlightEnd; | - |
| 941 | qreal endPositionFirstItem = 0; | - |
| 942 | qreal extent = -startPosition() + axisData.startMargin; | - |
| 943 | if (isContentFlowReversed()| TRUE | evaluated 6324 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 31780 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 6324-31780 |
| 944 | if (model && model->count()| TRUE | evaluated 5634 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 136 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 136-5634 |
| 945 | endPositionFirstItem = positionAt(model->count()-1);executed 5634 times by 2 tests: endPositionFirstItem = positionAt(model->count()-1);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 5634 |
| 946 | else | - |
| 947 | extent += headerSize();executed 690 times by 2 tests: extent += headerSize();Executed by:- tst_qquickgridview
- tst_qquicklistview
| 690 |
| 948 | highlightStart = highlightRangeEndValid| TRUE | evaluated 4986 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 1338 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
? size() - highlightRangeEnd : size(); | 1338-4986 |
| 949 | highlightEnd = highlightRangeStartValid| TRUE | evaluated 4986 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 1338 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
? size() - highlightRangeStart : size(); | 1338-4986 |
| 950 | extent += footerSize(); | - |
| 951 | qreal maxExtentAlongAxis = forXAxis| TRUE | evaluated 3242 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 3082 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
? q->maxXExtent() : q->maxYExtent(); | 3082-3242 |
| 952 | if (extent < maxExtentAlongAxis| TRUE | evaluated 768 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 5556 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 768-5556 |
| 953 | extent = maxExtentAlongAxis;executed 768 times by 2 tests: extent = maxExtentAlongAxis;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 768 |
| 954 | }executed 6324 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else { | 6324 |
| 955 | endPositionFirstItem = endPositionAt(0); | - |
| 956 | highlightStart = highlightRangeStart; | - |
| 957 | highlightEnd = highlightRangeEnd; | - |
| 958 | extent += headerSize(); | - |
| 959 | }executed 31780 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 31780 |
| 960 | if (haveHighlightRange| TRUE | evaluated 1974 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 36130 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& highlightRange == QQuickItemView::StrictlyEnforceRange| TRUE | evaluated 1884 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 90 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 90-36130 |
| 961 | extent += highlightStart; | - |
| 962 | FxViewItem *firstItem = visibleItem(0); | - |
| 963 | if (firstItem| TRUE | evaluated 1128 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 756 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 756-1128 |
| 964 | extent -= firstItem->sectionSize();executed 1128 times by 3 tests: extent -= firstItem->sectionSize();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 1128 |
| 965 | extent = isContentFlowReversed()| TRUE | evaluated 686 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 1198 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
| 686-1198 |
| 966 | ? qMin(extent, endPositionFirstItem + highlightEnd) | - |
| 967 | : qMax(extent, -(endPositionFirstItem - highlightEnd)); | - |
| 968 | }executed 1884 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 1884 |
| 969 | returnexecuted 38104 times by 12 tests: return extent;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
extent;executed 38104 times by 12 tests: return extent;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 38104 |
| 970 | } | - |
| 971 | | - |
| 972 | qreal QQuickItemViewPrivate::maxExtentForAxis(const AxisData &axisData, bool forXAxis) const | - |
| 973 | { | - |
| 974 | const QQuickItemView * const q = q_func(); | - |
| 975 | | - |
| 976 | qreal highlightStart; | - |
| 977 | qreal highlightEnd; | - |
| 978 | qreal lastItemPosition = 0; | - |
| 979 | qreal extent = 0; | - |
| 980 | if (isContentFlowReversed()| TRUE | evaluated 6324 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 31780 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 6324-31780 |
| 981 | highlightStart = highlightRangeEndValid| TRUE | evaluated 4986 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 1338 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
? size() - highlightRangeEnd : size(); | 1338-4986 |
| 982 | highlightEnd = highlightRangeStartValid| TRUE | evaluated 4986 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 1338 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
? size() - highlightRangeStart : size(); | 1338-4986 |
| 983 | lastItemPosition = endPosition(); | - |
| 984 | }executed 6324 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else { | 6324 |
| 985 | highlightStart = highlightRangeStart; | - |
| 986 | highlightEnd = highlightRangeEnd; | - |
| 987 | if (model && model->count()| TRUE | evaluated 21268 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2928 times by 8 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) | 2928-21268 |
| 988 | lastItemPosition = positionAt(model->count()-1);executed 21268 times by 11 tests: lastItemPosition = positionAt(model->count()-1);Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 21268 |
| 989 | }executed 31780 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 31780 |
| 990 | if (!model| TRUE | evaluated 8138 times by 5 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 29966 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
|| !model->count()| TRUE | evaluated 3064 times by 8 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 26902 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 3064-29966 |
| 991 | if (!isContentFlowReversed()| TRUE | evaluated 10512 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 690 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 690-10512 |
| 992 | maxExtent = header| TRUE | evaluated 156 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 10356 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
? -headerSize() : 0;executed 10512 times by 9 tests: maxExtent = header ? -headerSize() : 0;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 156-10512 |
| 993 | extent += forXAxis| TRUE | evaluated 1212 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 9990 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
? q->width() : q->height(); | 1212-9990 |
| 994 | }executed 11202 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
else if (haveHighlightRange| TRUE | evaluated 1848 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 25054 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& highlightRange == QQuickItemView::StrictlyEnforceRange| TRUE | evaluated 1772 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 76 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 76-25054 |
| 995 | extent = -(lastItemPosition - highlightStart); | - |
| 996 | if (highlightEnd != highlightStart| TRUE | evaluated 1234 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 538 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 538-1234 |
| 997 | extent = isContentFlowReversed()| TRUE | evaluated 568 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 666 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
| 568-666 |
| 998 | ? qMax(extent, -(endPosition() - highlightEnd)) | - |
| 999 | : qMin(extent, -(endPosition() - highlightEnd)); | - |
| 1000 | }executed 1234 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 1234 |
| 1001 | }executed 1772 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
else { | 1772 |
| 1002 | extent = -(endPosition() - (forXAxis ? q->width() : q->height())); | - |
| 1003 | }executed 25130 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 25130 |
| 1004 | if (isContentFlowReversed()| TRUE | evaluated 6324 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 31780 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 6324-31780 |
| 1005 | extent -= headerSize(); | - |
| 1006 | extent -= axisData.endMargin; | - |
| 1007 | }executed 6324 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else { | 6324 |
| 1008 | extent -= footerSize(); | - |
| 1009 | extent -= axisData.endMargin; | - |
| 1010 | qreal minExtentAlongAxis = forXAxis| TRUE | evaluated 4044 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 27736 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
? q->minXExtent() : q->minYExtent(); | 4044-27736 |
| 1011 | if (extent > minExtentAlongAxis| TRUE | evaluated 13177 times by 10 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 18603 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) | 13177-18603 |
| 1012 | extent = minExtentAlongAxis;executed 13177 times by 10 tests: extent = minExtentAlongAxis;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 13177 |
| 1013 | }executed 31780 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 31780 |
| 1014 | | - |
| 1015 | returnexecuted 38104 times by 12 tests: return extent;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
extent;executed 38104 times by 12 tests: return extent;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 38104 |
| 1016 | } | - |
| 1017 | | - |
| 1018 | qreal QQuickItemViewPrivate::calculatedMinExtent() const | - |
| 1019 | { | - |
| 1020 | const QQuickItemView * const q = q_func(); | - |
| 1021 | qreal minExtent; | - |
| 1022 | if (layoutOrientation() == Qt::Vertical| TRUE | evaluated 278 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 140 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 140-278 |
| 1023 | minExtent = isContentFlowReversed()| TRUE | evaluated 28 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 250 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
? q->maxYExtent() - size(): -q->minYExtent();executed 278 times by 4 tests: minExtent = isContentFlowReversed() ? q->maxYExtent() - size(): -q->minYExtent();Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 28-278 |
| 1024 | else | - |
| 1025 | minExtent = isContentFlowReversed()| TRUE | evaluated 54 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 86 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
? q->maxXExtent() - size(): -q->minXExtent();executed 140 times by 3 tests: minExtent = isContentFlowReversed() ? q->maxXExtent() - size(): -q->minXExtent();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 54-140 |
| 1026 | returnexecuted 418 times by 5 tests: return minExtent;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
minExtent;executed 418 times by 5 tests: return minExtent;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 418 |
| 1027 | | - |
| 1028 | } | - |
| 1029 | | - |
| 1030 | qreal QQuickItemViewPrivate::calculatedMaxExtent() const | - |
| 1031 | { | - |
| 1032 | const QQuickItemView * const q = q_func(); | - |
| 1033 | qreal maxExtent; | - |
| 1034 | if (layoutOrientation() == Qt::Vertical| TRUE | evaluated 282 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 140 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 140-282 |
| 1035 | maxExtent = isContentFlowReversed()| TRUE | evaluated 28 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 254 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
? q->minYExtent() - size(): -q->maxYExtent();executed 282 times by 4 tests: maxExtent = isContentFlowReversed() ? q->minYExtent() - size(): -q->maxYExtent();Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 28-282 |
| 1036 | else | - |
| 1037 | maxExtent = isContentFlowReversed()| TRUE | evaluated 54 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 86 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
? q->minXExtent() - size(): -q->maxXExtent();executed 140 times by 3 tests: maxExtent = isContentFlowReversed() ? q->minXExtent() - size(): -q->maxXExtent();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 54-140 |
| 1038 | returnexecuted 422 times by 5 tests: return maxExtent;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
maxExtent;executed 422 times by 5 tests: return maxExtent;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 422 |
| 1039 | } | - |
| 1040 | | - |
| 1041 | | - |
| 1042 | void QQuickItemViewPrivate::checkVisible() const | - |
| 1043 | { | - |
| 1044 | int skip = 0; | - |
| 1045 | for (int i = 0; i < visibleItems.count()| TRUE | never evaluated | | FALSE | never evaluated |
; ++i) { | 0 |
| 1046 | FxViewItem *item = visibleItems.at(i); | - |
| 1047 | if (item->index == -1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 1048 | ++skip; | - |
| 1049 | } never executed: end of block else if (item->index != visibleIndex + i - skip| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 1050 | QMessageLogger(__FILE__, 1092, __PRETTY_FUNCTION__).fatal("index %d %d %d", visibleIndex, i, item->index); | - |
| 1051 | } never executed: end of block | 0 |
| 1052 | } never executed: end of block | 0 |
| 1053 | } never executed: end of block | 0 |
| 1054 | | - |
| 1055 | | - |
| 1056 | void QQuickItemViewPrivate::showVisibleItems() const | - |
| 1057 | { | - |
| 1058 | QMessageLogger(__FILE__, 1100, __PRETTY_FUNCTION__).debug() << "Visible items:"; | - |
| 1059 | for (FxViewItem *item : visibleItems) { | - |
| 1060 | QMessageLogger(__FILE__, 1102, __PRETTY_FUNCTION__).debug() << "\t" << item->index | - |
| 1061 | << item->item->objectName() | - |
| 1062 | << item->position(); | - |
| 1063 | } never executed: end of block | 0 |
| 1064 | } never executed: end of block | 0 |
| 1065 | | - |
| 1066 | void QQuickItemViewPrivate::itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, | - |
| 1067 | const QRectF &oldGeometry) | - |
| 1068 | { | - |
| 1069 | QQuickItemView * const q = q_func(); | - |
| 1070 | QQuickFlickablePrivate::itemGeometryChanged(item, change, oldGeometry); | - |
| 1071 | if (!q->isComponentComplete()| TRUE | evaluated 6624 times by 8 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 181881 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 6624-181881 |
| 1072 | return;executed 6624 times by 8 tests: return;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 6624 |
| 1073 | | - |
| 1074 | if (header| TRUE | evaluated 8065 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 173816 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& header->item == item| TRUE | evaluated 542 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 7523 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 542-173816 |
| 1075 | updateHeader(); | - |
| 1076 | markExtentsDirty(); | - |
| 1077 | updateViewport(); | - |
| 1078 | if (!q->isMoving()| TRUE | evaluated 542 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
&& !q->isFlicking()| TRUE | evaluated 542 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) | 0-542 |
| 1079 | fixupPosition();executed 542 times by 3 tests: fixupPosition();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 542 |
| 1080 | }executed 542 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
else if (footer| TRUE | evaluated 6661 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 174678 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& footer->item == item| TRUE | evaluated 626 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 6035 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 542-174678 |
| 1081 | updateFooter(); | - |
| 1082 | markExtentsDirty(); | - |
| 1083 | updateViewport(); | - |
| 1084 | if (!q->isMoving()| TRUE | evaluated 626 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
&& !q->isFlicking()| TRUE | evaluated 626 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) | 0-626 |
| 1085 | fixupPosition();executed 626 times by 3 tests: fixupPosition();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 626 |
| 1086 | }executed 626 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 626 |
| 1087 | | - |
| 1088 | if (currentItem| TRUE | evaluated 122212 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 59669 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& currentItem->item == item| TRUE | evaluated 5062 times by 5 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 117150 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 5062-122212 |
| 1089 | | - |
| 1090 | | - |
| 1091 | bool prevInLayout = inLayout; | - |
| 1092 | if (!inLayout| TRUE | evaluated 2704 times by 5 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2358 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 2358-2704 |
| 1093 | FxViewItem *actualItem = transitioner| TRUE | evaluated 2296 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 408 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
? visibleItem(currentIndex) : nullptr; | 408-2296 |
| 1094 | if (actualItem| TRUE | evaluated 2292 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 412 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& actualItem->transitionRunning()| TRUE | evaluated 2292 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | never evaluated |
) | 0-2292 |
| 1095 | inLayout = true;executed 2292 times by 3 tests: inLayout = true;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 2292 |
| 1096 | }executed 2704 times by 5 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 2704 |
| 1097 | updateHighlight(); | - |
| 1098 | inLayout = prevInLayout; | - |
| 1099 | }executed 5062 times by 5 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 5062 |
| 1100 | | - |
| 1101 | if (trackedItem| TRUE | evaluated 115866 times by 6 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 66015 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& trackedItem->item == item| TRUE | evaluated 10703 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 105163 times by 6 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 10703-115866 |
| 1102 | q->trackedPositionChanged();executed 10703 times by 4 tests: q->trackedPositionChanged();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 10703 |
| 1103 | }executed 181881 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 181881 |
| 1104 | | - |
| 1105 | void QQuickItemView::destroyRemoved() | - |
| 1106 | { | - |
| 1107 | QQuickItemViewPrivate * const d = d_func(); | - |
| 1108 | | - |
| 1109 | bool hasRemoveTransition = false; | - |
| 1110 | bool hasRemoveTransitionAsTarget = false; | - |
| 1111 | if (d->transitioner| TRUE | evaluated 24 times by 1 test | | FALSE | evaluated 68 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 24-68 |
| 1112 | hasRemoveTransition = d->transitioner->canTransition(QQuickItemViewTransitioner::RemoveTransition, false); | - |
| 1113 | hasRemoveTransitionAsTarget = d->transitioner->canTransition(QQuickItemViewTransitioner::RemoveTransition, true); | - |
| 1114 | }executed 24 times by 1 test: end of block | 24 |
| 1115 | | - |
| 1116 | for (QList<FxViewItem*>::Iterator it = d->visibleItems.begin(); | - |
| 1117 | it != d->visibleItems.end()| TRUE | evaluated 240 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 92 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
;) { | 92-240 |
| 1118 | FxViewItem *item = *it; | - |
| 1119 | if (item->index == -1| TRUE | evaluated 92 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 148 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
&& (!item->attached| TRUE | never evaluated | | FALSE | evaluated 92 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
|| item->attached->delayRemove() == false| TRUE | evaluated 92 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
)) { | 0-148 |
| 1120 | if (hasRemoveTransitionAsTarget| TRUE | never evaluated | | FALSE | evaluated 92 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 0-92 |
| 1121 | | - |
| 1122 | d->runDelayedRemoveTransition = true; | - |
| 1123 | QObject::disconnect(item->attached, qFlagLocation("2""delayRemoveChanged()" "\0" __FILE__ ":" "1165"), this, qFlagLocation("1""destroyRemoved()" "\0" __FILE__ ":" "1165")); | - |
| 1124 | ++it; | - |
| 1125 | } never executed: end of block else { | 0 |
| 1126 | if (hasRemoveTransition| TRUE | evaluated 24 times by 1 test | | FALSE | evaluated 68 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 24-68 |
| 1127 | d->runDelayedRemoveTransition = true;executed 24 times by 1 test: d->runDelayedRemoveTransition = true; | 24 |
| 1128 | d->releaseItem(item); | - |
| 1129 | it = d->visibleItems.erase(it); | - |
| 1130 | }executed 92 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 92 |
| 1131 | } else { | - |
| 1132 | ++it; | - |
| 1133 | }executed 148 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 148 |
| 1134 | } | - |
| 1135 | | - |
| 1136 | | - |
| 1137 | d->forceLayoutPolish(); | - |
| 1138 | }executed 92 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 92 |
| 1139 | | - |
| 1140 | void QQuickItemView::modelUpdated(const QQmlChangeSet &changeSet, bool reset) | - |
| 1141 | { | - |
| 1142 | QQuickItemViewPrivate * const d = d_func(); | - |
| 1143 | if (reset| TRUE | evaluated 36 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 16876 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 36-16876 |
| 1144 | if (d->transitioner| TRUE | evaluated 24 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 12-24 |
| 1145 | d->transitioner->setPopulateTransitionEnabled(true);executed 24 times by 2 tests: d->transitioner->setPopulateTransitionEnabled(true);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 24 |
| 1146 | d->moveReason = QQuickItemViewPrivate::SetIndex; | - |
| 1147 | d->regenerate(); | - |
| 1148 | if (d->highlight| TRUE | evaluated 36 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
&& d->currentItem| TRUE | evaluated 36 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-36 |
| 1149 | if (d->autoHighlight| TRUE | evaluated 36 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) | 0-36 |
| 1150 | d->resetHighlightPosition();executed 36 times by 2 tests: d->resetHighlightPosition();Executed by:- tst_qquickgridview
- tst_qquicklistview
| 36 |
| 1151 | d->updateTrackedItem(); | - |
| 1152 | }executed 36 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 36 |
| 1153 | d->moveReason = QQuickItemViewPrivate::Other; | - |
| 1154 | countChanged(); | - |
| 1155 | if (d->transitioner| TRUE | evaluated 24 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
&& d->transitioner->populateTransition) | 12-24 |
| 1156 | d->forceLayoutPolish();executed 12 times by 2 tests: d->forceLayoutPolish();Executed by:- tst_qquickgridview
- tst_qquicklistview
| 12 |
| 1157 | }executed 36 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else { | 36 |
| 1158 | if (d->inLayout| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 16874 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 2-16874 |
| 1159 | d->bufferedChanges.prepare(d->currentIndex, d->itemCount); | - |
| 1160 | d->bufferedChanges.applyChanges(changeSet); | - |
| 1161 | }executed 2 times by 1 test: end of block else { | 2 |
| 1162 | if (d->bufferedChanges.hasPendingChanges()| TRUE | never evaluated | | FALSE | evaluated 16874 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 0-16874 |
| 1163 | d->currentChanges.applyBufferedChanges(d->bufferedChanges); | - |
| 1164 | d->bufferedChanges.reset(); | - |
| 1165 | } never executed: end of block | 0 |
| 1166 | d->currentChanges.prepare(d->currentIndex, d->itemCount); | - |
| 1167 | d->currentChanges.applyChanges(changeSet); | - |
| 1168 | }executed 16874 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 16874 |
| 1169 | polish(); | - |
| 1170 | }executed 16876 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 16876 |
| 1171 | } | - |
| 1172 | | - |
| 1173 | void QQuickItemView::animStopped() | - |
| 1174 | { | - |
| 1175 | QQuickItemViewPrivate * const d = d_func(); | - |
| 1176 | d->bufferMode = QQuickItemViewPrivate::BufferBefore | QQuickItemViewPrivate::BufferAfter; | - |
| 1177 | d->refillOrLayout(); | - |
| 1178 | if (d->haveHighlightRange| TRUE | evaluated 212 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 233 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
&& d->highlightRange == QQuickItemView::StrictlyEnforceRange| TRUE | evaluated 212 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) | 0-233 |
| 1179 | d->updateHighlight();executed 212 times by 2 tests: d->updateHighlight();Executed by:- tst_qquickgridview
- tst_qquicklistview
| 212 |
| 1180 | }executed 445 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 445 |
| 1181 | | - |
| 1182 | | - |
| 1183 | void QQuickItemView::trackedPositionChanged() | - |
| 1184 | { | - |
| 1185 | QQuickItemViewPrivate * const d = d_func(); | - |
| 1186 | if (!d->trackedItem| TRUE | never evaluated | | FALSE | evaluated 34266 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
|| !d->currentItem| TRUE | never evaluated | | FALSE | evaluated 34266 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 0-34266 |
| 1187 | return; never executed: return; | 0 |
| 1188 | if (d->moveReason == QQuickItemViewPrivate::SetIndex| TRUE | evaluated 13589 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 20677 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 13589-20677 |
| 1189 | qreal trackedPos = d->trackedItem->position(); | - |
| 1190 | qreal trackedSize = d->trackedItem->size(); | - |
| 1191 | qreal viewPos = d->isContentFlowReversed()| TRUE | evaluated 2032 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 11557 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
? -d->position()-d->size() : d->position(); | 2032-11557 |
| 1192 | qreal pos = viewPos; | - |
| 1193 | if (d->haveHighlightRange| TRUE | evaluated 1032 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 12557 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 1032-12557 |
| 1194 | if (trackedPos > pos + d->highlightRangeEnd - trackedSize| TRUE | evaluated 858 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 174 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 174-858 |
| 1195 | pos = trackedPos - d->highlightRangeEnd + trackedSize;executed 858 times by 3 tests: pos = trackedPos - d->highlightRangeEnd + trackedSize;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 858 |
| 1196 | if (trackedPos < pos + d->highlightRangeStart| TRUE | evaluated 882 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 150 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 150-882 |
| 1197 | pos = trackedPos - d->highlightRangeStart;executed 882 times by 3 tests: pos = trackedPos - d->highlightRangeStart;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 882 |
| 1198 | if (d->highlightRange != StrictlyEnforceRange| TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 996 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 36-996 |
| 1199 | qreal maxExtent = d->calculatedMaxExtent(); | - |
| 1200 | if (pos > maxExtent| TRUE | never evaluated | | FALSE | evaluated 36 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 0-36 |
| 1201 | pos = maxExtent; never executed: pos = maxExtent; | 0 |
| 1202 | qreal minExtent = d->calculatedMinExtent(); | - |
| 1203 | if (pos < minExtent| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 28 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 8-28 |
| 1204 | pos = minExtent;executed 8 times by 1 test: pos = minExtent; | 8 |
| 1205 | }executed 36 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 36 |
| 1206 | }executed 1032 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
else { | 1032 |
| 1207 | if (d->trackedItem != d->currentItem| TRUE | evaluated 12557 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-12557 |
| 1208 | | - |
| 1209 | trackedPos -= d->currentItem->sectionSize(); | - |
| 1210 | trackedSize += d->currentItem->sectionSize(); | - |
| 1211 | }executed 12557 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 12557 |
| 1212 | qreal trackedEndPos = d->trackedItem->endPosition(); | - |
| 1213 | qreal toItemPos = d->currentItem->position(); | - |
| 1214 | qreal toItemEndPos = d->currentItem->endPosition(); | - |
| 1215 | if (d->showHeaderForIndex(d->currentIndex)| TRUE | evaluated 8868 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3689 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 3689-8868 |
| 1216 | qreal startOffset = -d->contentStartOffset(); | - |
| 1217 | trackedPos -= startOffset; | - |
| 1218 | trackedEndPos -= startOffset; | - |
| 1219 | toItemPos -= startOffset; | - |
| 1220 | toItemEndPos -= startOffset; | - |
| 1221 | }executed 8868 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
else if (d->showFooterForIndex(d->currentIndex)| TRUE | evaluated 720 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2969 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 720-8868 |
| 1222 | qreal endOffset = d->footerSize(); | - |
| 1223 | if (d->layoutOrientation() == Qt::Vertical| TRUE | evaluated 692 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 28 times by 1 test |
) { | 28-692 |
| 1224 | if (d->isContentFlowReversed()| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 676 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 16-676 |
| 1225 | endOffset += d->vData.startMargin;executed 16 times by 1 test: endOffset += d->vData.startMargin; | 16 |
| 1226 | else | - |
| 1227 | endOffset += d->vData.endMargin;executed 676 times by 2 tests: endOffset += d->vData.endMargin;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 676 |
| 1228 | } else { | - |
| 1229 | if (d->isContentFlowReversed()| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 12 times by 1 test |
) | 12-16 |
| 1230 | endOffset += d->hData.startMargin;executed 16 times by 1 test: endOffset += d->hData.startMargin; | 16 |
| 1231 | else | - |
| 1232 | endOffset += d->hData.endMargin;executed 12 times by 1 test: endOffset += d->hData.endMargin; | 12 |
| 1233 | } | - |
| 1234 | trackedPos += endOffset; | - |
| 1235 | trackedEndPos += endOffset; | - |
| 1236 | toItemPos += endOffset; | - |
| 1237 | toItemEndPos += endOffset; | - |
| 1238 | }executed 720 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 720 |
| 1239 | | - |
| 1240 | if (trackedEndPos >= viewPos + d->size()| TRUE | evaluated 1411 times by 6 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 11146 times by 10 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
| 1411-11146 |
| 1241 | && toItemEndPos >= viewPos + d->size()| TRUE | evaluated 1190 times by 6 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 221 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 221-1190 |
| 1242 | if (trackedEndPos <= toItemEndPos| TRUE | evaluated 1100 times by 6 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 90 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 90-1100 |
| 1243 | pos = trackedEndPos - d->size(); | - |
| 1244 | if (trackedSize > d->size()| TRUE | evaluated 132 times by 4 testsEvaluated by:- tst_examples
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 968 times by 4 testsEvaluated by:- tst_qqmllistmodel
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 132-968 |
| 1245 | pos = trackedPos;executed 132 times by 4 tests: pos = trackedPos;Executed by:- tst_examples
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
| 132 |
| 1246 | }executed 1100 times by 6 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
else { | 1100 |
| 1247 | pos = toItemEndPos - d->size(); | - |
| 1248 | if (d->currentItem->size() > d->size()| TRUE | evaluated 18 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 72 times by 1 test |
) | 18-72 |
| 1249 | pos = d->currentItem->position();executed 18 times by 2 tests: pos = d->currentItem->position();Executed by:- tst_qquickgridview
- tst_qquicklistview
| 18 |
| 1250 | }executed 90 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 90 |
| 1251 | } | - |
| 1252 | if (trackedPos < pos| TRUE | evaluated 1303 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 11254 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& toItemPos < pos| TRUE | evaluated 375 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 928 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 375-11254 |
| 1253 | pos = qMax(trackedPos, toItemPos);executed 375 times by 3 tests: pos = qMax(trackedPos, toItemPos);Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 375 |
| 1254 | }executed 12557 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 12557 |
| 1255 | if (viewPos != pos| TRUE | evaluated 1436 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 12153 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 1436-12153 |
| 1256 | d->calcVelocity = true; | - |
| 1257 | d->setPosition(pos); | - |
| 1258 | d->calcVelocity = false; | - |
| 1259 | }executed 1436 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 1436 |
| 1260 | }executed 13589 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 13589 |
| 1261 | }executed 34266 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 34266 |
| 1262 | | - |
| 1263 | void QQuickItemView::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) | - |
| 1264 | { | - |
| 1265 | QQuickItemViewPrivate * const d = d_func(); | - |
| 1266 | d->markExtentsDirty(); | - |
| 1267 | if (isComponentComplete()| TRUE | evaluated 1024 times by 6 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 6792 times by 8 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
&& (d->isValid()| TRUE | evaluated 900 times by 6 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 124 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
|| !d->visibleItems.isEmpty()| TRUE | never evaluated | | FALSE | evaluated 124 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
)) | 0-6792 |
| 1268 | d->forceLayoutPolish();executed 900 times by 6 tests: d->forceLayoutPolish();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 900 |
| 1269 | QQuickFlickable::geometryChanged(newGeometry, oldGeometry); | - |
| 1270 | }executed 7816 times by 10 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 7816 |
| 1271 | | - |
| 1272 | qreal QQuickItemView::minYExtent() const | - |
| 1273 | { | - |
| 1274 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 1275 | if (d->layoutOrientation() == Qt::Horizontal| TRUE | evaluated 17335 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 141730 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 17335-141730 |
| 1276 | returnexecuted 17335 times by 3 tests: return QQuickFlickable::minYExtent();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
QQuickFlickable::minYExtent();executed 17335 times by 3 tests: return QQuickFlickable::minYExtent();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 17335 |
| 1277 | | - |
| 1278 | if (d->vData.minExtentDirty| TRUE | evaluated 30818 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 110912 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 30818-110912 |
| 1279 | d->minExtent = d->minExtentForAxis(d->vData, false); | - |
| 1280 | d->vData.minExtentDirty = false; | - |
| 1281 | }executed 30818 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 30818 |
| 1282 | | - |
| 1283 | returnexecuted 141730 times by 12 tests: return d->minExtent;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
d->minExtent;executed 141730 times by 12 tests: return d->minExtent;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 141730 |
| 1284 | } | - |
| 1285 | | - |
| 1286 | qreal QQuickItemView::maxYExtent() const | - |
| 1287 | { | - |
| 1288 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 1289 | if (d->layoutOrientation() == Qt::Horizontal| TRUE | evaluated 16429 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 86694 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 16429-86694 |
| 1290 | returnexecuted 16429 times by 3 tests: return height();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
height();executed 16429 times by 3 tests: return height();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 16429 |
| 1291 | | - |
| 1292 | if (d->vData.maxExtentDirty| TRUE | evaluated 30818 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 55876 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 30818-55876 |
| 1293 | d->maxExtent = d->maxExtentForAxis(d->vData, false); | - |
| 1294 | d->vData.maxExtentDirty = false; | - |
| 1295 | }executed 30818 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 30818 |
| 1296 | | - |
| 1297 | returnexecuted 86694 times by 12 tests: return d->maxExtent;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
d->maxExtent;executed 86694 times by 12 tests: return d->maxExtent;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 86694 |
| 1298 | } | - |
| 1299 | | - |
| 1300 | qreal QQuickItemView::minXExtent() const | - |
| 1301 | { | - |
| 1302 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 1303 | if (d->layoutOrientation() == Qt::Vertical| TRUE | evaluated 48208 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 48324 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 48208-48324 |
| 1304 | returnexecuted 48208 times by 12 tests: return QQuickFlickable::minXExtent();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
QQuickFlickable::minXExtent();executed 48208 times by 12 tests: return QQuickFlickable::minXExtent();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 48208 |
| 1305 | | - |
| 1306 | if (d->hData.minExtentDirty| TRUE | evaluated 7286 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 41038 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 7286-41038 |
| 1307 | d->minExtent = d->minExtentForAxis(d->hData, true); | - |
| 1308 | d->hData.minExtentDirty = false; | - |
| 1309 | }executed 7286 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 7286 |
| 1310 | | - |
| 1311 | returnexecuted 48324 times by 3 tests: return d->minExtent;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
d->minExtent;executed 48324 times by 3 tests: return d->minExtent;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 48324 |
| 1312 | } | - |
| 1313 | | - |
| 1314 | qreal QQuickItemView::maxXExtent() const | - |
| 1315 | { | - |
| 1316 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 1317 | if (d->layoutOrientation() == Qt::Vertical| TRUE | evaluated 43177 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 42106 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 42106-43177 |
| 1318 | returnexecuted 43177 times by 12 tests: return width();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
width();executed 43177 times by 12 tests: return width();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 43177 |
| 1319 | | - |
| 1320 | if (d->hData.maxExtentDirty| TRUE | evaluated 7286 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 34820 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 7286-34820 |
| 1321 | d->maxExtent = d->maxExtentForAxis(d->hData, true); | - |
| 1322 | d->hData.maxExtentDirty = false; | - |
| 1323 | }executed 7286 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 7286 |
| 1324 | | - |
| 1325 | returnexecuted 42106 times by 3 tests: return d->maxExtent;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
d->maxExtent;executed 42106 times by 3 tests: return d->maxExtent;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 42106 |
| 1326 | } | - |
| 1327 | | - |
| 1328 | void QQuickItemView::setContentX(qreal pos) | - |
| 1329 | { | - |
| 1330 | QQuickItemViewPrivate * const d = d_func(); | - |
| 1331 | | - |
| 1332 | d->moveReason = QQuickItemViewPrivate::Other; | - |
| 1333 | QQuickFlickable::setContentX(pos); | - |
| 1334 | }executed 1522 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 1522 |
| 1335 | | - |
| 1336 | void QQuickItemView::setContentY(qreal pos) | - |
| 1337 | { | - |
| 1338 | QQuickItemViewPrivate * const d = d_func(); | - |
| 1339 | | - |
| 1340 | d->moveReason = QQuickItemViewPrivate::Other; | - |
| 1341 | QQuickFlickable::setContentY(pos); | - |
| 1342 | }executed 2336 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 2336 |
| 1343 | | - |
| 1344 | qreal QQuickItemView::originX() const | - |
| 1345 | { | - |
| 1346 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 1347 | if (d->layoutOrientation() == Qt::Horizontal| TRUE | evaluated 5883 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 98 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
| 98-5883 |
| 1348 | && effectiveLayoutDirection() == Qt::RightToLeft| TRUE | evaluated 2975 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2908 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
| 2908-2975 |
| 1349 | && contentWidth() < width()| TRUE | evaluated 466 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2509 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 466-2509 |
| 1350 | returnexecuted 466 times by 2 tests: return -d->lastPosition() - d->footerSize();Executed by:- tst_qquickgridview
- tst_qquicklistview
-d->lastPosition() - d->footerSize();executed 466 times by 2 tests: return -d->lastPosition() - d->footerSize();Executed by:- tst_qquickgridview
- tst_qquicklistview
| 466 |
| 1351 | } | - |
| 1352 | returnexecuted 5515 times by 3 tests: return QQuickFlickable::originX();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
QQuickFlickable::originX();executed 5515 times by 3 tests: return QQuickFlickable::originX();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 5515 |
| 1353 | } | - |
| 1354 | | - |
| 1355 | qreal QQuickItemView::originY() const | - |
| 1356 | { | - |
| 1357 | const QQuickItemViewPrivate * const d = d_func(); | - |
| 1358 | if (d->layoutOrientation() == Qt::Vertical| TRUE | evaluated 26133 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 810 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
| 810-26133 |
| 1359 | && d->verticalLayoutDirection == QQuickItemView::BottomToTop| TRUE | evaluated 2828 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 23305 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
| 2828-23305 |
| 1360 | && contentHeight() < height()| TRUE | evaluated 348 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2480 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 348-2480 |
| 1361 | returnexecuted 348 times by 2 tests: return -d->lastPosition() - d->footerSize();Executed by:- tst_qquickgridview
- tst_qquicklistview
-d->lastPosition() - d->footerSize();executed 348 times by 2 tests: return -d->lastPosition() - d->footerSize();Executed by:- tst_qquickgridview
- tst_qquicklistview
| 348 |
| 1362 | } | - |
| 1363 | returnexecuted 26595 times by 12 tests: return QQuickFlickable::originY();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
QQuickFlickable::originY();executed 26595 times by 12 tests: return QQuickFlickable::originY();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 26595 |
| 1364 | } | - |
| 1365 | | - |
| 1366 | void QQuickItemView::updatePolish() | - |
| 1367 | { | - |
| 1368 | QQuickItemViewPrivate * const d = d_func(); | - |
| 1369 | QQuickFlickable::updatePolish(); | - |
| 1370 | d->layout(); | - |
| 1371 | }executed 5570 times by 8 tests: end of blockExecuted by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 5570 |
| 1372 | | - |
| 1373 | void QQuickItemView::componentComplete() | - |
| 1374 | { | - |
| 1375 | QQuickItemViewPrivate * const d = d_func(); | - |
| 1376 | if (d->model && d->ownModel| TRUE | evaluated 2972 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 720 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 720-2972 |
| 1377 | static_cast<executed 2972 times by 11 tests: static_cast<QQmlDelegateModel *>(d->model.data())->componentComplete();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
QQmlDelegateModel *>(d->model.data())->componentComplete();executed 2972 times by 11 tests: static_cast<QQmlDelegateModel *>(d->model.data())->componentComplete();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 2972 |
| 1378 | | - |
| 1379 | QQuickFlickable::componentComplete(); | - |
| 1380 | | - |
| 1381 | d->updateSectionCriteria(); | - |
| 1382 | d->updateHeader(); | - |
| 1383 | d->updateFooter(); | - |
| 1384 | d->updateViewport(); | - |
| 1385 | d->setPosition(d->contentStartOffset()); | - |
| 1386 | if (d->transitioner| TRUE | evaluated 416 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 3286 times by 11 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) | 416-3286 |
| 1387 | d->transitioner->setPopulateTransitionEnabled(true);executed 416 times by 4 tests: d->transitioner->setPopulateTransitionEnabled(true);Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 416 |
| 1388 | | - |
| 1389 | if (d->isValid()| TRUE | evaluated 3386 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 316 times by 5 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 316-3386 |
| 1390 | d->refill(); | - |
| 1391 | d->moveReason = QQuickItemViewPrivate::SetIndex; | - |
| 1392 | if (d->currentIndex < 0| TRUE | evaluated 3358 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 28 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
&& !d->currentIndexCleared| TRUE | evaluated 3354 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 4-3358 |
| 1393 | d->updateCurrent(0);executed 3354 times by 11 tests: d->updateCurrent(0);Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3354 |
| 1394 | else | - |
| 1395 | d->updateCurrent(d->currentIndex);executed 32 times by 3 tests: d->updateCurrent(d->currentIndex);Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 32 |
| 1396 | if (d->highlight| TRUE | evaluated 3376 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
&& d->currentItem| TRUE | evaluated 3376 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-3376 |
| 1397 | if (d->autoHighlight| TRUE | evaluated 3362 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 14 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 14-3362 |
| 1398 | d->resetHighlightPosition();executed 3362 times by 11 tests: d->resetHighlightPosition();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3362 |
| 1399 | d->updateTrackedItem(); | - |
| 1400 | }executed 3376 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3376 |
| 1401 | d->moveReason = QQuickItemViewPrivate::Other; | - |
| 1402 | d->fixupPosition(); | - |
| 1403 | }executed 3386 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3386 |
| 1404 | if (d->model && d->model->count()| TRUE | evaluated 3386 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 306 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 306-3386 |
| 1405 | countChanged();executed 3386 times by 11 tests: countChanged();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3386 |
| 1406 | }executed 3702 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3702 |
| 1407 | | - |
| 1408 | | - |
| 1409 | | - |
| 1410 | QQuickItemViewPrivate::QQuickItemViewPrivate() | - |
| 1411 | : itemCount(0) | - |
| 1412 | , buffer(320), bufferMode(BufferBefore | BufferAfter) | - |
| 1413 | , displayMarginBeginning(0), displayMarginEnd(0) | - |
| 1414 | , layoutDirection(Qt::LeftToRight), verticalLayoutDirection(QQuickItemView::TopToBottom) | - |
| 1415 | , moveReason(Other) | - |
| 1416 | , visibleIndex(0) | - |
| 1417 | , currentIndex(-1), currentItem(nullptr) | - |
| 1418 | , trackedItem(nullptr), requestedIndex(-1) | - |
| 1419 | , highlightComponent(nullptr), highlight(nullptr) | - |
| 1420 | , highlightRange(QQuickItemView::NoHighlightRange) | - |
| 1421 | , highlightRangeStart(0), highlightRangeEnd(0) | - |
| 1422 | , highlightMoveDuration(150) | - |
| 1423 | , headerComponent(nullptr), header(nullptr), footerComponent(nullptr), footer(nullptr) | - |
| 1424 | , transitioner(nullptr) | - |
| 1425 | , minExtent(0), maxExtent(0) | - |
| 1426 | , ownModel(false), wrap(false) | - |
| 1427 | , keyNavigationEnabled(true) | - |
| 1428 | , explicitKeyNavigationEnabled(false) | - |
| 1429 | , inLayout(false), inViewportMoved(false), forceLayout(false), currentIndexCleared(false) | - |
| 1430 | , haveHighlightRange(false), autoHighlight(true), highlightRangeStartValid(false), highlightRangeEndValid(false) | - |
| 1431 | , fillCacheBuffer(false), inRequest(false) | - |
| 1432 | , runDelayedRemoveTransition(false), delegateValidated(false) | - |
| 1433 | { | - |
| 1434 | bufferPause.addAnimationChangeListener(this, QAbstractAnimationJob::Completion); | - |
| 1435 | bufferPause.setLoopCount(1); | - |
| 1436 | bufferPause.setDuration(16); | - |
| 1437 | }executed 3702 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3702 |
| 1438 | | - |
| 1439 | QQuickItemViewPrivate::~QQuickItemViewPrivate() | - |
| 1440 | { | - |
| 1441 | if (transitioner| TRUE | evaluated 416 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 3278 times by 9 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) | 416-3278 |
| 1442 | transitioner->setChangeListener(nullptr);executed 416 times by 4 tests: transitioner->setChangeListener(nullptr);Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 416 |
| 1443 | delete transitioner; | - |
| 1444 | }executed 3694 times by 10 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3694 |
| 1445 | | - |
| 1446 | bool QQuickItemViewPrivate::isValid() const | - |
| 1447 | { | - |
| 1448 | returnexecuted 85180 times by 12 tests: return model && model->count() && model->isValid();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
model && model->count() && model->isValid();executed 85180 times by 12 tests: return model && model->count() && model->isValid();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 85180 |
| 1449 | } | - |
| 1450 | | - |
| 1451 | qreal QQuickItemViewPrivate::position() const | - |
| 1452 | { | - |
| 1453 | const QQuickItemView * const q = q_func(); | - |
| 1454 | returnexecuted 151938 times by 12 tests: return layoutOrientation() == Qt::Vertical ? q->contentY() : q->contentX();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
layoutOrientation() == Qt::Vertical ? q->contentY() : q->contentX();executed 151938 times by 12 tests: return layoutOrientation() == Qt::Vertical ? q->contentY() : q->contentX();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 151938 |
| 1455 | } | - |
| 1456 | | - |
| 1457 | qreal QQuickItemViewPrivate::size() const | - |
| 1458 | { | - |
| 1459 | const QQuickItemView * const q = q_func(); | - |
| 1460 | returnexecuted 129744 times by 12 tests: return layoutOrientation() == Qt::Vertical ? q->height() : q->width();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
layoutOrientation() == Qt::Vertical ? q->height() : q->width();executed 129744 times by 12 tests: return layoutOrientation() == Qt::Vertical ? q->height() : q->width();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 129744 |
| 1461 | } | - |
| 1462 | | - |
| 1463 | qreal QQuickItemViewPrivate::startPosition() const | - |
| 1464 | { | - |
| 1465 | returnexecuted 61288 times by 12 tests: return isContentFlowReversed() ? -lastPosition() : originPosition();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
isContentFlowReversed() ? -lastPosition() : originPosition();executed 61288 times by 12 tests: return isContentFlowReversed() ? -lastPosition() : originPosition();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 61288 |
| 1466 | } | - |
| 1467 | | - |
| 1468 | qreal QQuickItemViewPrivate::endPosition() const | - |
| 1469 | { | - |
| 1470 | returnexecuted 55872 times by 11 tests: return isContentFlowReversed() ? -originPosition() : lastPosition();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
isContentFlowReversed() ? -originPosition() : lastPosition();executed 55872 times by 11 tests: return isContentFlowReversed() ? -originPosition() : lastPosition();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 55872 |
| 1471 | } | - |
| 1472 | | - |
| 1473 | qreal QQuickItemViewPrivate::contentStartOffset() const | - |
| 1474 | { | - |
| 1475 | qreal pos = -headerSize(); | - |
| 1476 | if (layoutOrientation() == Qt::Vertical| TRUE | evaluated 13630 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3276 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 3276-13630 |
| 1477 | if (isContentFlowReversed()| TRUE | evaluated 1577 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 12053 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 1577-12053 |
| 1478 | pos -= vData.endMargin;executed 1577 times by 2 tests: pos -= vData.endMargin;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 1577 |
| 1479 | else | - |
| 1480 | pos -= vData.startMargin;executed 12053 times by 12 tests: pos -= vData.startMargin;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 12053 |
| 1481 | } else { | - |
| 1482 | if (isContentFlowReversed()| TRUE | evaluated 1666 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 1610 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 1610-1666 |
| 1483 | pos -= hData.endMargin;executed 1666 times by 2 tests: pos -= hData.endMargin;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 1666 |
| 1484 | else | - |
| 1485 | pos -= hData.startMargin;executed 1610 times by 3 tests: pos -= hData.startMargin;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 1610 |
| 1486 | } | - |
| 1487 | returnexecuted 16906 times by 12 tests: return pos;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
pos;executed 16906 times by 12 tests: return pos;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 16906 |
| 1488 | } | - |
| 1489 | | - |
| 1490 | int QQuickItemViewPrivate::findLastVisibleIndex(int defaultValue) const | - |
| 1491 | { | - |
| 1492 | for (auto it = visibleItems.rbegin(), end = visibleItems.rend(); it != end| TRUE | evaluated 60738 times by 9 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 4176 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
; ++it) { | 4176-60738 |
| 1493 | auto item = *it; | - |
| 1494 | if (item->index != -1| TRUE | evaluated 60320 times by 9 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 418 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 418-60320 |
| 1495 | returnexecuted 60320 times by 9 tests: return item->index;Executed by:- tst_examples
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
item->index;executed 60320 times by 9 tests: return item->index;Executed by:- tst_examples
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 60320 |
| 1496 | }executed 418 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 418 |
| 1497 | returnexecuted 4176 times by 11 tests: return defaultValue;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
defaultValue;executed 4176 times by 11 tests: return defaultValue;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 4176 |
| 1498 | } | - |
| 1499 | | - |
| 1500 | FxViewItem *QQuickItemViewPrivate::visibleItem(int modelIndex) const { | - |
| 1501 | if (modelIndex >= visibleIndex| TRUE | evaluated 175118 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 5697 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
&& modelIndex < visibleIndex + visibleItems.count()| TRUE | evaluated 117937 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 57181 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 5697-175118 |
| 1502 | for (int i = modelIndex - visibleIndex; i < visibleItems.count()| TRUE | evaluated 119387 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 122 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
; ++i) { | 122-119387 |
| 1503 | FxViewItem *item = visibleItems.at(i); | - |
| 1504 | if (item->index == modelIndex| TRUE | evaluated 117815 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1572 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 1572-117815 |
| 1505 | returnexecuted 117815 times by 11 tests: return item;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
item;executed 117815 times by 11 tests: return item;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 117815 |
| 1506 | }executed 1572 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 1572 |
| 1507 | }executed 122 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 122 |
| 1508 | returnexecuted 63000 times by 12 tests: return nullptr;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
nullptr;executed 63000 times by 12 tests: return nullptr;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 63000 |
| 1509 | } | - |
| 1510 | | - |
| 1511 | | - |
| 1512 | | - |
| 1513 | FxViewItem *QQuickItemViewPrivate::firstVisibleItem() const { | - |
| 1514 | const qreal pos = isContentFlowReversed()| TRUE | evaluated 730 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 3101 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
? -position()-size() : position(); | 730-3101 |
| 1515 | for (FxViewItem *item : visibleItems) { | - |
| 1516 | if (item->index != -1| TRUE | evaluated 7450 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
&& item->endPosition() > pos| TRUE | evaluated 3485 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3965 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 0-7450 |
| 1517 | returnexecuted 3485 times by 3 tests: return item;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
item;executed 3485 times by 3 tests: return item;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 3485 |
| 1518 | }executed 3965 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 3965 |
| 1519 | returnexecuted 346 times by 4 tests: return visibleItems.count() ? visibleItems.first() : 0;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
visibleItems.count() ? visibleItems.first() : 0;executed 346 times by 4 tests: return visibleItems.count() ? visibleItems.first() : 0;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 346 |
| 1520 | } | - |
| 1521 | | - |
| 1522 | int QQuickItemViewPrivate::findLastIndexInView() const | - |
| 1523 | { | - |
| 1524 | const qreal viewEndPos = isContentFlowReversed()| TRUE | evaluated 1497 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 5060 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
? -position() : position() + size(); | 1497-5060 |
| 1525 | for (auto it = visibleItems.rbegin(), end = visibleItems.rend(); it != end| TRUE | evaluated 12586 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 171 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
; ++it) { | 171-12586 |
| 1526 | auto item = *it; | - |
| 1527 | if (item->index != -1| TRUE | evaluated 12366 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 220 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
&& item->position() <= viewEndPos| TRUE | evaluated 6386 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 5980 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 220-12366 |
| 1528 | returnexecuted 6386 times by 8 tests: return item->index;Executed by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
item->index;executed 6386 times by 8 tests: return item->index;Executed by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 6386 |
| 1529 | }executed 6200 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 6200 |
| 1530 | returnexecuted 171 times by 2 tests: return -1;Executed by:- tst_qquickgridview
- tst_qquicklistview
-1;executed 171 times by 2 tests: return -1;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 171 |
| 1531 | } | - |
| 1532 | | - |
| 1533 | | - |
| 1534 | | - |
| 1535 | | - |
| 1536 | int QQuickItemViewPrivate::mapFromModel(int modelIndex) const | - |
| 1537 | { | - |
| 1538 | if (modelIndex < visibleIndex| TRUE | evaluated 129 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2016 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
|| modelIndex >= visibleIndex + visibleItems.count()| TRUE | evaluated 371 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1645 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 129-2016 |
| 1539 | returnexecuted 500 times by 3 tests: return -1;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
-1;executed 500 times by 3 tests: return -1;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 500 |
| 1540 | for (int i = 0; i < visibleItems.count()| TRUE | evaluated 10997 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
; ++i) { | 0-10997 |
| 1541 | FxViewItem *item = visibleItems.at(i); | - |
| 1542 | if (item->index == modelIndex| TRUE | evaluated 1645 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 9352 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 1645-9352 |
| 1543 | returnexecuted 1645 times by 3 tests: return i;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
i;executed 1645 times by 3 tests: return i;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 1645 |
| 1544 | if (item->index > modelIndex| TRUE | never evaluated | | FALSE | evaluated 9352 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 0-9352 |
| 1545 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 1546 | }executed 9352 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 9352 |
| 1547 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 1548 | } | - |
| 1549 | | - |
| 1550 | void QQuickItemViewPrivate::init() | - |
| 1551 | { | - |
| 1552 | QQuickItemView * const q = q_func(); | - |
| 1553 | q->setFlag(QQuickItem::ItemIsFocusScope); | - |
| 1554 | QObject::connect(q, qFlagLocation("2""movementEnded()" "\0" __FILE__ ":" "1596"), q, qFlagLocation("1""animStopped()" "\0" __FILE__ ":" "1596")); | - |
| 1555 | QObject::connect(q, &QQuickFlickable::interactiveChanged, q, &QQuickItemView::keyNavigationEnabledChanged); | - |
| 1556 | q->setFlickableDirection(QQuickFlickable::VerticalFlick); | - |
| 1557 | }executed 3702 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3702 |
| 1558 | | - |
| 1559 | void QQuickItemViewPrivate::updateCurrent(int modelIndex) | - |
| 1560 | { | - |
| 1561 | QQuickItemView * const q = q_func(); | - |
| 1562 | applyPendingChanges(); | - |
| 1563 | if (!q->isComponentComplete()| TRUE | never evaluated | | FALSE | evaluated 6869 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
|| !isValid()| TRUE | evaluated 132 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 6737 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
|| modelIndex < 0| TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 6725 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
|| modelIndex >= model->count()| TRUE | never evaluated | | FALSE | evaluated 6725 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 0-6869 |
| 1564 | if (currentItem| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 136 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 8-136 |
| 1565 | if (currentItem->attached| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) | 0-8 |
| 1566 | currentItem->attached->setIsCurrentItem(false);executed 8 times by 2 tests: currentItem->attached->setIsCurrentItem(false);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 8 |
| 1567 | releaseItem(currentItem); | - |
| 1568 | currentItem = nullptr; | - |
| 1569 | currentIndex = modelIndex; | - |
| 1570 | q->currentIndexChanged(); | - |
| 1571 | q->currentItemChanged(); | - |
| 1572 | updateHighlight(); | - |
| 1573 | }executed 8 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else if (currentIndex != modelIndex| TRUE | evaluated 100 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 36 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 8-100 |
| 1574 | currentIndex = modelIndex; | - |
| 1575 | q->currentIndexChanged(); | - |
| 1576 | }executed 100 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 100 |
| 1577 | return;executed 144 times by 2 tests: return;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 144 |
| 1578 | } | - |
| 1579 | | - |
| 1580 | if (currentItem| TRUE | evaluated 1867 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 4858 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& currentIndex == modelIndex| TRUE | evaluated 47 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1820 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 47-4858 |
| 1581 | updateHighlight(); | - |
| 1582 | return;executed 47 times by 4 tests: return;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 47 |
| 1583 | } | - |
| 1584 | | - |
| 1585 | FxViewItem *oldCurrentItem = currentItem; | - |
| 1586 | int oldCurrentIndex = currentIndex; | - |
| 1587 | currentIndex = modelIndex; | - |
| 1588 | currentItem = createItem(modelIndex, QQmlIncubator::AsynchronousIfNested); | - |
| 1589 | if (oldCurrentItem| TRUE | evaluated 1820 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 4858 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& oldCurrentItem->attached| TRUE | evaluated 1820 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
&& (!currentItem| TRUE | never evaluated | | FALSE | evaluated 1820 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
|| oldCurrentItem->item != currentItem->item| TRUE | evaluated 1020 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 800 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
)) | 0-4858 |
| 1590 | oldCurrentItem->attached->setIsCurrentItem(false);executed 1020 times by 4 tests: oldCurrentItem->attached->setIsCurrentItem(false);Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 1020 |
| 1591 | if (currentItem| TRUE | evaluated 6672 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 6-6672 |
| 1592 | currentItem->item->setFocus(true); | - |
| 1593 | if (currentItem->attached| TRUE | evaluated 6672 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) | 0-6672 |
| 1594 | currentItem->attached->setIsCurrentItem(true);executed 6672 times by 11 tests: currentItem->attached->setIsCurrentItem(true);Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 6672 |
| 1595 | initializeCurrentItem(); | - |
| 1596 | }executed 6672 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 6672 |
| 1597 | | - |
| 1598 | updateHighlight(); | - |
| 1599 | if (oldCurrentIndex != currentIndex| TRUE | evaluated 5742 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 936 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 936-5742 |
| 1600 | q->currentIndexChanged();executed 5742 times by 11 tests: q->currentIndexChanged();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 5742 |
| 1601 | if (oldCurrentItem != currentItem| TRUE | evaluated 6672 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
| 6-6672 |
| 1602 | && (!oldCurrentItem| TRUE | evaluated 4852 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1820 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
|| !currentItem| TRUE | never evaluated | | FALSE | evaluated 1820 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
|| oldCurrentItem->item != currentItem->item| TRUE | evaluated 1020 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 800 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
)) | 0-4852 |
| 1603 | q->currentItemChanged();executed 5872 times by 11 tests: q->currentItemChanged();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 5872 |
| 1604 | releaseItem(oldCurrentItem); | - |
| 1605 | }executed 6678 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 6678 |
| 1606 | | - |
| 1607 | void QQuickItemViewPrivate::clear() | - |
| 1608 | { | - |
| 1609 | QQuickItemView * const q = q_func(); | - |
| 1610 | currentChanges.reset(); | - |
| 1611 | bufferedChanges.reset(); | - |
| 1612 | timeline.clear(); | - |
| 1613 | | - |
| 1614 | releaseVisibleItems(); | - |
| 1615 | visibleIndex = 0; | - |
| 1616 | | - |
| 1617 | for (FxViewItem *item : qAsConst(releasePendingTransition)) { | - |
| 1618 | item->releaseAfterTransition = false; | - |
| 1619 | releaseItem(item); | - |
| 1620 | }executed 86 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 86 |
| 1621 | releasePendingTransition.clear(); | - |
| 1622 | | - |
| 1623 | auto oldCurrentItem = currentItem; | - |
| 1624 | releaseItem(currentItem); | - |
| 1625 | currentItem = nullptr; | - |
| 1626 | if (oldCurrentItem| TRUE | evaluated 4072 times by 10 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3958 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 3958-4072 |
| 1627 | q->currentItemChanged();executed 4072 times by 10 tests: q->currentItemChanged();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 4072 |
| 1628 | createHighlight(); | - |
| 1629 | trackedItem = nullptr; | - |
| 1630 | | - |
| 1631 | if (requestedIndex >= 0| TRUE | evaluated 81 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 7949 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 81-7949 |
| 1632 | if (model| TRUE | evaluated 79 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2 times by 1 test |
) | 2-79 |
| 1633 | model->cancel(requestedIndex);executed 79 times by 2 tests: model->cancel(requestedIndex);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 79 |
| 1634 | requestedIndex = -1; | - |
| 1635 | }executed 81 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 81 |
| 1636 | | - |
| 1637 | markExtentsDirty(); | - |
| 1638 | itemCount = 0; | - |
| 1639 | }executed 8030 times by 12 tests: end of blockExecuted by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 8030 |
| 1640 | | - |
| 1641 | | - |
| 1642 | void QQuickItemViewPrivate::mirrorChange() | - |
| 1643 | { | - |
| 1644 | QQuickItemView * const q = q_func(); | - |
| 1645 | regenerate(); | - |
| 1646 | q->effectiveLayoutDirectionChanged(); | - |
| 1647 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 4 |
| 1648 | | - |
| 1649 | void QQuickItemViewPrivate::animationFinished(QAbstractAnimationJob *) | - |
| 1650 | { | - |
| 1651 | QQuickItemView * const q = q_func(); | - |
| 1652 | fillCacheBuffer = true; | - |
| 1653 | q->polish(); | - |
| 1654 | }executed 144 times by 4 tests: end of blockExecuted by:- tst_qqmltypeloader
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
| 144 |
| 1655 | | - |
| 1656 | void QQuickItemViewPrivate::refill() | - |
| 1657 | { | - |
| 1658 | qreal s = qMax(size(), qreal(0.)); | - |
| 1659 | const auto pos = position(); | - |
| 1660 | if (isContentFlowReversed()| TRUE | evaluated 9549 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 26954 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 9549-26954 |
| 1661 | refill(-pos - displayMarginBeginning-s, -pos + displayMarginEnd);executed 9549 times by 2 tests: refill(-pos - displayMarginBeginning-s, -pos + displayMarginEnd);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 9549 |
| 1662 | else | - |
| 1663 | refill(pos - displayMarginBeginning, pos + displayMarginEnd+s);executed 26954 times by 12 tests: refill(pos - displayMarginBeginning, pos + displayMarginEnd+s);Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 26954 |
| 1664 | } | - |
| 1665 | | - |
| 1666 | void QQuickItemViewPrivate::refill(qreal from, qreal to) | - |
| 1667 | { | - |
| 1668 | QQuickItemView * const q = q_func(); | - |
| 1669 | if (!isValid()| TRUE | evaluated 314 times by 3 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 36189 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
|| !q->isComponentComplete()| TRUE | never evaluated | | FALSE | evaluated 36189 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 0-36189 |
| 1670 | return;executed 314 times by 3 tests: return;Executed by:- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
| 314 |
| 1671 | | - |
| 1672 | do { | - |
| 1673 | bufferPause.stop(); | - |
| 1674 | if (currentChanges.hasPendingChanges()| TRUE | evaluated 3366 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 32825 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
|| bufferedChanges.hasPendingChanges()| TRUE | never evaluated | | FALSE | evaluated 32825 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 0-32825 |
| 1675 | currentChanges.reset(); | - |
| 1676 | bufferedChanges.reset(); | - |
| 1677 | releaseVisibleItems(); | - |
| 1678 | }executed 3366 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3366 |
| 1679 | | - |
| 1680 | int prevCount = itemCount; | - |
| 1681 | itemCount = model->count(); | - |
| 1682 | qreal bufferFrom = from - buffer; | - |
| 1683 | qreal bufferTo = to + buffer; | - |
| 1684 | qreal fillFrom = from; | - |
| 1685 | qreal fillTo = to; | - |
| 1686 | | - |
| 1687 | bool added = addVisibleItems(fillFrom, fillTo, bufferFrom, bufferTo, false); | - |
| 1688 | bool removed = removeNonVisibleItems(bufferFrom, bufferTo); | - |
| 1689 | | - |
| 1690 | if (requestedIndex == -1| TRUE | evaluated 35425 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 766 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
|
&& buffer| TRUE | evaluated 21789 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 13636 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& bufferMode != NoBuffer| TRUE | evaluated 21789 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-35425 |
| 1691 | if (added| TRUE | evaluated 2142 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 19647 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 2142-19647 |
| 1692 | | - |
| 1693 | | - |
| 1694 | bufferPause.start(); | - |
| 1695 | }executed 2142 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
else { | 2142 |
| 1696 | if (bufferMode & BufferAfter| TRUE | evaluated 12898 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 6749 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 6749-12898 |
| 1697 | fillTo = bufferTo;executed 12898 times by 8 tests: fillTo = bufferTo;Executed by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 12898 |
| 1698 | if (bufferMode & BufferBefore| TRUE | evaluated 11031 times by 7 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 8616 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
|
) | 8616-11031 |
| 1699 | fillFrom = bufferFrom;executed 11031 times by 7 tests: fillFrom = bufferFrom;Executed by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 11031 |
| 1700 | added |= addVisibleItems(fillFrom, fillTo, bufferFrom, bufferTo, true); | - |
| 1701 | }executed 19647 times by 8 tests: end of blockExecuted by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 19647 |
| 1702 | } | - |
| 1703 | | - |
| 1704 | if (added| TRUE | evaluated 9491 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 26700 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
|| removed| TRUE | evaluated 1386 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 25314 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 1386-26700 |
| 1705 | markExtentsDirty(); | - |
| 1706 | updateBeginningEnd(); | - |
| 1707 | visibleItemsChanged(); | - |
| 1708 | updateHeader(); | - |
| 1709 | updateFooter(); | - |
| 1710 | updateViewport(); | - |
| 1711 | }executed 10877 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 10877 |
| 1712 | | - |
| 1713 | if (prevCount != itemCount| TRUE | evaluated 3986 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 32205 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 3986-32205 |
| 1714 | q->countChanged();executed 3986 times by 11 tests: q->countChanged();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3986 |
| 1715 | }executed 36191 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
while (currentChanges.hasPendingChanges()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 36189 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
|| bufferedChanges.hasPendingChanges()| TRUE | never evaluated | | FALSE | evaluated 36189 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
); | 0-36191 |
| 1716 | }executed 36189 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 36189 |
| 1717 | | - |
| 1718 | void QQuickItemViewPrivate::regenerate(bool orientationChanged) | - |
| 1719 | { | - |
| 1720 | QQuickItemView * const q = q_func(); | - |
| 1721 | if (q->isComponentComplete()| TRUE | evaluated 444 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 1970 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 444-1970 |
| 1722 | if (orientationChanged| TRUE | evaluated 102 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 342 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 102-342 |
| 1723 | delete header; | - |
| 1724 | header = nullptr; | - |
| 1725 | delete footer; | - |
| 1726 | footer = nullptr; | - |
| 1727 | }executed 102 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 102 |
| 1728 | clear(); | - |
| 1729 | updateHeader(); | - |
| 1730 | updateFooter(); | - |
| 1731 | updateViewport(); | - |
| 1732 | setPosition(contentStartOffset()); | - |
| 1733 | refill(); | - |
| 1734 | updateCurrent(currentIndex); | - |
| 1735 | }executed 444 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 444 |
| 1736 | }executed 2414 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 2414 |
| 1737 | | - |
| 1738 | void QQuickItemViewPrivate::updateViewport() | - |
| 1739 | { | - |
| 1740 | QQuickItemView * const q = q_func(); | - |
| 1741 | qreal extra = headerSize() + footerSize(); | - |
| 1742 | qreal contentSize = isValid()| TRUE | evaluated 23165 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 4231 times by 5 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
|| !visibleItems.isEmpty()| TRUE | evaluated 19 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 4212 times by 5 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
? (endPosition() - startPosition()) : 0.0; | 19-23165 |
| 1743 | if (layoutOrientation() == Qt::Vertical| TRUE | evaluated 21722 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 5674 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 5674-21722 |
| 1744 | q->setContentHeight(contentSize + extra);executed 21722 times by 12 tests: q->setContentHeight(contentSize + extra);Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 21722 |
| 1745 | else | - |
| 1746 | q->setContentWidth(contentSize + extra);executed 5674 times by 3 tests: q->setContentWidth(contentSize + extra);Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 5674 |
| 1747 | } | - |
| 1748 | | - |
| 1749 | void QQuickItemViewPrivate::layout() | - |
| 1750 | { | - |
| 1751 | QQuickItemView * const q = q_func(); | - |
| 1752 | if (inLayout| TRUE | evaluated 4127 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 7501 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 4127-7501 |
| 1753 | return;executed 4127 times by 4 tests: return;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 4127 |
| 1754 | | - |
| 1755 | inLayout = true; | - |
| 1756 | | - |
| 1757 | | - |
| 1758 | QRectF viewBounds(q->contentX(), q->contentY(), q->width(), q->height()); | - |
| 1759 | | - |
| 1760 | if (!isValid()| TRUE | evaluated 231 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 7270 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& !visibleItems.count()| TRUE | evaluated 116 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 115 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 115-7270 |
| 1761 | clear(); | - |
| 1762 | setPosition(contentStartOffset()); | - |
| 1763 | updateViewport(); | - |
| 1764 | if (transitioner| TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 80 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 36-80 |
| 1765 | transitioner->setPopulateTransitionEnabled(false);executed 36 times by 3 tests: transitioner->setPopulateTransitionEnabled(false);Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 36 |
| 1766 | inLayout = false; | - |
| 1767 | return;executed 116 times by 3 tests: return;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 116 |
| 1768 | } | - |
| 1769 | | - |
| 1770 | if (runDelayedRemoveTransition| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 7379 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& transitioner| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-7379 |
| 1771 | && transitioner->canTransition(QQuickItemViewTransitioner::RemoveTransition, false)| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
) { | 0-6 |
| 1772 | | - |
| 1773 | | - |
| 1774 | for (int i=0; i<visibleItems.count()| TRUE | evaluated 18 times by 1 test | | FALSE | evaluated 6 times by 1 test |
; i++) | 6-18 |
| 1775 | visibleItems[i]->transitionNextReposition(transitioner, QQuickItemViewTransitioner::RemoveTransition, false);executed 18 times by 1 test: visibleItems[i]->transitionNextReposition(transitioner, QQuickItemViewTransitioner::RemoveTransition, false); | 18 |
| 1776 | }executed 6 times by 1 test: end of block | 6 |
| 1777 | | - |
| 1778 | ChangeResult insertionPosChanges; | - |
| 1779 | ChangeResult removalPosChanges; | - |
| 1780 | if (!applyModelChanges(&insertionPosChanges, &removalPosChanges)| TRUE | evaluated 3596 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3789 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& !forceLayout| TRUE | evaluated 828 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2768 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 828-3789 |
| 1781 | if (fillCacheBuffer| TRUE | evaluated 85 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 743 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 85-743 |
| 1782 | fillCacheBuffer = false; | - |
| 1783 | refill(); | - |
| 1784 | }executed 85 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 85 |
| 1785 | inLayout = false; | - |
| 1786 | return;executed 828 times by 4 tests: return;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 828 |
| 1787 | } | - |
| 1788 | forceLayout = false; | - |
| 1789 | | - |
| 1790 | if (transitioner| TRUE | evaluated 724 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 5833 times by 7 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
&& transitioner->canTransition(QQuickItemViewTransitioner::PopulateTransition, true)| TRUE | evaluated 34 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 690 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 34-5833 |
| 1791 | for (FxViewItem *item : qAsConst(visibleItems)) { | - |
| 1792 | if (!item->transitionScheduledOrRunning()| TRUE | evaluated 508 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 78 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 78-508 |
| 1793 | item->transitionNextReposition(transitioner, QQuickItemViewTransitioner::PopulateTransition, true);executed 508 times by 3 tests: item->transitionNextReposition(transitioner, QQuickItemViewTransitioner::PopulateTransition, true);Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 508 |
| 1794 | }executed 586 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 586 |
| 1795 | }executed 34 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 34 |
| 1796 | | - |
| 1797 | updateSections(); | - |
| 1798 | layoutVisibleItems(); | - |
| 1799 | | - |
| 1800 | int lastIndexInView = findLastIndexInView(); | - |
| 1801 | refill(); | - |
| 1802 | markExtentsDirty(); | - |
| 1803 | updateHighlight(); | - |
| 1804 | | - |
| 1805 | if (!q->isMoving()| TRUE | evaluated 6544 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 13 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
&& !q->isFlicking()| TRUE | evaluated 6544 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
&& !movingFromHighlight()| TRUE | evaluated 6472 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 72 times by 2 testsEvaluated by:- tst_examples
- tst_qquicklistview
|
) { | 0-6544 |
| 1806 | fixupPosition(); | - |
| 1807 | refill(); | - |
| 1808 | }executed 6472 times by 8 tests: end of blockExecuted by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 6472 |
| 1809 | | - |
| 1810 | updateHeader(); | - |
| 1811 | updateFooter(); | - |
| 1812 | updateViewport(); | - |
| 1813 | updateUnrequestedPositions(); | - |
| 1814 | | - |
| 1815 | if (transitioner| TRUE | evaluated 724 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 5833 times by 7 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) { | 724-5833 |
| 1816 | | - |
| 1817 | | - |
| 1818 | if (lastIndexInView != -1| TRUE | evaluated 720 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 4 times by 1 test |
&& | 4-720 |
| 1819 | (transitioner->canTransition(QQuickItemViewTransitioner::MoveTransition, false)| TRUE | evaluated 380 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 340 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
|
| 340-380 |
| 1820 | || transitioner->canTransition(QQuickItemViewTransitioner::RemoveTransition, false)| TRUE | evaluated 128 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 212 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
|
)) { | 128-212 |
| 1821 | translateAndTransitionItemsAfter(lastIndexInView, insertionPosChanges, removalPosChanges); | - |
| 1822 | }executed 508 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 508 |
| 1823 | | - |
| 1824 | prepareVisibleItemTransitions(); | - |
| 1825 | | - |
| 1826 | for (QList<FxViewItem*>::Iterator it = releasePendingTransition.begin(); | - |
| 1827 | it != releasePendingTransition.end()| TRUE | evaluated 330 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 724 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
|
; ) { | 330-724 |
| 1828 | FxViewItem *item = *it; | - |
| 1829 | if (prepareNonVisibleItemTransition(item, viewBounds)| TRUE | evaluated 172 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 158 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 158-172 |
| 1830 | ++it; | - |
| 1831 | }executed 172 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else { | 172 |
| 1832 | releaseItem(item); | - |
| 1833 | it = releasePendingTransition.erase(it); | - |
| 1834 | }executed 158 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 158 |
| 1835 | } | - |
| 1836 | | - |
| 1837 | for (int i=0; i<visibleItems.count()| TRUE | evaluated 13000 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 724 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
|
; i++) | 724-13000 |
| 1838 | visibleItems[i]->startTransition(transitioner);executed 13000 times by 4 tests: visibleItems[i]->startTransition(transitioner);Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 13000 |
| 1839 | for (int i=0; i<releasePendingTransition.count()| TRUE | evaluated 172 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 724 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
|
; i++) | 172-724 |
| 1840 | releasePendingTransition[i]->startTransition(transitioner);executed 172 times by 2 tests: releasePendingTransition[i]->startTransition(transitioner);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 172 |
| 1841 | | - |
| 1842 | transitioner->setPopulateTransitionEnabled(false); | - |
| 1843 | transitioner->resetTargetLists(); | - |
| 1844 | }executed 724 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 724 |
| 1845 | | - |
| 1846 | runDelayedRemoveTransition = false; | - |
| 1847 | inLayout = false; | - |
| 1848 | }executed 6557 times by 8 tests: end of blockExecuted by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 6557 |
| 1849 | | - |
| 1850 | bool QQuickItemViewPrivate::applyModelChanges(ChangeResult *totalInsertionResult, ChangeResult *totalRemovalResult) | - |
| 1851 | { | - |
| 1852 | QQuickItemView * const q = q_func(); | - |
| 1853 | if (!q->isComponentComplete()| TRUE | never evaluated | | FALSE | evaluated 7385 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
|| !hasPendingChanges()| TRUE | evaluated 3554 times by 8 testsEvaluated by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3831 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 0-7385 |
| 1854 | returnexecuted 3554 times by 8 tests: return false;Executed by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
false;executed 3554 times by 8 tests: return false;Executed by:- tst_examples
- tst_qqmltypeloader
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3554 |
| 1855 | | - |
| 1856 | if (bufferedChanges.hasPendingChanges()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 3829 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 2-3829 |
| 1857 | currentChanges.applyBufferedChanges(bufferedChanges); | - |
| 1858 | bufferedChanges.reset(); | - |
| 1859 | }executed 2 times by 1 test: end of block | 2 |
| 1860 | | - |
| 1861 | updateUnrequestedIndexes(); | - |
| 1862 | | - |
| 1863 | FxViewItem *prevVisibleItemsFirst = visibleItems.count()| TRUE | evaluated 3489 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 342 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
? *visibleItems.constBegin() : 0; | 342-3489 |
| 1864 | int prevItemCount = itemCount; | - |
| 1865 | int prevVisibleItemsCount = visibleItems.count(); | - |
| 1866 | bool visibleAffected = false; | - |
| 1867 | bool viewportChanged = !currentChanges.pendingChanges.removes().isEmpty()| TRUE | evaluated 2234 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1597 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
| 1597-2234 |
| 1868 | || !currentChanges.pendingChanges.inserts().isEmpty()| TRUE | evaluated 1379 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 218 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
; | 218-1379 |
| 1869 | | - |
| 1870 | FxViewItem *prevFirstVisible = firstVisibleItem(); | - |
| 1871 | QQmlNullableValue<qreal> prevViewPos; | - |
| 1872 | int prevFirstVisibleIndex = -1; | - |
| 1873 | if (prevFirstVisible| TRUE | evaluated 3489 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 342 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 342-3489 |
| 1874 | prevViewPos = prevFirstVisible->position(); | - |
| 1875 | prevFirstVisibleIndex = prevFirstVisible->index; | - |
| 1876 | }executed 3489 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 3489 |
| 1877 | qreal prevVisibleItemsFirstPos = visibleItems.count()| TRUE | evaluated 3489 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 342 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
? visibleItems.constFirst()->position() : 0.0; | 342-3489 |
| 1878 | | - |
| 1879 | totalInsertionResult->visiblePos = prevViewPos; | - |
| 1880 | totalRemovalResult->visiblePos = prevViewPos; | - |
| 1881 | | - |
| 1882 | const QVector<QQmlChangeSet::Change> &removals = currentChanges.pendingChanges.removes(); | - |
| 1883 | const QVector<QQmlChangeSet::Change> &insertions = currentChanges.pendingChanges.inserts(); | - |
| 1884 | ChangeResult insertionResult(prevViewPos); | - |
| 1885 | ChangeResult removalResult(prevViewPos); | - |
| 1886 | | - |
| 1887 | int removedCount = 0; | - |
| 1888 | for (const QQmlChangeSet::Change &r : removals) { | - |
| 1889 | itemCount -= r.count; | - |
| 1890 | if (applyRemovalChange(r, &removalResult, &removedCount)| TRUE | evaluated 2200 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 214 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 214-2200 |
| 1891 | visibleAffected = true;executed 2200 times by 3 tests: visibleAffected = true;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 2200 |
| 1892 | if (!visibleAffected| TRUE | evaluated 188 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2226 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& needsRefillForAddedOrRemovedIndex(r.index)| TRUE | evaluated 119 times by 1 test | | FALSE | evaluated 69 times by 1 test |
) | 69-2226 |
| 1893 | visibleAffected = true;executed 119 times by 1 test: visibleAffected = true; | 119 |
| 1894 | const int correctedFirstVisibleIndex = prevFirstVisibleIndex - removalResult.countChangeBeforeVisible; | - |
| 1895 | if (correctedFirstVisibleIndex >= 0| TRUE | evaluated 2414 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
&& r.index < correctedFirstVisibleIndex| TRUE | evaluated 517 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 1897 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 0-2414 |
| 1896 | if (r.index + r.count < correctedFirstVisibleIndex| TRUE | evaluated 334 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 183 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 183-334 |
| 1897 | removalResult.countChangeBeforeVisible += r.count;executed 334 times by 2 tests: removalResult.countChangeBeforeVisible += r.count;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 334 |
| 1898 | else | - |
| 1899 | removalResult.countChangeBeforeVisible += (correctedFirstVisibleIndex - r.index);executed 183 times by 2 tests: removalResult.countChangeBeforeVisible += (correctedFirstVisibleIndex - r.index);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 183 |
| 1900 | } | - |
| 1901 | }executed 2414 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 2414 |
| 1902 | if (runDelayedRemoveTransition| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 3825 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 6-3825 |
| 1903 | QQmlChangeSet::Change removal; | - |
| 1904 | for (QList<FxViewItem*>::Iterator it = visibleItems.begin(); it != visibleItems.end()| TRUE | evaluated 18 times by 1 test | | FALSE | evaluated 6 times by 1 test |
;) { | 6-18 |
| 1905 | FxViewItem *item = *it; | - |
| 1906 | if (item->index == -1| TRUE | never evaluated | | FALSE | evaluated 18 times by 1 test |
&& (!item->attached| TRUE | never evaluated | | FALSE | never evaluated |
|| !item->attached->delayRemove()| TRUE | never evaluated | | FALSE | never evaluated |
)) { | 0-18 |
| 1907 | removeItem(item, removal, &removalResult); | - |
| 1908 | removedCount++; | - |
| 1909 | it = visibleItems.erase(it); | - |
| 1910 | } never executed: end of block else { | 0 |
| 1911 | ++it; | - |
| 1912 | }executed 18 times by 1 test: end of block | 18 |
| 1913 | } | - |
| 1914 | }executed 6 times by 1 test: end of block | 6 |
| 1915 | *totalRemovalResult += removalResult; | - |
| 1916 | if (!removals.isEmpty()| TRUE | evaluated 2234 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1597 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 1597-2234 |
| 1917 | updateVisibleIndex(); | - |
| 1918 | | - |
| 1919 | | - |
| 1920 | if (!insertions.isEmpty()| TRUE | evaluated 982 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1252 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 982-1252 |
| 1921 | repositionFirstItem(prevVisibleItemsFirst, prevVisibleItemsFirstPos, prevFirstVisible, &insertionResult, &removalResult); | - |
| 1922 | layoutVisibleItems(removals.first().index); | - |
| 1923 | }executed 982 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 982 |
| 1924 | }executed 2234 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 2234 |
| 1925 | | - |
| 1926 | QList<FxViewItem *> newItems; | - |
| 1927 | QList<MovedItem> movingIntoView; | - |
| 1928 | | - |
| 1929 | for (int i=0; i<insertions.count()| TRUE | evaluated 2523 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3831 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
; i++) { | 2523-3831 |
| 1930 | bool wasEmpty = visibleItems.isEmpty(); | - |
| 1931 | if (applyInsertionChange(insertions[i], &insertionResult, &newItems, &movingIntoView)| TRUE | evaluated 2481 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 42 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 42-2481 |
| 1932 | visibleAffected = true;executed 2481 times by 4 tests: visibleAffected = true;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 2481 |
| 1933 | if (!visibleAffected| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 2513 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& needsRefillForAddedOrRemovedIndex(insertions[i].index)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
) | 0-2513 |
| 1934 | visibleAffected = true; never executed: visibleAffected = true; | 0 |
| 1935 | if (wasEmpty| TRUE | evaluated 378 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2145 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& !visibleItems.isEmpty()| TRUE | evaluated 358 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 20 times by 1 test |
) | 20-2145 |
| 1936 | resetFirstItemPosition();executed 358 times by 4 tests: resetFirstItemPosition();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 358 |
| 1937 | *totalInsertionResult += insertionResult; | - |
| 1938 | | - |
| 1939 | | - |
| 1940 | if (i < insertions.count() - 1| TRUE | evaluated 162 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2361 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 162-2361 |
| 1941 | repositionFirstItem(prevVisibleItemsFirst, prevVisibleItemsFirstPos, prevFirstVisible, &insertionResult, &removalResult); | - |
| 1942 | layoutVisibleItems(insertions[i].index); | - |
| 1943 | }executed 162 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 162 |
| 1944 | itemCount += insertions[i].count; | - |
| 1945 | }executed 2523 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 2523 |
| 1946 | for (FxViewItem *item : qAsConst(newItems)) { | - |
| 1947 | if (item->attached| TRUE | evaluated 7480 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) | 0-7480 |
| 1948 | item->attached->emitAdd();executed 7480 times by 4 tests: item->attached->emitAdd();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 7480 |
| 1949 | }executed 7480 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 7480 |
| 1950 | | - |
| 1951 | | - |
| 1952 | | - |
| 1953 | | - |
| 1954 | if (transitioner| TRUE | evaluated 412 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 3419 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& transitioner->canTransition(QQuickItemViewTransitioner::MoveTransition, true)| TRUE | evaluated 202 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 210 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 202-3419 |
| 1955 | for (const MovedItem &m : qAsConst(movingIntoView)) { | - |
| 1956 | int fromIndex = findMoveKeyIndex(m.moveKey, removals); | - |
| 1957 | if (fromIndex >= 0| TRUE | evaluated 90 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-90 |
| 1958 | if (prevFirstVisibleIndex >= 0| TRUE | evaluated 90 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
&& fromIndex < prevFirstVisibleIndex| TRUE | evaluated 18 times by 1 test | | FALSE | evaluated 72 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 0-90 |
| 1959 | repositionItemAt(m.item, fromIndex, -totalInsertionResult->sizeChangesAfterVisiblePos);executed 18 times by 1 test: repositionItemAt(m.item, fromIndex, -totalInsertionResult->sizeChangesAfterVisiblePos); | 18 |
| 1960 | else | - |
| 1961 | repositionItemAt(m.item, fromIndex, totalInsertionResult->sizeChangesAfterVisiblePos);executed 72 times by 2 tests: repositionItemAt(m.item, fromIndex, totalInsertionResult->sizeChangesAfterVisiblePos);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 72 |
| 1962 | m.item->transitionNextReposition(transitioner, QQuickItemViewTransitioner::MoveTransition, true); | - |
| 1963 | }executed 90 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 90 |
| 1964 | }executed 90 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 90 |
| 1965 | }executed 202 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 202 |
| 1966 | | - |
| 1967 | | - |
| 1968 | if (removedCount != prevVisibleItemsCount| TRUE | evaluated 3341 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 490 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 490-3341 |
| 1969 | repositionFirstItem(prevVisibleItemsFirst, prevVisibleItemsFirstPos, prevFirstVisible, &insertionResult, &removalResult);executed 3341 times by 3 tests: repositionFirstItem(prevVisibleItemsFirst, prevVisibleItemsFirstPos, prevFirstVisible, &insertionResult, &removalResult);Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 3341 |
| 1970 | | - |
| 1971 | | - |
| 1972 | prepareRemoveTransitions(¤tChanges.removedItems); | - |
| 1973 | for (QHash<QQmlChangeSet::MoveKey, FxViewItem *>::Iterator it = currentChanges.removedItems.begin(); | - |
| 1974 | it != currentChanges.removedItems.end()| TRUE | evaluated 4153 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3831 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
; ++it) { | 3831-4153 |
| 1975 | releaseItem(it.value()); | - |
| 1976 | }executed 4153 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 4153 |
| 1977 | currentChanges.removedItems.clear(); | - |
| 1978 | | - |
| 1979 | if (currentChanges.currentChanged| TRUE | evaluated 1943 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1888 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 1888-1943 |
| 1980 | if (currentChanges.currentRemoved| TRUE | evaluated 766 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1177 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& currentItem| TRUE | evaluated 762 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 4 times by 1 test |
) { | 4-1177 |
| 1981 | if (currentItem->item && currentItem->attached| TRUE | evaluated 762 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) | 0-762 |
| 1982 | currentItem->attached->setIsCurrentItem(false);executed 762 times by 3 tests: currentItem->attached->setIsCurrentItem(false);Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 762 |
| 1983 | auto oldCurrentItem = currentItem; | - |
| 1984 | releaseItem(currentItem); | - |
| 1985 | currentItem = nullptr; | - |
| 1986 | if (oldCurrentItem| TRUE | evaluated 762 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) | 0-762 |
| 1987 | q->currentItemChanged();executed 762 times by 3 tests: q->currentItemChanged();Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 762 |
| 1988 | }executed 762 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 762 |
| 1989 | if (!currentIndexCleared| TRUE | evaluated 1931 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 12-1931 |
| 1990 | updateCurrent(currentChanges.newCurrentIndex);executed 1931 times by 4 tests: updateCurrent(currentChanges.newCurrentIndex);Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 1931 |
| 1991 | }executed 1943 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 1943 |
| 1992 | | - |
| 1993 | if (!visibleAffected| TRUE | evaluated 254 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 3577 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 254-3577 |
| 1994 | visibleAffected = !currentChanges.pendingChanges.changes().isEmpty();executed 254 times by 2 tests: visibleAffected = !currentChanges.pendingChanges.changes().isEmpty();Executed by:- tst_qquickgridview
- tst_qquicklistview
| 254 |
| 1995 | currentChanges.reset(); | - |
| 1996 | | - |
| 1997 | updateSections(); | - |
| 1998 | if (prevItemCount != itemCount| TRUE | evaluated 2701 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1130 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 1130-2701 |
| 1999 | q->countChanged();executed 2701 times by 4 tests: q->countChanged();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 2701 |
| 2000 | if (!visibleAffected| TRUE | evaluated 42 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 3789 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& viewportChanged| TRUE | evaluated 36 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) | 6-3789 |
| 2001 | updateViewport();executed 36 times by 1 test: updateViewport(); | 36 |
| 2002 | | - |
| 2003 | returnexecuted 3831 times by 4 tests: return visibleAffected;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
visibleAffected;executed 3831 times by 4 tests: return visibleAffected;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 3831 |
| 2004 | } | - |
| 2005 | | - |
| 2006 | bool QQuickItemViewPrivate::applyRemovalChange(const QQmlChangeSet::Change &removal, ChangeResult *removeResult, int *removedCount) | - |
| 2007 | { | - |
| 2008 | QQuickItemView * const q = q_func(); | - |
| 2009 | bool visibleAffected = false; | - |
| 2010 | | - |
| 2011 | if (visibleItems.count()| TRUE | evaluated 2406 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 8 times by 1 test |
&& removal.index + removal.count > visibleItems.constLast()->index| TRUE | evaluated 555 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1851 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 8-2406 |
| 2012 | if (removal.index > visibleItems.constLast()->index| TRUE | evaluated 182 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 373 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 182-373 |
| 2013 | removeResult->countChangeAfterVisibleItems += removal.count;executed 182 times by 2 tests: removeResult->countChangeAfterVisibleItems += removal.count;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 182 |
| 2014 | else | - |
| 2015 | removeResult->countChangeAfterVisibleItems += ((removal.index + removal.count - 1) - visibleItems.constLast()->index);executed 373 times by 3 tests: removeResult->countChangeAfterVisibleItems += ((removal.index + removal.count - 1) - visibleItems.constLast()->index);Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 373 |
| 2016 | } | - |
| 2017 | | - |
| 2018 | QList<FxViewItem*>::Iterator it = visibleItems.begin(); | - |
| 2019 | while (it != visibleItems.end()| TRUE | evaluated 40368 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2414 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 2414-40368 |
| 2020 | FxViewItem *item = *it; | - |
| 2021 | if (item->index == -1| TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 40356 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
|| item->index < removal.index| TRUE | evaluated 11452 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 28904 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 12-40356 |
| 2022 | | - |
| 2023 | if (!visibleAffected| TRUE | evaluated 1319 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 10145 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
&& item->index < removal.index| TRUE | evaluated 1319 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) | 0-10145 |
| 2024 | visibleAffected = true;executed 1319 times by 2 tests: visibleAffected = true;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 1319 |
| 2025 | ++it; | - |
| 2026 | }executed 11464 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else if (item->index >= removal.index + removal.count| TRUE | evaluated 23085 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 5819 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 5819-23085 |
| 2027 | | - |
| 2028 | item->index -= removal.count; | - |
| 2029 | if (removal.isMove()| TRUE | evaluated 10600 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 12485 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 10600-12485 |
| 2030 | item->transitionNextReposition(transitioner, QQuickItemViewTransitioner::MoveTransition, false);executed 10600 times by 2 tests: item->transitionNextReposition(transitioner, QQuickItemViewTransitioner::MoveTransition, false);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 10600 |
| 2031 | else | - |
| 2032 | item->transitionNextReposition(transitioner, QQuickItemViewTransitioner::RemoveTransition, false);executed 12485 times by 2 tests: item->transitionNextReposition(transitioner, QQuickItemViewTransitioner::RemoveTransition, false);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 12485 |
| 2033 | ++it; | - |
| 2034 | }executed 23085 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else { | 23085 |
| 2035 | | - |
| 2036 | visibleAffected = true; | - |
| 2037 | if (!removal.isMove()| TRUE | evaluated 4003 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1816 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
&& item->item && item->attached| TRUE | evaluated 4003 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) | 0-4003 |
| 2038 | item->attached->emitRemove();executed 4003 times by 3 tests: item->attached->emitRemove();Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 4003 |
| 2039 | | - |
| 2040 | if (item->item && item->attached| TRUE | evaluated 5819 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
&& item->attached->delayRemove()| TRUE | evaluated 92 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 5727 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& !removal.isMove()| TRUE | evaluated 92 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-5819 |
| 2041 | item->index = -1; | - |
| 2042 | QObject::connect(item->attached, qFlagLocation("2""delayRemoveChanged()" "\0" __FILE__ ":" "2084"), q, qFlagLocation("1""destroyRemoved()" "\0" __FILE__ ":" "2084"), Qt::QueuedConnection); | - |
| 2043 | ++it; | - |
| 2044 | }executed 92 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else { | 92 |
| 2045 | removeItem(item, removal, removeResult); | - |
| 2046 | if (!removal.isMove()| TRUE | evaluated 3911 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1816 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 1816-3911 |
| 2047 | (*executed 3911 times by 3 tests: (*removedCount)++;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
removedCount)++;executed 3911 times by 3 tests: (*removedCount)++;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 3911 |
| 2048 | it = visibleItems.erase(it); | - |
| 2049 | }executed 5727 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 5727 |
| 2050 | } | - |
| 2051 | } | - |
| 2052 | | - |
| 2053 | returnexecuted 2414 times by 3 tests: return visibleAffected;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
visibleAffected;executed 2414 times by 3 tests: return visibleAffected;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 2414 |
| 2054 | } | - |
| 2055 | | - |
| 2056 | void QQuickItemViewPrivate::removeItem(FxViewItem *item, const QQmlChangeSet::Change &removal, ChangeResult *removeResult) | - |
| 2057 | { | - |
| 2058 | if (removeResult->visiblePos.isValid()| TRUE | evaluated 5727 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-5727 |
| 2059 | if (item->position() < removeResult->visiblePos| TRUE | evaluated 590 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 5137 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 590-5137 |
| 2060 | updateSizeChangesBeforeVisiblePos(item, removeResult);executed 590 times by 2 tests: updateSizeChangesBeforeVisiblePos(item, removeResult);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 590 |
| 2061 | else | - |
| 2062 | removeResult->sizeChangesAfterVisiblePos += item->size();executed 5137 times by 3 tests: removeResult->sizeChangesAfterVisiblePos += item->size();Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 5137 |
| 2063 | } | - |
| 2064 | if (removal.isMove()| TRUE | evaluated 1816 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 3911 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 1816-3911 |
| 2065 | currentChanges.removedItems.insert(removal.moveKey(item->index), item); | - |
| 2066 | item->transitionNextReposition(transitioner, QQuickItemViewTransitioner::MoveTransition, true); | - |
| 2067 | }executed 1816 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else { | 1816 |
| 2068 | | - |
| 2069 | currentChanges.removedItems.insertMulti(QQmlChangeSet::MoveKey(), item); | - |
| 2070 | }executed 3911 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 3911 |
| 2071 | if (!removeResult->changedFirstItem| TRUE | evaluated 3474 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2253 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
&& item == *visibleItems.constBegin()| TRUE | evaluated 869 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2605 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 869-3474 |
| 2072 | removeResult->changedFirstItem = true;executed 869 times by 3 tests: removeResult->changedFirstItem = true;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 869 |
| 2073 | }executed 5727 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 5727 |
| 2074 | | - |
| 2075 | void QQuickItemViewPrivate::updateSizeChangesBeforeVisiblePos(FxViewItem *item, ChangeResult *removeResult) | - |
| 2076 | { | - |
| 2077 | removeResult->sizeChangesBeforeVisiblePos += item->size(); | - |
| 2078 | }executed 512 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 512 |
| 2079 | | - |
| 2080 | void QQuickItemViewPrivate::repositionFirstItem(FxViewItem *prevVisibleItemsFirst, | - |
| 2081 | qreal prevVisibleItemsFirstPos, | - |
| 2082 | FxViewItem *prevFirstVisible, | - |
| 2083 | ChangeResult *insertionResult, | - |
| 2084 | ChangeResult *removalResult) | - |
| 2085 | { | - |
| 2086 | const QQmlNullableValue<qreal> prevViewPos = insertionResult->visiblePos; | - |
| 2087 | | - |
| 2088 | | - |
| 2089 | if (visibleItems.count()| TRUE | evaluated 4447 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 38 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 38-4447 |
| 2090 | if (prevVisibleItemsFirst| TRUE | evaluated 4447 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
&& insertionResult->changedFirstItem| TRUE | evaluated 412 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 4035 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 0-4447 |
| 2091 | resetFirstItemPosition(prevVisibleItemsFirstPos);executed 412 times by 3 tests: resetFirstItemPosition(prevVisibleItemsFirstPos);Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 412 |
| 2092 | | - |
| 2093 | if (prevFirstVisible| TRUE | evaluated 4447 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
&& prevVisibleItemsFirst == prevFirstVisible| TRUE | evaluated 2947 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1500 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
| 0-4447 |
| 2094 | && prevFirstVisible != *visibleItems.constBegin()| TRUE | evaluated 1068 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 1879 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 1068-1879 |
| 2095 | | - |
| 2096 | | - |
| 2097 | if (!insertionResult->changedFirstItem| TRUE | evaluated 668 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 400 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 400-668 |
| 2098 | resetFirstItemPosition(prevVisibleItemsFirstPos);executed 668 times by 2 tests: resetFirstItemPosition(prevVisibleItemsFirstPos);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 668 |
| 2099 | | - |
| 2100 | }executed 1068 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
else if (prevViewPos.isValid()| TRUE | evaluated 3379 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-3379 |
| 2101 | qreal moveForwardsBy = 0; | - |
| 2102 | qreal moveBackwardsBy = 0; | - |
| 2103 | | - |
| 2104 | | - |
| 2105 | const auto pos = visibleItems.constFirst()->position(); | - |
| 2106 | if (pos > prevViewPos| TRUE | evaluated 42 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 3337 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 42-3337 |
| 2107 | moveForwardsBy = insertionResult->sizeChangesAfterVisiblePos; | - |
| 2108 | moveBackwardsBy = removalResult->sizeChangesAfterVisiblePos; | - |
| 2109 | }executed 42 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else if (pos < prevViewPos| TRUE | evaluated 1288 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2049 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) { | 42-2049 |
| 2110 | moveForwardsBy = removalResult->sizeChangesBeforeVisiblePos; | - |
| 2111 | moveBackwardsBy = insertionResult->sizeChangesBeforeVisiblePos; | - |
| 2112 | }executed 1288 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 1288 |
| 2113 | adjustFirstItem(moveForwardsBy, moveBackwardsBy, insertionResult->countChangeBeforeVisible - removalResult->countChangeBeforeVisible); | - |
| 2114 | }executed 3379 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 3379 |
| 2115 | insertionResult->reset(); | - |
| 2116 | removalResult->reset(); | - |
| 2117 | }executed 4447 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 4447 |
| 2118 | }executed 4485 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 4485 |
| 2119 | | - |
| 2120 | void QQuickItemViewPrivate::createTransitioner() | - |
| 2121 | { | - |
| 2122 | if (!transitioner| TRUE | evaluated 416 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 570 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) { | 416-570 |
| 2123 | transitioner = new QQuickItemViewTransitioner; | - |
| 2124 | transitioner->setChangeListener(this); | - |
| 2125 | }executed 416 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 416 |
| 2126 | }executed 986 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 986 |
| 2127 | | - |
| 2128 | void QQuickItemViewPrivate::prepareVisibleItemTransitions() | - |
| 2129 | { | - |
| 2130 | QQuickItemView * const q = q_func(); | - |
| 2131 | if (!transitioner| TRUE | never evaluated | | FALSE | evaluated 724 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
|
) | 0-724 |
| 2132 | return; never executed: return; | 0 |
| 2133 | | - |
| 2134 | | - |
| 2135 | QRectF viewBounds(q->contentX(), q->contentY(), q->width(), q->height()); | - |
| 2136 | for (int i=0; i<visibleItems.count()| TRUE | evaluated 13000 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| | FALSE | evaluated 724 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
|
; i++) | 724-13000 |
| 2137 | visibleItems[i]->prepareTransition(transitioner, viewBounds);executed 13000 times by 4 tests: visibleItems[i]->prepareTransition(transitioner, viewBounds);Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 13000 |
| 2138 | }executed 724 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 724 |
| 2139 | | - |
| 2140 | void QQuickItemViewPrivate::prepareRemoveTransitions(QHash<QQmlChangeSet::MoveKey, FxViewItem *> *removedItems) | - |
| 2141 | { | - |
| 2142 | if (!transitioner| TRUE | evaluated 3419 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 412 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 412-3419 |
| 2143 | return;executed 3419 times by 4 tests: return;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 3419 |
| 2144 | | - |
| 2145 | if (transitioner->canTransition(QQuickItemViewTransitioner::RemoveTransition, true)| TRUE | evaluated 90 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 322 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
| 90-322 |
| 2146 | || transitioner->canTransition(QQuickItemViewTransitioner::RemoveTransition, false)| TRUE | evaluated 58 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 264 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 58-264 |
| 2147 | for (QHash<QQmlChangeSet::MoveKey, FxViewItem *>::Iterator it = removedItems->begin(); | - |
| 2148 | it != removedItems->end()| TRUE | evaluated 150 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 148 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
; ) { | 148-150 |
| 2149 | bool isRemove = it.key().moveId < 0; | - |
| 2150 | if (isRemove| TRUE | evaluated 150 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-150 |
| 2151 | FxViewItem *item = *it; | - |
| 2152 | item->trackGeometry(false); | - |
| 2153 | item->releaseAfterTransition = true; | - |
| 2154 | releasePendingTransition.append(item); | - |
| 2155 | item->transitionNextReposition(transitioner, QQuickItemViewTransitioner::RemoveTransition, true); | - |
| 2156 | it = removedItems->erase(it); | - |
| 2157 | }executed 150 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
else { | 150 |
| 2158 | ++it; | - |
| 2159 | } never executed: end of block | 0 |
| 2160 | } | - |
| 2161 | }executed 148 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 148 |
| 2162 | }executed 412 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 412 |
| 2163 | | - |
| 2164 | bool QQuickItemViewPrivate::prepareNonVisibleItemTransition(FxViewItem *item, const QRectF &viewBounds) | - |
| 2165 | { | - |
| 2166 | | - |
| 2167 | | - |
| 2168 | | - |
| 2169 | | - |
| 2170 | | - |
| 2171 | if (!transitioner| TRUE | never evaluated | | FALSE | evaluated 330 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 0-330 |
| 2172 | return never executed: return false; false;never executed: return false; | 0 |
| 2173 | | - |
| 2174 | if (item->scheduledTransitionType() == QQuickItemViewTransitioner::MoveTransition| TRUE | evaluated 70 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 260 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 70-260 |
| 2175 | repositionItemAt(item, item->index, 0);executed 70 times by 2 tests: repositionItemAt(item, item->index, 0);Executed by:- tst_qquickgridview
- tst_qquicklistview
| 70 |
| 2176 | | - |
| 2177 | if (item->prepareTransition(transitioner, viewBounds)| TRUE | evaluated 172 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 158 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 158-172 |
| 2178 | item->releaseAfterTransition = true; | - |
| 2179 | returnexecuted 172 times by 2 tests: return true;Executed by:- tst_qquickgridview
- tst_qquicklistview
true;executed 172 times by 2 tests: return true;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 172 |
| 2180 | } | - |
| 2181 | returnexecuted 158 times by 2 tests: return false;Executed by:- tst_qquickgridview
- tst_qquicklistview
false;executed 158 times by 2 tests: return false;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 158 |
| 2182 | } | - |
| 2183 | | - |
| 2184 | void QQuickItemViewPrivate::viewItemTransitionFinished(QQuickItemViewTransitionableItem *item) | - |
| 2185 | { | - |
| 2186 | for (int i=0; i<releasePendingTransition.count()| TRUE | evaluated 2224 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 4286 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
|
; i++) { | 2224-4286 |
| 2187 | if (releasePendingTransition.at(i)->transitionableItem == item| TRUE | evaluated 86 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 2138 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 86-2138 |
| 2188 | releaseItem(releasePendingTransition.takeAt(i)); | - |
| 2189 | return;executed 86 times by 2 tests: return;Executed by:- tst_qquickgridview
- tst_qquicklistview
| 86 |
| 2190 | } | - |
| 2191 | }executed 2138 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 2138 |
| 2192 | }executed 4286 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickspringanimation
| 4286 |
| 2193 | | - |
| 2194 | | - |
| 2195 | | - |
| 2196 | | - |
| 2197 | | - |
| 2198 | | - |
| 2199 | FxViewItem *QQuickItemViewPrivate::createItem(int modelIndex, QQmlIncubator::IncubationMode incubationMode) | - |
| 2200 | { | - |
| 2201 | QQuickItemView * const q = q_func(); | - |
| 2202 | | - |
| 2203 | if (requestedIndex == modelIndex| TRUE | evaluated 151 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 85875 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
&& incubationMode == QQmlIncubator::Asynchronous| TRUE | never evaluated | | FALSE | evaluated 151 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 0-85875 |
| 2204 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
| 2205 | | - |
| 2206 | for (int i=0; i<releasePendingTransition.count()| TRUE | evaluated 590 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 86014 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
; i++) { | 590-86014 |
| 2207 | if (releasePendingTransition.at(i)->index == modelIndex| TRUE | evaluated 62 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 528 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
| 62-528 |
| 2208 | && !releasePendingTransition.at(i)->isPendingRemoval()| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 50 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 12-50 |
| 2209 | releasePendingTransition[i]->releaseAfterTransition = false; | - |
| 2210 | returnexecuted 12 times by 1 test: return releasePendingTransition.takeAt(i); releasePendingTransition.takeAt(i);executed 12 times by 1 test: return releasePendingTransition.takeAt(i); | 12 |
| 2211 | } | - |
| 2212 | }executed 578 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 578 |
| 2213 | | - |
| 2214 | inRequest = true; | - |
| 2215 | | - |
| 2216 | QObject* object = model->object(modelIndex, incubationMode); | - |
| 2217 | QQuickItem *item = qmlobject_cast<QQuickItem*>(object); | - |
| 2218 | | - |
| 2219 | if (!item| TRUE | evaluated 2778 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 83236 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 2778-83236 |
| 2220 | if (!object| TRUE | evaluated 2778 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-2778 |
| 2221 | if (requestedIndex == -1| TRUE | evaluated 2772 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
&& model->incubationStatus(modelIndex) == QQmlIncubator::Loading| TRUE | evaluated 2772 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-2772 |
| 2222 | | - |
| 2223 | | - |
| 2224 | | - |
| 2225 | requestedIndex = modelIndex; | - |
| 2226 | }executed 2772 times by 4 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 2772 |
| 2227 | }executed 2778 times by 4 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
else { | 2778 |
| 2228 | model->release(object); | - |
| 2229 | if (!delegateValidated| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 2230 | delegateValidated = true; | - |
| 2231 | QObject* delegate = q->delegate(); | - |
| 2232 | qmlWarning(delegate ? delegate : q) << QQuickItemView::tr("Delegate must be of Item type"); | - |
| 2233 | } never executed: end of block | 0 |
| 2234 | } never executed: end of block | 0 |
| 2235 | inRequest = false; | - |
| 2236 | returnexecuted 2778 times by 4 tests: return nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
nullptr;executed 2778 times by 4 tests: return nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 2778 |
| 2237 | } else { | - |
| 2238 | item->setParentItem(q->contentItem()); | - |
| 2239 | if (requestedIndex == modelIndex| TRUE | evaluated 145 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 83091 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 145-83091 |
| 2240 | requestedIndex = -1;executed 145 times by 3 tests: requestedIndex = -1;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 145 |
| 2241 | FxViewItem *viewItem = newViewItem(modelIndex, item); | - |
| 2242 | if (viewItem| TRUE | evaluated 83236 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-83236 |
| 2243 | viewItem->index = modelIndex; | - |
| 2244 | | - |
| 2245 | | - |
| 2246 | initializeViewItem(viewItem); | - |
| 2247 | unrequestedItems.remove(item); | - |
| 2248 | }executed 83236 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 83236 |
| 2249 | inRequest = false; | - |
| 2250 | returnexecuted 83236 times by 11 tests: return viewItem;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
viewItem;executed 83236 times by 11 tests: return viewItem;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 83236 |
| 2251 | } | - |
| 2252 | } | - |
| 2253 | | - |
| 2254 | void QQuickItemView::createdItem(int index, QObject* object) | - |
| 2255 | { | - |
| 2256 | QQuickItemViewPrivate * const d = d_func(); | - |
| 2257 | | - |
| 2258 | QQuickItem* item = qmlobject_cast<QQuickItem*>(object); | - |
| 2259 | if (!d->inRequest| TRUE | evaluated 2926 times by 5 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 73141 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 2926-73141 |
| 2260 | d->unrequestedItems.insert(item, index); | - |
| 2261 | d->requestedIndex = -1; | - |
| 2262 | if (d->hasPendingChanges()| TRUE | evaluated 228 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2698 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) | 228-2698 |
| 2263 | d->layout();executed 228 times by 4 tests: d->layout();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 228 |
| 2264 | else | - |
| 2265 | d->refill();executed 2698 times by 4 tests: d->refill();Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 2698 |
| 2266 | if (d->unrequestedItems.contains(item)| TRUE | evaluated 229 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2697 times by 5 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) | 229-2697 |
| 2267 | d->repositionPackageItemAt(item, index);executed 229 times by 3 tests: d->repositionPackageItemAt(item, index);Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 229 |
| 2268 | else if (index == d->currentIndex| TRUE | evaluated 16 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2681 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) | 16-2681 |
| 2269 | d->updateCurrent(index);executed 16 times by 4 tests: d->updateCurrent(index);Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 16 |
| 2270 | }executed 2926 times by 5 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 2926 |
| 2271 | }executed 76067 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 76067 |
| 2272 | | - |
| 2273 | void QQuickItemView::initItem(int, QObject *object) | - |
| 2274 | { | - |
| 2275 | QQuickItem* item = qmlobject_cast<QQuickItem*>(object); | - |
| 2276 | if (item| TRUE | evaluated 76067 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-76067 |
| 2277 | if (qFuzzyIsNull(item->z())| TRUE | evaluated 75981 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 86 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 86-75981 |
| 2278 | item->setZ(1);executed 75981 times by 11 tests: item->setZ(1);Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 75981 |
| 2279 | item->setParentItem(contentItem()); | - |
| 2280 | QQuickItemPrivate::get(item)->setCulled(true); | - |
| 2281 | }executed 76067 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 76067 |
| 2282 | }executed 76067 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 76067 |
| 2283 | | - |
| 2284 | void QQuickItemView::destroyingItem(QObject *object) | - |
| 2285 | { | - |
| 2286 | QQuickItemViewPrivate * const d = d_func(); | - |
| 2287 | QQuickItem* item = qmlobject_cast<QQuickItem*>(object); | - |
| 2288 | if (item| TRUE | evaluated 19408 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-19408 |
| 2289 | item->setParentItem(nullptr); | - |
| 2290 | d->unrequestedItems.remove(item); | - |
| 2291 | }executed 19408 times by 4 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 19408 |
| 2292 | }executed 19408 times by 4 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 19408 |
| 2293 | | - |
| 2294 | bool QQuickItemViewPrivate::releaseItem(FxViewItem *item) | - |
| 2295 | { | - |
| 2296 | QQuickItemView * const q = q_func(); | - |
| 2297 | if (!item| TRUE | evaluated 4214 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquickimage
- tst_qquickvisualdatamodel
| | FALSE | evaluated 80816 times by 10 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
|| !model| TRUE | evaluated 162 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 80654 times by 10 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 162-80816 |
| 2298 | returnexecuted 4376 times by 4 tests: return true;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquickimage
- tst_qquickvisualdatamodel
true;executed 4376 times by 4 tests: return true;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquickimage
- tst_qquickvisualdatamodel
| 4376 |
| 2299 | if (trackedItem == item| TRUE | never evaluated | | FALSE | evaluated 80654 times by 10 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 0-80654 |
| 2300 | trackedItem = nullptr; never executed: trackedItem = nullptr; | 0 |
| 2301 | item->trackGeometry(false); | - |
| 2302 | | - |
| 2303 | QQmlInstanceModel::ReleaseFlags flags = model->release(item->item); | - |
| 2304 | if (item->item| TRUE | evaluated 80654 times by 10 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-80654 |
| 2305 | if (flags == 0| TRUE | evaluated 56153 times by 10 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 24501 times by 5 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) { | 24501-56153 |
| 2306 | | - |
| 2307 | QQuickItemPrivate::get(item->item)->setCulled(true); | - |
| 2308 | unrequestedItems.insert(item->item, model->indexOf(item->item, q)); | - |
| 2309 | }executed 56153 times by 10 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
else if (flags & QQmlInstanceModel::Destroyed| TRUE | evaluated 20103 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 4398 times by 5 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
|
) { | 4398-56153 |
| 2310 | item->item->setParentItem(nullptr); | - |
| 2311 | }executed 20103 times by 4 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 20103 |
| 2312 | }executed 80654 times by 10 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 80654 |
| 2313 | delete item; | - |
| 2314 | returnexecuted 80654 times by 10 tests: return flags != QQmlInstanceModel::Referenced;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
flags != QQmlInstanceModel::Referenced;executed 80654 times by 10 tests: return flags != QQmlInstanceModel::Referenced;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 80654 |
| 2315 | } | - |
| 2316 | | - |
| 2317 | QQuickItem *QQuickItemViewPrivate::createHighlightItem() const | - |
| 2318 | { | - |
| 2319 | returnexecuted 4198 times by 11 tests: return createComponentItem(highlightComponent, 0.0, true);Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
createComponentItem(highlightComponent, 0.0, true);executed 4198 times by 11 tests: return createComponentItem(highlightComponent, 0.0, true);Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 4198 |
| 2320 | } | - |
| 2321 | | - |
| 2322 | QQuickItem *QQuickItemViewPrivate::createComponentItem(QQmlComponent *component, qreal zValue, bool createDefault) const | - |
| 2323 | { | - |
| 2324 | const QQuickItemView * const q = q_func(); | - |
| 2325 | | - |
| 2326 | QQuickItem *item = nullptr; | - |
| 2327 | if (component| TRUE | evaluated 1496 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 44602 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 1496-44602 |
| 2328 | QQmlContext *creationContext = component->creationContext(); | - |
| 2329 | QQmlContext *context = new QQmlContext( | - |
| 2330 | creationContext ? creationContext : qmlContext(q)); | - |
| 2331 | QObject *nobj = component->beginCreate(context); | - |
| 2332 | if (nobj| TRUE | evaluated 1496 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | never evaluated |
) { | 0-1496 |
| 2333 | QQml_setParent_noEvent(context, nobj); | - |
| 2334 | item = qobject_cast<QQuickItem *>(nobj); | - |
| 2335 | if (!item| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 1488 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
|
) | 8-1488 |
| 2336 | delete nobj;executed 8 times by 1 test: delete nobj; | 8 |
| 2337 | }executed 1496 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
else { | 1496 |
| 2338 | delete context; | - |
| 2339 | } never executed: end of block | 0 |
| 2340 | } else if (createDefault| TRUE | evaluated 3234 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 41368 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 3234-41368 |
| 2341 | item = new QQuickItem; | - |
| 2342 | }executed 3234 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 3234 |
| 2343 | if (item| TRUE | evaluated 4722 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 41376 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) { | 4722-41376 |
| 2344 | if (qFuzzyIsNull(item->z())| TRUE | evaluated 4702 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 20-4702 |
| 2345 | item->setZ(zValue);executed 4702 times by 11 tests: item->setZ(zValue);Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 4702 |
| 2346 | QQml_setParent_noEvent(item, q->contentItem()); | - |
| 2347 | item->setParentItem(q->contentItem()); | - |
| 2348 | }executed 4722 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 4722 |
| 2349 | if (component| TRUE | evaluated 1496 times by 3 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| | FALSE | evaluated 44602 times by 12 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
) | 1496-44602 |
| 2350 | component->completeCreate();executed 1496 times by 3 tests: component->completeCreate();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
| 1496 |
| 2351 | returnexecuted 46098 times by 12 tests: return item;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
item;executed 46098 times by 12 tests: return item;Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 46098 |
| 2352 | } | - |
| 2353 | | - |
| 2354 | void QQuickItemViewPrivate::updateTrackedItem() | - |
| 2355 | { | - |
| 2356 | QQuickItemView * const q = q_func(); | - |
| 2357 | FxViewItem *item = currentItem; | - |
| 2358 | if (highlight| TRUE | evaluated 23559 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 149 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 149-23559 |
| 2359 | item = highlight;executed 23559 times by 11 tests: item = highlight;Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 23559 |
| 2360 | trackedItem = item; | - |
| 2361 | | - |
| 2362 | if (trackedItem| TRUE | evaluated 23563 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| | FALSE | evaluated 145 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) | 145-23563 |
| 2363 | q->trackedPositionChanged();executed 23563 times by 11 tests: q->trackedPositionChanged();Executed by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 23563 |
| 2364 | }executed 23708 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 23708 |
| 2365 | | - |
| 2366 | void QQuickItemViewPrivate::updateUnrequestedIndexes() | - |
| 2367 | { | - |
| 2368 | QQuickItemView * const q = q_func(); | - |
| 2369 | for (QHash<QQuickItem*,int>::iterator it = unrequestedItems.begin(), end = unrequestedItems.end(); it != end| TRUE | evaluated 434 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3831 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
; ++it) | 434-3831 |
| 2370 | *executed 434 times by 4 tests: *it = model->indexOf(it.key(), q);Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
it = model->indexOf(it.key(), q);executed 434 times by 4 tests: *it = model->indexOf(it.key(), q);Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 434 |
| 2371 | }executed 3831 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 3831 |
| 2372 | | - |
| 2373 | void QQuickItemViewPrivate::updateUnrequestedPositions() | - |
| 2374 | { | - |
| 2375 | for (QHash<QQuickItem*,int>::const_iterator it = unrequestedItems.cbegin(), cend = unrequestedItems.cend(); it != cend| TRUE | evaluated 523 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 12123 times by 11 testsEvaluated by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
; ++it) { | 523-12123 |
| 2376 | if (it.value() >= 0| TRUE | evaluated 141 times by 2 testsEvaluated by:- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 382 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
) | 141-382 |
| 2377 | repositionPackageItemAt(it.key(), it.value());executed 141 times by 2 tests: repositionPackageItemAt(it.key(), it.value());Executed by:- tst_qquicklistview
- tst_qquickvisualdatamodel
| 141 |
| 2378 | }executed 523 times by 3 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 523 |
| 2379 | }executed 12123 times by 11 tests: end of blockExecuted by:- tst_examples
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 12123 |
| 2380 | | - |
| 2381 | void QQuickItemViewPrivate::updateVisibleIndex() | - |
| 2382 | { | - |
| 2383 | typedef QList<FxViewItem*>::const_iterator FxViewItemListConstIt; | - |
| 2384 | | - |
| 2385 | visibleIndex = 0; | - |
| 2386 | for (FxViewItemListConstIt it = visibleItems.constBegin(), cend = visibleItems.constEnd(); it != cend| TRUE | evaluated 4411 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 176 times by 3 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
|
; ++it) { | 176-4411 |
| 2387 | if ((*| TRUE | evaluated 4345 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 66 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
it)->index != -1| TRUE | evaluated 4345 times by 4 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 66 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
|
) { | 66-4345 |
| 2388 | visibleIndex = (*it)->index; | - |
| 2389 | break;executed 4345 times by 4 tests: break;Executed by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 4345 |
| 2390 | } | - |
| 2391 | }executed 66 times by 2 tests: end of blockExecuted by:- tst_qquickgridview
- tst_qquicklistview
| 66 |
| 2392 | }executed 4521 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickvisualdatamodel
| 4521 |
| 2393 | | - |
| 2394 | | - |
| 2395 | | - |
| | |