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