| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | struct Update { | - |
| 8 | Update(QQuickTimeLineValue *_g, qreal _v) | - |
| 9 | : g(_g), v(_v) {}executed 29529 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 29529 |
| 10 | Update(const QQuickTimeLineCallback &_e) | - |
| 11 | : g(nullptr), v(0), e(_e) {}executed 627 times by 7 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 627 |
| 12 | | - |
| 13 | QQuickTimeLineValue *g; | - |
| 14 | qreal v; | - |
| 15 | QQuickTimeLineCallback e; | - |
| 16 | }; | - |
| 17 | | - |
| 18 | struct QQuickTimeLinePrivate | - |
| 19 | { | - |
| 20 | QQuickTimeLinePrivate(QQuickTimeLine *); | - |
| 21 | | - |
| 22 | struct Op { | - |
| 23 | enum Type { | - |
| 24 | Pause, | - |
| 25 | Set, | - |
| 26 | Move, | - |
| 27 | MoveBy, | - |
| 28 | Accel, | - |
| 29 | AccelDistance, | - |
| 30 | Execute | - |
| 31 | }; | - |
| 32 | Op() {} | - |
| 33 | Op(Type t, int l, qreal v, qreal v2, int o, | - |
| 34 | const QQuickTimeLineCallback &ev = QQuickTimeLineCallback(), const QEasingCurve &es = QEasingCurve()) | - |
| 35 | : type(t), length(l), value(v), value2(v2), order(o), event(ev), | - |
| 36 | easing(es) {}executed 12641 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 12641 |
| 37 | Op(const Op &o) | - |
| 38 | : type(o.type), length(o.length), value(o.value), value2(o.value2), | - |
| 39 | order(o.order), event(o.event), easing(o.easing) {}executed 12641 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 12641 |
| 40 | Op &operator=(const Op &o) { | - |
| 41 | type = o.type; length = o.length; value = o.value; | - |
| 42 | value2 = o.value2; order = o.order; event = o.event; | - |
| 43 | easing = o.easing; | - |
| 44 | return never executed: return *this; *this;never executed: return *this; | 0 |
| 45 | } | - |
| 46 | | - |
| 47 | Type type; | - |
| 48 | int length; | - |
| 49 | qreal value; | - |
| 50 | qreal value2; | - |
| 51 | | - |
| 52 | int order; | - |
| 53 | QQuickTimeLineCallback event; | - |
| 54 | QEasingCurve easing; | - |
| 55 | }; | - |
| 56 | struct TimeLine | - |
| 57 | { | - |
| 58 | TimeLine() {} | - |
| 59 | QList<Op> ops; | - |
| 60 | int length = 0; | - |
| 61 | int consumedOpLength = 0; | - |
| 62 | qreal base = 0.; | - |
| 63 | }; | - |
| 64 | | - |
| 65 | int length; | - |
| 66 | int syncPoint; | - |
| 67 | typedef QHash<QQuickTimeLineObject *, TimeLine> Ops; | - |
| 68 | Ops ops; | - |
| 69 | QQuickTimeLine *q; | - |
| 70 | | - |
| 71 | void add(QQuickTimeLineObject &, const Op &); | - |
| 72 | qreal value(const Op &op, int time, qreal base, bool *) const; | - |
| 73 | | - |
| 74 | int advance(int); | - |
| 75 | | - |
| 76 | bool clockRunning; | - |
| 77 | int prevTime; | - |
| 78 | | - |
| 79 | int order; | - |
| 80 | | - |
| 81 | QQuickTimeLine::SyncMode syncMode; | - |
| 82 | int syncAdj; | - |
| 83 | QList<QPair<int, Update> > *updateQueue; | - |
| 84 | }; | - |
| 85 | | - |
| 86 | QQuickTimeLinePrivate::QQuickTimeLinePrivate(QQuickTimeLine *parent) | - |
| 87 | : length(0), syncPoint(0), q(parent), clockRunning(false), prevTime(0), order(0), syncMode(QQuickTimeLine::LocalSync), syncAdj(0), updateQueue(nullptr) | - |
| 88 | { | - |
| 89 | }executed 8484 times by 19 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquicktableview
- tst_qquicktimeline
- tst_qquickvisualdatamodel
- tst_touchmouse
| 8484 |
| 90 | | - |
| 91 | void QQuickTimeLinePrivate::add(QQuickTimeLineObject &g, const Op &o) | - |
| 92 | { | - |
| 93 | if (g._t| TRUE | evaluated 2981 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| | FALSE | evaluated 9660 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
&& g._t != q| TRUE | never evaluated | | FALSE | evaluated 2981 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
) { | 0-9660 |
| 94 | QMessageLogger(__FILE__, 143, __PRETTY_FUNCTION__).warning() << "QQuickTimeLine: Cannot modify a QQuickTimeLineValue owned by" | - |
| 95 | << "another timeline."; | - |
| 96 | return; never executed: return; | 0 |
| 97 | } | - |
| 98 | g._t = q; | - |
| 99 | | - |
| 100 | Ops::Iterator iter = ops.find(&g); | - |
| 101 | if (iter == ops.end()| TRUE | evaluated 9660 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2981 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
) { | 2981-9660 |
| 102 | iter = ops.insert(&g, TimeLine()); | - |
| 103 | if (syncPoint > 0| TRUE | never evaluated | | FALSE | evaluated 9660 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) | 0-9660 |
| 104 | q->pause(g, syncPoint); never executed: q->pause(g, syncPoint); | 0 |
| 105 | }executed 9660 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 9660 |
| 106 | if (!iter->ops.isEmpty()| TRUE | evaluated 2981 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| | FALSE | evaluated 9660 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
&& | 2981-9660 |
| 107 | o.type == Op::Pause| TRUE | never evaluated | | FALSE | evaluated 2981 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
&& | 0-2981 |
| 108 | iter->ops.constLast().type == Op::Pause| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 109 | iter->ops.last().length += o.length; | - |
| 110 | iter->length += o.length; | - |
| 111 | } never executed: end of block else { | 0 |
| 112 | iter->ops.append(o); | - |
| 113 | iter->length += o.length; | - |
| 114 | }executed 12641 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 12641 |
| 115 | | - |
| 116 | if (iter->length > length| TRUE | evaluated 6250 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 6391 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) | 6250-6391 |
| 117 | length = iter->length;executed 6250 times by 8 tests: length = iter->length;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 6250 |
| 118 | | - |
| 119 | if (!clockRunning| TRUE | evaluated 8816 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3825 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
) { | 3825-8816 |
| 120 | q->stop(); | - |
| 121 | prevTime = 0; | - |
| 122 | clockRunning = true; | - |
| 123 | | - |
| 124 | if (syncMode == QQuickTimeLine::LocalSync| TRUE | evaluated 8816 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-8816 |
| 125 | syncAdj = -1; | - |
| 126 | }executed 8816 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
else { | 8816 |
| 127 | syncAdj = 0; | - |
| 128 | } never executed: end of block | 0 |
| 129 | q->start(); | - |
| 130 | | - |
| 131 | | - |
| 132 | | - |
| 133 | | - |
| 134 | | - |
| 135 | | - |
| 136 | | - |
| 137 | }executed 8816 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 8816 |
| 138 | }executed 12641 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 12641 |
| 139 | | - |
| 140 | qreal QQuickTimeLinePrivate::value(const Op &op, int time, qreal base, bool *changed) const | - |
| 141 | { | - |
| 142 | ((time >= 0) ? static_cast<void>(0) : qt_assert("time >= 0", __FILE__, 191)); | - |
| 143 | ((time <= op.length) ? static_cast<void>(0) : qt_assert("time <= op.length", __FILE__, 192)); | - |
| 144 | *changed = true; | - |
| 145 | | - |
| 146 | switch(op.type) { | - |
| 147 | case never executed: case Op::Pause: Op::Pause:never executed: case Op::Pause: | 0 |
| 148 | *changed = false; | - |
| 149 | return never executed: return base; base;never executed: return base; | 0 |
| 150 | caseexecuted 4957 times by 6 tests: case Op::Set:Executed by:- tst_examples
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickvisualdatamodel
Op::Set:executed 4957 times by 6 tests: case Op::Set:Executed by:- tst_examples
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 4957 |
| 151 | returnexecuted 4957 times by 6 tests: return op.value;Executed by:- tst_examples
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickvisualdatamodel
op.value;executed 4957 times by 6 tests: return op.value;Executed by:- tst_examples
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 4957 |
| 152 | caseexecuted 16446 times by 8 tests: case Op::Move:Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
Op::Move:executed 16446 times by 8 tests: case Op::Move:Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 16446 |
| 153 | if (time == 0| TRUE | never evaluated | | FALSE | evaluated 16446 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) { | 0-16446 |
| 154 | return never executed: return base; base;never executed: return base; | 0 |
| 155 | } else if (time == (op.length)| TRUE | evaluated 1080 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 15366 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) { | 1080-15366 |
| 156 | returnexecuted 1080 times by 8 tests: return op.value;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
op.value;executed 1080 times by 8 tests: return op.value;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 1080 |
| 157 | } else { | - |
| 158 | qreal delta = op.value - base; | - |
| 159 | qreal pTime = (qreal)(time) / (qreal)op.length; | - |
| 160 | if (op.easing.type() == QEasingCurve::Linear| TRUE | evaluated 3264 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 12102 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
) | 3264-12102 |
| 161 | returnexecuted 3264 times by 7 tests: return base + delta * pTime;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickvisualdatamodel
base + delta * pTime;executed 3264 times by 7 tests: return base + delta * pTime;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickvisualdatamodel
| 3264 |
| 162 | else | - |
| 163 | returnexecuted 12102 times by 7 tests: return base + delta * op.easing.valueForProgress(pTime);Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
base + delta * op.easing.valueForProgress(pTime);executed 12102 times by 7 tests: return base + delta * op.easing.valueForProgress(pTime);Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 12102 |
| 164 | } | - |
| 165 | case never executed: case Op::MoveBy: Op::MoveBy:never executed: case Op::MoveBy: | 0 |
| 166 | if (time == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 167 | return never executed: return base; base;never executed: return base; | 0 |
| 168 | } else if (time == (op.length)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 169 | return never executed: return base + op.value; base + op.value;never executed: return base + op.value; | 0 |
| 170 | } else { | - |
| 171 | qreal delta = op.value; | - |
| 172 | qreal pTime = (qreal)(time) / (qreal)op.length; | - |
| 173 | if (op.easing.type() == QEasingCurve::Linear| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 174 | return never executed: return base + delta * pTime; base + delta * pTime;never executed: return base + delta * pTime; | 0 |
| 175 | else | - |
| 176 | return never executed: return base + delta * op.easing.valueForProgress(pTime); base + delta * op.easing.valueForProgress(pTime);never executed: return base + delta * op.easing.valueForProgress(pTime); | 0 |
| 177 | } | - |
| 178 | caseexecuted 8101 times by 7 tests: case Op::Accel:Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
Op::Accel:executed 8101 times by 7 tests: case Op::Accel:Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 8101 |
| 179 | if (time == 0| TRUE | never evaluated | | FALSE | evaluated 8101 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
) { | 0-8101 |
| 180 | return never executed: return base; base;never executed: return base; | 0 |
| 181 | } else { | - |
| 182 | qreal t = (qreal)(time) / 1000.0f; | - |
| 183 | qreal delta = op.value * t + 0.5f * op.value2 * t * t; | - |
| 184 | returnexecuted 8101 times by 7 tests: return base + delta;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
base + delta;executed 8101 times by 7 tests: return base + delta;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 8101 |
| 185 | } | - |
| 186 | caseexecuted 25 times by 1 test: case Op::AccelDistance: Op::AccelDistance:executed 25 times by 1 test: case Op::AccelDistance: | 25 |
| 187 | if (time == 0| TRUE | never evaluated | | FALSE | evaluated 25 times by 1 test |
) { | 0-25 |
| 188 | return never executed: return base; base;never executed: return base; | 0 |
| 189 | } else if (time == (op.length)| TRUE | never evaluated | | FALSE | evaluated 25 times by 1 test |
) { | 0-25 |
| 190 | return never executed: return base + op.value2; base + op.value2;never executed: return base + op.value2; | 0 |
| 191 | } else { | - |
| 192 | qreal t = (qreal)(time) / 1000.0f; | - |
| 193 | qreal accel = -1.0f * 1000.0f * op.value / (qreal)op.length; | - |
| 194 | qreal delta = op.value * t + 0.5f * accel * t * t; | - |
| 195 | returnexecuted 25 times by 1 test: return base + delta; base + delta;executed 25 times by 1 test: return base + delta; | 25 |
| 196 | | - |
| 197 | } | - |
| 198 | case never executed: case Op::Execute: Op::Execute:never executed: case Op::Execute: | 0 |
| 199 | op.event.d0(op.event.d1); | - |
| 200 | *changed = false; | - |
| 201 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 202 | } | - |
| 203 | | - |
| 204 | return never executed: return base; base;never executed: return base; | 0 |
| 205 | } | - |
| 206 | QQuickTimeLine::QQuickTimeLine(QObject *parent) | - |
| 207 | : QObject(parent) | - |
| 208 | { | - |
| 209 | d = new QQuickTimeLinePrivate(this); | - |
| 210 | }executed 8484 times by 19 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquicktableview
- tst_qquicktimeline
- tst_qquickvisualdatamodel
- tst_touchmouse
| 8484 |
| 211 | | - |
| 212 | | - |
| 213 | | - |
| 214 | | - |
| 215 | | - |
| 216 | QQuickTimeLine::~QQuickTimeLine() | - |
| 217 | { | - |
| 218 | for (QQuickTimeLinePrivate::Ops::Iterator iter = d->ops.begin(); | - |
| 219 | iter != d->ops.end()| TRUE | evaluated 82 times by 6 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| | FALSE | evaluated 8468 times by 17 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquicktableview
- tst_qquicktimeline
- tst_qquickvisualdatamodel
- tst_touchmouse
|
; | 82-8468 |
| 220 | ++iter) | - |
| 221 | iter.key()->_t = nullptr;executed 82 times by 6 tests: iter.key()->_t = nullptr;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickvisualdatamodel
| 82 |
| 222 | | - |
| 223 | delete d; d = nullptr; | - |
| 224 | }executed 8468 times by 17 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquicktableview
- tst_qquicktimeline
- tst_qquickvisualdatamodel
- tst_touchmouse
| 8468 |
| 225 | QQuickTimeLine::SyncMode QQuickTimeLine::syncMode() const | - |
| 226 | { | - |
| 227 | return never executed: return d->syncMode; d->syncMode;never executed: return d->syncMode; | 0 |
| 228 | } | - |
| 229 | | - |
| 230 | | - |
| 231 | | - |
| 232 | | - |
| 233 | void QQuickTimeLine::setSyncMode(SyncMode syncMode) | - |
| 234 | { | - |
| 235 | d->syncMode = syncMode; | - |
| 236 | } never executed: end of block | 0 |
| 237 | | - |
| 238 | | - |
| 239 | | - |
| 240 | | - |
| 241 | void QQuickTimeLine::pause(QQuickTimeLineObject &obj, int time) | - |
| 242 | { | - |
| 243 | if (time <= 0| TRUE | never evaluated | | FALSE | never evaluated |
) return;never executed: return; | 0 |
| 244 | QQuickTimeLinePrivate::Op op(QQuickTimeLinePrivate::Op::Pause, time, 0., 0., d->order++); | - |
| 245 | d->add(obj, op); | - |
| 246 | } never executed: end of block | 0 |
| 247 | | - |
| 248 | | - |
| 249 | | - |
| 250 | | - |
| 251 | void QQuickTimeLine::callback(const QQuickTimeLineCallback &callback) | - |
| 252 | { | - |
| 253 | QQuickTimeLinePrivate::Op op(QQuickTimeLinePrivate::Op::Execute, 0, 0, 0., d->order++, callback); | - |
| 254 | d->add(*callback.callbackObject(), op); | - |
| 255 | }executed 985 times by 7 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 985 |
| 256 | | - |
| 257 | | - |
| 258 | | - |
| 259 | | - |
| 260 | void QQuickTimeLine::set(QQuickTimeLineValue &timeLineValue, qreal value) | - |
| 261 | { | - |
| 262 | QQuickTimeLinePrivate::Op op(QQuickTimeLinePrivate::Op::Set, 0, value, 0., d->order++); | - |
| 263 | d->add(timeLineValue, op); | - |
| 264 | }executed 4969 times by 6 tests: end of blockExecuted by:- tst_examples
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 4969 |
| 265 | | - |
| 266 | | - |
| 267 | | - |
| 268 | | - |
| 269 | | - |
| 270 | | - |
| 271 | | - |
| 272 | int QQuickTimeLine::accel(QQuickTimeLineValue &timeLineValue, qreal velocity, qreal acceleration) | - |
| 273 | { | - |
| 274 | if (qFuzzyIsNull(acceleration)| TRUE | never evaluated | | FALSE | evaluated 235 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
|
|| qt_is_nan(acceleration)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 233 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
|
) | 0-235 |
| 275 | returnexecuted 2 times by 1 test: return -1; -1;executed 2 times by 1 test: return -1; | 2 |
| 276 | | - |
| 277 | if ((| TRUE | evaluated 114 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
| | FALSE | evaluated 119 times by 4 testsEvaluated by:- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
|
velocity > 0.0f) == (acceleration > 0.0f)| TRUE | evaluated 114 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
| | FALSE | evaluated 119 times by 4 testsEvaluated by:- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
|
) | 114-119 |
| 278 | acceleration = acceleration * -1.0f;executed 114 times by 8 tests: acceleration = acceleration * -1.0f;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
| 114 |
| 279 | | - |
| 280 | int time = static_cast<int>(-1000 * velocity / acceleration); | - |
| 281 | if (time <= 0| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 231 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
) returnexecuted 2 times by 1 test: return -1; -1;executed 2 times by 1 test: return -1; | 2-231 |
| 282 | | - |
| 283 | QQuickTimeLinePrivate::Op op(QQuickTimeLinePrivate::Op::Accel, time, velocity, acceleration, d->order++); | - |
| 284 | d->add(timeLineValue, op); | - |
| 285 | | - |
| 286 | returnexecuted 231 times by 7 tests: return time;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
time;executed 231 times by 7 tests: return time;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 231 |
| 287 | } | - |
| 288 | int QQuickTimeLine::accel(QQuickTimeLineValue &timeLineValue, qreal velocity, qreal acceleration, qreal maxDistance) | - |
| 289 | { | - |
| 290 | if (qFuzzyIsNull(maxDistance)| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickgridview
- tst_qquickpathview
| | FALSE | evaluated 712 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
|
|| qt_is_nan(maxDistance)| TRUE | never evaluated | | FALSE | evaluated 712 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
|
|| qFuzzyIsNull(acceleration)| TRUE | never evaluated | | FALSE | evaluated 712 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
|
|| qt_is_nan(acceleration)| TRUE | never evaluated | | FALSE | evaluated 712 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
|
) | 0-712 |
| 291 | returnexecuted 6 times by 2 tests: return -1;Executed by:- tst_qquickgridview
- tst_qquickpathview
-1;executed 6 times by 2 tests: return -1;Executed by:- tst_qquickgridview
- tst_qquickpathview
| 6 |
| 292 | | - |
| 293 | ((acceleration > 0.0f && maxDistance > 0.0f) ? static_cast<void>(0) : qt_assert("acceleration > 0.0f && maxDistance > 0.0f", __FILE__, 420)); | - |
| 294 | | - |
| 295 | qreal maxAccel = (velocity * velocity) / (2.0f * maxDistance); | - |
| 296 | if (maxAccel > acceleration| TRUE | evaluated 210 times by 6 testsEvaluated by:- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
| | FALSE | evaluated 502 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
) | 210-502 |
| 297 | acceleration = maxAccel;executed 210 times by 6 tests: acceleration = maxAccel;Executed by:- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
| 210 |
| 298 | | - |
| 299 | if ((| TRUE | evaluated 361 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
| | FALSE | evaluated 351 times by 5 testsEvaluated by:- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
|
velocity > 0.0f) == (acceleration > 0.0f)| TRUE | evaluated 361 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
| | FALSE | evaluated 351 times by 5 testsEvaluated by:- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
|
) | 351-361 |
| 300 | acceleration = acceleration * -1.0f;executed 361 times by 8 tests: acceleration = acceleration * -1.0f;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquicktimeline
| 361 |
| 301 | | - |
| 302 | int time = static_cast<int>(-1000 * velocity / acceleration); | - |
| 303 | if (time <= 0| TRUE | evaluated 11 times by 2 testsEvaluated by:- tst_qquicklistview
- tst_qquicktimeline
| | FALSE | evaluated 701 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
) returnexecuted 11 times by 2 tests: return -1;Executed by:- tst_qquicklistview
- tst_qquicktimeline
-1;executed 11 times by 2 tests: return -1;Executed by:- tst_qquicklistview
- tst_qquicktimeline
| 11-701 |
| 304 | | - |
| 305 | QQuickTimeLinePrivate::Op op(QQuickTimeLinePrivate::Op::Accel, time, velocity, acceleration, d->order++); | - |
| 306 | d->add(timeLineValue, op); | - |
| 307 | | - |
| 308 | returnexecuted 701 times by 7 tests: return time;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
time;executed 701 times by 7 tests: return time;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 701 |
| 309 | } | - |
| 310 | int QQuickTimeLine::accelDistance(QQuickTimeLineValue &timeLineValue, qreal velocity, qreal distance) | - |
| 311 | { | - |
| 312 | if (qFuzzyIsNull(distance)| TRUE | never evaluated | | FALSE | evaluated 18 times by 2 testsEvaluated by:- tst_qquicklistview
- tst_qquicktimeline
|
|| qt_is_nan(distance)| TRUE | never evaluated | | FALSE | evaluated 18 times by 2 testsEvaluated by:- tst_qquicklistview
- tst_qquicktimeline
|
|| qFuzzyIsNull(velocity)| TRUE | never evaluated | | FALSE | evaluated 18 times by 2 testsEvaluated by:- tst_qquicklistview
- tst_qquicktimeline
|
|| qt_is_nan(velocity)| TRUE | never evaluated | | FALSE | evaluated 18 times by 2 testsEvaluated by:- tst_qquicklistview
- tst_qquicktimeline
|
) | 0-18 |
| 313 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 314 | | - |
| 315 | (((distance >= 0.0f) == (velocity >= 0.0f)) ? static_cast<void>(0) : qt_assert("(distance >= 0.0f) == (velocity >= 0.0f)", __FILE__, 450)); | - |
| 316 | | - |
| 317 | int time = static_cast<int>(1000 * (2.0f * distance) / velocity); | - |
| 318 | if (time <= 0| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 16 times by 1 test |
) returnexecuted 2 times by 1 test: return -1; -1;executed 2 times by 1 test: return -1; | 2-16 |
| 319 | | - |
| 320 | QQuickTimeLinePrivate::Op op(QQuickTimeLinePrivate::Op::AccelDistance, time, velocity, distance, d->order++); | - |
| 321 | d->add(timeLineValue, op); | - |
| 322 | | - |
| 323 | returnexecuted 16 times by 1 test: return time; time;executed 16 times by 1 test: return time; | 16 |
| 324 | } | - |
| 325 | | - |
| 326 | | - |
| 327 | | - |
| 328 | | - |
| 329 | | - |
| 330 | void QQuickTimeLine::move(QQuickTimeLineValue &timeLineValue, qreal destination, int time) | - |
| 331 | { | - |
| 332 | if (time <= 0| TRUE | never evaluated | | FALSE | evaluated 4611 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickvisualdatamodel
|
) return;never executed: return; | 0-4611 |
| 333 | QQuickTimeLinePrivate::Op op(QQuickTimeLinePrivate::Op::Move, time, destination, 0.0f, d->order++); | - |
| 334 | d->add(timeLineValue, op); | - |
| 335 | }executed 4611 times by 7 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickvisualdatamodel
| 4611 |
| 336 | | - |
| 337 | | - |
| 338 | | - |
| 339 | | - |
| 340 | | - |
| 341 | void QQuickTimeLine::move(QQuickTimeLineValue &timeLineValue, qreal destination, const QEasingCurve &easing, int time) | - |
| 342 | { | - |
| 343 | if (time <= 0| TRUE | evaluated 14 times by 1 test | | FALSE | evaluated 1128 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
) return;executed 14 times by 1 test: return; | 14-1128 |
| 344 | QQuickTimeLinePrivate::Op op(QQuickTimeLinePrivate::Op::Move, time, destination, 0.0f, d->order++, QQuickTimeLineCallback(), easing); | - |
| 345 | d->add(timeLineValue, op); | - |
| 346 | }executed 1128 times by 7 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 1128 |
| 347 | | - |
| 348 | | - |
| 349 | | - |
| 350 | | - |
| 351 | | - |
| 352 | void QQuickTimeLine::moveBy(QQuickTimeLineValue &timeLineValue, qreal change, int time) | - |
| 353 | { | - |
| 354 | if (time <= 0| TRUE | never evaluated | | FALSE | never evaluated |
) return;never executed: return; | 0 |
| 355 | QQuickTimeLinePrivate::Op op(QQuickTimeLinePrivate::Op::MoveBy, time, change, 0.0f, d->order++); | - |
| 356 | d->add(timeLineValue, op); | - |
| 357 | } never executed: end of block | 0 |
| 358 | | - |
| 359 | | - |
| 360 | | - |
| 361 | | - |
| 362 | | - |
| 363 | void QQuickTimeLine::moveBy(QQuickTimeLineValue &timeLineValue, qreal change, const QEasingCurve &easing, int time) | - |
| 364 | { | - |
| 365 | if (time <= 0| TRUE | never evaluated | | FALSE | never evaluated |
) return;never executed: return; | 0 |
| 366 | QQuickTimeLinePrivate::Op op(QQuickTimeLinePrivate::Op::MoveBy, time, change, 0.0f, d->order++, QQuickTimeLineCallback(), easing); | - |
| 367 | d->add(timeLineValue, op); | - |
| 368 | } never executed: end of block | 0 |
| 369 | | - |
| 370 | | - |
| 371 | | - |
| 372 | | - |
| 373 | void QQuickTimeLine::reset(QQuickTimeLineValue &timeLineValue) | - |
| 374 | { | - |
| 375 | if (!timeLineValue._t| TRUE | evaluated 60421 times by 17 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
- tst_touchmouse
| | FALSE | evaluated 3201 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) | 3201-60421 |
| 376 | return;executed 60421 times by 17 tests: return;Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
- tst_touchmouse
| 60421 |
| 377 | if (timeLineValue._t != this| TRUE | never evaluated | | FALSE | evaluated 3201 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) { | 0-3201 |
| 378 | QMessageLogger(__FILE__, 513, __PRETTY_FUNCTION__).warning() << "QQuickTimeLine: Cannot reset a QQuickTimeLineValue owned by another timeline."; | - |
| 379 | return; never executed: return; | 0 |
| 380 | } | - |
| 381 | remove(&timeLineValue); | - |
| 382 | timeLineValue._t = nullptr; | - |
| 383 | }executed 3201 times by 8 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 3201 |
| 384 | | - |
| 385 | int QQuickTimeLine::duration() const | - |
| 386 | { | - |
| 387 | returnexecuted 40127 times by 9 tests: return -1;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
-1;executed 40127 times by 9 tests: return -1;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 40127 |
| 388 | } | - |
| 389 | void QQuickTimeLine::sync(QQuickTimeLineValue &timeLineValue, QQuickTimeLineValue &syncTo) | - |
| 390 | { | - |
| 391 | QQuickTimeLinePrivate::Ops::Iterator iter = d->ops.find(&syncTo); | - |
| 392 | if (iter == d->ops.end()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 393 | return; never executed: return; | 0 |
| 394 | int length = iter->length; | - |
| 395 | | - |
| 396 | iter = d->ops.find(&timeLineValue); | - |
| 397 | if (iter == d->ops.end()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 398 | pause(timeLineValue, length); | - |
| 399 | } never executed: end of block else { | 0 |
| 400 | int glength = iter->length; | - |
| 401 | pause(timeLineValue, length - glength); | - |
| 402 | } never executed: end of block | 0 |
| 403 | } | - |
| 404 | void QQuickTimeLine::sync(QQuickTimeLineValue &timeLineValue) | - |
| 405 | { | - |
| 406 | QQuickTimeLinePrivate::Ops::Iterator iter = d->ops.find(&timeLineValue); | - |
| 407 | if (iter == d->ops.end()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 408 | pause(timeLineValue, d->length); | - |
| 409 | } never executed: end of block else { | 0 |
| 410 | pause(timeLineValue, d->length - iter->length); | - |
| 411 | } never executed: end of block | 0 |
| 412 | } | - |
| 413 | void QQuickTimeLine::setSyncPoint(int sp) | - |
| 414 | { | - |
| 415 | d->syncPoint = sp; | - |
| 416 | } never executed: end of block | 0 |
| 417 | | - |
| 418 | | - |
| 419 | | - |
| 420 | | - |
| 421 | | - |
| 422 | | - |
| 423 | int QQuickTimeLine::syncPoint() const | - |
| 424 | { | - |
| 425 | return never executed: return d->syncPoint; d->syncPoint;never executed: return d->syncPoint; | 0 |
| 426 | } | - |
| 427 | | - |
| 428 | | - |
| 429 | | - |
| 430 | | - |
| 431 | | - |
| 432 | bool QQuickTimeLine::isActive() const | - |
| 433 | { | - |
| 434 | returnexecuted 1916 times by 7 tests: return !d->ops.isEmpty();Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
!d->ops.isEmpty();executed 1916 times by 7 tests: return !d->ops.isEmpty();Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 1916 |
| 435 | } | - |
| 436 | void QQuickTimeLine::complete() | - |
| 437 | { | - |
| 438 | d->advance(d->length); | - |
| 439 | } never executed: end of block | 0 |
| 440 | void QQuickTimeLine::clear() | - |
| 441 | { | - |
| 442 | for (QQuickTimeLinePrivate::Ops::const_iterator iter = d->ops.cbegin(), cend = d->ops.cend(); iter != cend| TRUE | evaluated 97 times by 4 testsEvaluated by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
| | FALSE | evaluated 11774 times by 16 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
|
; ++iter) | 97-11774 |
| 443 | iter.key()->_t = nullptr;executed 97 times by 4 tests: iter.key()->_t = nullptr;Executed by:- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
| 97 |
| 444 | d->ops.clear(); | - |
| 445 | d->length = 0; | - |
| 446 | d->syncPoint = 0; | - |
| 447 | | - |
| 448 | }executed 11774 times by 16 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
| 11774 |
| 449 | | - |
| 450 | int QQuickTimeLine::time() const | - |
| 451 | { | - |
| 452 | returnexecuted 103681 times by 17 tests: return d->prevTime;Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
- tst_touchmouse
d->prevTime;executed 103681 times by 17 tests: return d->prevTime;Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
- tst_touchmouse
| 103681 |
| 453 | } | - |
| 454 | void QQuickTimeLine::updateCurrentTime(int v) | - |
| 455 | { | - |
| 456 | if (d->syncAdj == -1| TRUE | evaluated 8816 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 22649 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) | 8816-22649 |
| 457 | d->syncAdj = v;executed 8816 times by 9 tests: d->syncAdj = v;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 8816 |
| 458 | v -= d->syncAdj; | - |
| 459 | | - |
| 460 | int timeChanged = v - d->prevTime; | - |
| 461 | | - |
| 462 | | - |
| 463 | | - |
| 464 | | - |
| 465 | d->prevTime = v; | - |
| 466 | d->advance(timeChanged); | - |
| 467 | updated(); | - |
| 468 | | - |
| 469 | | - |
| 470 | if (d->ops.isEmpty()| TRUE | evaluated 5691 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 25774 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) { | 5691-25774 |
| 471 | stop(); | - |
| 472 | d->prevTime = 0; | - |
| 473 | d->clockRunning = false; | - |
| 474 | completed(); | - |
| 475 | }executed 5691 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 5691 |
| 476 | | - |
| 477 | | - |
| 478 | | - |
| 479 | | - |
| 480 | | - |
| 481 | else if ( state() != Running| TRUE | never evaluated | | FALSE | evaluated 25774 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) { | 0-25774 |
| 482 | stop(); | - |
| 483 | d->prevTime = 0; | - |
| 484 | d->clockRunning = true; | - |
| 485 | d->syncAdj = 0; | - |
| 486 | start(); | - |
| 487 | } never executed: end of block | 0 |
| 488 | }executed 31465 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 31465 |
| 489 | | - |
| 490 | void QQuickTimeLine::debugAnimation(QDebug d) const | - |
| 491 | { | - |
| 492 | d << "QuickTimeLine(" << hex << (const void *) this << dec << ")"; | - |
| 493 | } never executed: end of block | 0 |
| 494 | | - |
| 495 | bool operator<(const QPair<int, Update> &lhs, | - |
| 496 | const QPair<int, Update> &rhs) | - |
| 497 | { | - |
| 498 | returnexecuted 2183 times by 2 tests: return lhs.first < rhs.first;Executed by:- tst_qquickflickable
- tst_qquickmousearea
lhs.first < rhs.first;executed 2183 times by 2 tests: return lhs.first < rhs.first;Executed by:- tst_qquickflickable
- tst_qquickmousearea
| 2183 |
| 499 | } | - |
| 500 | | - |
| 501 | int QQuickTimeLinePrivate::advance(int t) | - |
| 502 | { | - |
| 503 | int pauseTime = -1; | - |
| 504 | | - |
| 505 | | - |
| 506 | do { | - |
| 507 | pauseTime = -1; | - |
| 508 | | - |
| 509 | int advanceTime = t; | - |
| 510 | for (Ops::const_iterator iter = ops.constBegin(), cend = ops.constEnd(); iter != cend| TRUE | evaluated 34056 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 32978 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
; ++iter) { | 32978-34056 |
| 511 | const TimeLine &tl = *iter; | - |
| 512 | const Op &op = tl.ops.first(); | - |
| 513 | int length = op.length - tl.consumedOpLength; | - |
| 514 | | - |
| 515 | if (length < advanceTime| TRUE | evaluated 2162 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 31894 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) { | 2162-31894 |
| 516 | advanceTime = length; | - |
| 517 | if (advanceTime == 0| TRUE | evaluated 642 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| | FALSE | evaluated 1520 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) | 642-1520 |
| 518 | break;executed 642 times by 7 tests: break;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 642 |
| 519 | }executed 1520 times by 8 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 1520 |
| 520 | }executed 33414 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 33414 |
| 521 | t -= advanceTime; | - |
| 522 | | - |
| 523 | | - |
| 524 | | - |
| 525 | QList<QPair<int, Update> > updates; | - |
| 526 | | - |
| 527 | for (Ops::Iterator iter = ops.begin(); iter != ops.end()| TRUE | evaluated 34118 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 33620 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
; ) { | 33620-34118 |
| 528 | QQuickTimeLineValue *v = static_cast<QQuickTimeLineValue *>(iter.key()); | - |
| 529 | TimeLine &tl = *iter; | - |
| 530 | ((!tl.ops.isEmpty()) ? static_cast<void>(0) : qt_assert("!tl.ops.isEmpty()", __FILE__, 764)); | - |
| 531 | | - |
| 532 | do { | - |
| 533 | Op &op = tl.ops.first(); | - |
| 534 | if (advanceTime == 0| TRUE | evaluated 9546 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 24572 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
&& op.length != 0| TRUE | evaluated 3962 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 5584 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) | 3962-24572 |
| 535 | continue;executed 3962 times by 8 tests: continue;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 3962 |
| 536 | | - |
| 537 | if (tl.consumedOpLength == 0| TRUE | evaluated 8842 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 21314 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
&& | 8842-21314 |
| 538 | op.type != Op::Pause| TRUE | evaluated 8842 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
&& | 0-8842 |
| 539 | op.type != Op::Execute| TRUE | evaluated 8215 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 627 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
) | 627-8215 |
| 540 | tl.base = v->value();executed 8215 times by 9 tests: tl.base = v->value();Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 8215 |
| 541 | | - |
| 542 | if ((| TRUE | evaluated 7254 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 22902 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
tl.consumedOpLength + advanceTime) == op.length| TRUE | evaluated 7254 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 22902 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) { | 7254-22902 |
| 543 | if (op.type == Op::Execute| TRUE | evaluated 627 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| | FALSE | evaluated 6627 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) { | 627-6627 |
| 544 | updates << qMakePair(op.order, Update(op.event)); | - |
| 545 | }executed 627 times by 7 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
else { | 627 |
| 546 | bool changed = false; | - |
| 547 | qreal val = value(op, op.length, tl.base, &changed); | - |
| 548 | if (changed| TRUE | evaluated 6627 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) | 0-6627 |
| 549 | updates << qMakePair(op.order, Update(v, val));executed 6627 times by 9 tests: updates << qMakePair(op.order, Update(v, val));Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 6627 |
| 550 | }executed 6627 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 6627 |
| 551 | tl.length -= qMin(advanceTime, tl.length); | - |
| 552 | tl.consumedOpLength = 0; | - |
| 553 | tl.ops.removeFirst(); | - |
| 554 | }executed 7254 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
else { | 7254 |
| 555 | tl.consumedOpLength += advanceTime; | - |
| 556 | bool changed = false; | - |
| 557 | qreal val = value(op, tl.consumedOpLength, tl.base, &changed); | - |
| 558 | if (changed| TRUE | evaluated 22902 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) | 0-22902 |
| 559 | updates << qMakePair(op.order, Update(v, val));executed 22902 times by 8 tests: updates << qMakePair(op.order, Update(v, val));Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 22902 |
| 560 | tl.length -= qMin(advanceTime, tl.length); | - |
| 561 | break;executed 22902 times by 8 tests: break;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 22902 |
| 562 | } | - |
| 563 | | - |
| 564 | } while(!tl.ops.isEmpty()| TRUE | evaluated 4936 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 6280 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
&& advanceTime == 0| TRUE | evaluated 3962 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 974 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
&& tl.ops.first().length == 0| TRUE | never evaluated | | FALSE | evaluated 3962 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
); | 0-6280 |
| 565 | | - |
| 566 | | - |
| 567 | if (tl.ops.isEmpty()| TRUE | evaluated 6280 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 27838 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) { | 6280-27838 |
| 568 | iter = ops.erase(iter); | - |
| 569 | v->_t = nullptr; | - |
| 570 | }executed 6280 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
else { | 6280 |
| 571 | if (tl.ops.first().type == Op::Pause| TRUE | never evaluated | | FALSE | evaluated 27838 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
&& pauseTime != 0| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-27838 |
| 572 | int opPauseTime = tl.ops.first().length - tl.consumedOpLength; | - |
| 573 | if (pauseTime == -1| TRUE | never evaluated | | FALSE | never evaluated |
|| opPauseTime < pauseTime| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 574 | pauseTime = opPauseTime; never executed: pauseTime = opPauseTime; | 0 |
| 575 | } never executed: end of block else { | 0 |
| 576 | pauseTime = 0; | - |
| 577 | }executed 27838 times by 8 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 27838 |
| 578 | ++iter; | - |
| 579 | }executed 27838 times by 8 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 27838 |
| 580 | } | - |
| 581 | | - |
| 582 | length -= qMin(length, advanceTime); | - |
| 583 | syncPoint -= advanceTime; | - |
| 584 | | - |
| 585 | std::sort(updates.begin(), updates.end()); | - |
| 586 | updateQueue = &updates; | - |
| 587 | for (int ii = 0; ii < updates.count()| TRUE | evaluated 30124 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 33620 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
; ++ii) { | 30124-33620 |
| 588 | const Update &v = updates.at(ii).second; | - |
| 589 | if (v.g| TRUE | evaluated 29497 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 627 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
) { | 627-29497 |
| 590 | v.g->setValue(v.v); | - |
| 591 | }executed 29497 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
else { | 29497 |
| 592 | v.e.d0(v.e.d1); | - |
| 593 | }executed 627 times by 7 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 627 |
| 594 | } | - |
| 595 | updateQueue = nullptr; | - |
| 596 | }executed 33620 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
while(t| TRUE | evaluated 2155 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 31465 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
); | 2155-33620 |
| 597 | | - |
| 598 | returnexecuted 31465 times by 9 tests: return pauseTime;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
pauseTime;executed 31465 times by 9 tests: return pauseTime;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 31465 |
| 599 | } | - |
| 600 | | - |
| 601 | void QQuickTimeLine::remove(QQuickTimeLineObject *v) | - |
| 602 | { | - |
| 603 | QQuickTimeLinePrivate::Ops::Iterator iter = d->ops.find(v); | - |
| 604 | ((iter != d->ops.end()) ? static_cast<void>(0) : qt_assert("iter != d->ops.end()", __FILE__, 838)); | - |
| 605 | | - |
| 606 | int len = iter->length; | - |
| 607 | d->ops.erase(iter); | - |
| 608 | if (len == d->length| TRUE | evaluated 3160 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 41 times by 1 test |
) { | 41-3160 |
| 609 | | - |
| 610 | d->length = 0; | - |
| 611 | for (QQuickTimeLinePrivate::Ops::Iterator iter = d->ops.begin(); | - |
| 612 | iter != d->ops.end()| TRUE | evaluated 189 times by 2 testsEvaluated by:- tst_qquickflickable
- tst_qquickmousearea
| | FALSE | evaluated 3160 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
; | 189-3160 |
| 613 | ++iter) { | - |
| 614 | | - |
| 615 | if (iter->length > d->length| TRUE | evaluated 186 times by 2 testsEvaluated by:- tst_qquickflickable
- tst_qquickmousearea
| | FALSE | evaluated 3 times by 1 test |
) | 3-186 |
| 616 | d->length = iter->length;executed 186 times by 2 tests: d->length = iter->length;Executed by:- tst_qquickflickable
- tst_qquickmousearea
| 186 |
| 617 | | - |
| 618 | }executed 189 times by 2 tests: end of blockExecuted by:- tst_qquickflickable
- tst_qquickmousearea
| 189 |
| 619 | }executed 3160 times by 8 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 3160 |
| 620 | if (d->ops.isEmpty()| TRUE | evaluated 2971 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| | FALSE | evaluated 230 times by 2 testsEvaluated by:- tst_qquickflickable
- tst_qquickmousearea
|
) { | 230-2971 |
| 621 | stop(); | - |
| 622 | d->clockRunning = false; | - |
| 623 | }executed 2971 times by 8 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
else if (state() != Running| TRUE | never evaluated | | FALSE | evaluated 230 times by 2 testsEvaluated by:- tst_qquickflickable
- tst_qquickmousearea
|
) { | 0-2971 |
| 624 | stop(); | - |
| 625 | d->prevTime = 0; | - |
| 626 | d->clockRunning = true; | - |
| 627 | | - |
| 628 | if (d->syncMode == QQuickTimeLine::LocalSync| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 629 | d->syncAdj = -1; | - |
| 630 | } never executed: end of block else { | 0 |
| 631 | d->syncAdj = 0; | - |
| 632 | } never executed: end of block | 0 |
| 633 | start(); | - |
| 634 | } never executed: end of block | 0 |
| 635 | | - |
| 636 | if (d->updateQueue| TRUE | evaluated 300 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| | FALSE | evaluated 2901 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
|
) { | 300-2901 |
| 637 | for (int ii = 0; ii < d->updateQueue->count()| TRUE | evaluated 332 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| | FALSE | evaluated 300 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
|
; ++ii) { | 300-332 |
| 638 | if (d->updateQueue->at(ii).second.g == v| TRUE | evaluated 300 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| | FALSE | evaluated 32 times by 1 test |
|| | 32-300 |
| 639 | d->updateQueue->at(ii).second.e.callbackObject() == v| TRUE | never evaluated | | FALSE | evaluated 32 times by 1 test |
) { | 0-32 |
| 640 | d->updateQueue->removeAt(ii); | - |
| 641 | --ii; | - |
| 642 | }executed 300 times by 7 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 300 |
| 643 | }executed 332 times by 7 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 332 |
| 644 | }executed 300 times by 7 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 300 |
| 645 | | - |
| 646 | | - |
| 647 | }executed 3201 times by 8 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 3201 |
| 648 | QQuickTimeLineObject::QQuickTimeLineObject() | - |
| 649 | : _t(nullptr) | - |
| 650 | { | - |
| 651 | }executed 16966 times by 19 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlecmascript
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquicktableview
- tst_qquicktimeline
- tst_qquickvisualdatamodel
- tst_touchmouse
| 16966 |
| 652 | | - |
| 653 | QQuickTimeLineObject::~QQuickTimeLineObject() | - |
| 654 | { | - |
| 655 | if (_t| TRUE | never evaluated | | FALSE | evaluated 16934 times by 17 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquicktableview
- tst_qquicktimeline
- tst_qquickvisualdatamodel
- tst_touchmouse
|
) { | 0-16934 |
| 656 | _t->remove(this); | - |
| 657 | _t = nullptr; | - |
| 658 | } never executed: end of block | 0 |
| 659 | }executed 16934 times by 17 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmllistmodel
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickspringanimation
- tst_qquicktableview
- tst_qquicktimeline
- tst_qquickvisualdatamodel
- tst_touchmouse
| 16934 |
| 660 | | - |
| 661 | QQuickTimeLineCallback::QQuickTimeLineCallback() | - |
| 662 | : d0(nullptr), d1(nullptr), d2(nullptr) | - |
| 663 | { | - |
| 664 | }executed 41185 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 41185 |
| 665 | | - |
| 666 | QQuickTimeLineCallback::QQuickTimeLineCallback(QQuickTimeLineObject *b, Callback f, void *d) | - |
| 667 | : d0(f), d1(d), d2(b) | - |
| 668 | { | - |
| 669 | }executed 985 times by 7 tests: end of blockExecuted by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 985 |
| 670 | | - |
| 671 | QQuickTimeLineCallback::QQuickTimeLineCallback(const QQuickTimeLineCallback &o) | - |
| 672 | : d0(o.d0), d1(o.d1), d2(o.d2) | - |
| 673 | { | - |
| 674 | }executed 87441 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickvisualdatamodel
| 87441 |
| 675 | | - |
| 676 | QQuickTimeLineCallback &QQuickTimeLineCallback::operator=(const QQuickTimeLineCallback &o) | - |
| 677 | { | - |
| 678 | d0 = o.d0; | - |
| 679 | d1 = o.d1; | - |
| 680 | d2 = o.d2; | - |
| 681 | returnexecuted 1477 times by 2 tests: return *this;Executed by:- tst_qquickflickable
- tst_qquickmousearea
*this;executed 1477 times by 2 tests: return *this;Executed by:- tst_qquickflickable
- tst_qquickmousearea
| 1477 |
| 682 | } | - |
| 683 | | - |
| 684 | QQuickTimeLineObject *QQuickTimeLineCallback::callbackObject() const | - |
| 685 | { | - |
| 686 | returnexecuted 1017 times by 7 tests: return d2;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
d2;executed 1017 times by 7 tests: return d2;Executed by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 1017 |
| 687 | } | - |
| 688 | | - |
| 689 | | - |
| | |