OpenCoverage

qsequentialanimationgroupjob.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/animations/qsequentialanimationgroupjob.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QSequentialAnimationGroupJob::QSequentialAnimationGroupJob()-
5 : QAnimationGroupJob()-
6 , m_currentAnimation(nullptr)-
7 , m_previousLoop(0)-
8{-
9}
executed 12778 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
12778
10-
11QSequentialAnimationGroupJob::~QSequentialAnimationGroupJob()-
12{-
13}-
14-
15bool QSequentialAnimationGroupJob::atEnd() const-
16{-
17-
18-
19-
20-
21-
22-
23-
24 const int animTotalCurrentTime = m_currentAnimation->currentTime();-
25 return
executed 47230 times by 15 tests: return (m_currentLoop == m_loopCount - 1 && m_direction == Forward && !m_currentAnimation->nextSibling() && animTotalCurrentTime == animationActualTotalDuration(m_currentAnimation));
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
(m_currentLoop == m_loopCount - 1
executed 47230 times by 15 tests: return (m_currentLoop == m_loopCount - 1 && m_direction == Forward && !m_currentAnimation->nextSibling() && animTotalCurrentTime == animationActualTotalDuration(m_currentAnimation));
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
47230
26 && m_direction == Forward
executed 47230 times by 15 tests: return (m_currentLoop == m_loopCount - 1 && m_direction == Forward && !m_currentAnimation->nextSibling() && animTotalCurrentTime == animationActualTotalDuration(m_currentAnimation));
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
47230
27 && !m_currentAnimation->nextSibling()
executed 47230 times by 15 tests: return (m_currentLoop == m_loopCount - 1 && m_direction == Forward && !m_currentAnimation->nextSibling() && animTotalCurrentTime == animationActualTotalDuration(m_currentAnimation));
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
47230
28 && animTotalCurrentTime == animationActualTotalDuration(m_currentAnimation));
executed 47230 times by 15 tests: return (m_currentLoop == m_loopCount - 1 && m_direction == Forward && !m_currentAnimation->nextSibling() && animTotalCurrentTime == animationActualTotalDuration(m_currentAnimation));
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
47230
29}-
30-
31int QSequentialAnimationGroupJob::animationActualTotalDuration(QAbstractAnimationJob *anim) const-
32{-
33 int ret = anim->totalDuration();-
34 if (ret == -1
ret == -1Description
TRUEevaluated 339 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
FALSEevaluated 147885 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) {
339-147885
35 int done = uncontrolledAnimationFinishTime(anim);-
36-
37 if (done >= 0
done >= 0Description
TRUEevaluated 114 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEevaluated 225 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
&& (anim->loopCount() - 1 == anim->currentLoop()
anim->loopCoun...>currentLoop()Description
TRUEevaluated 47 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEevaluated 67 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
|| anim->state() == Stopped
anim->state() == StoppedDescription
TRUEevaluated 67 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
))
0-225
38 return
executed 114 times by 1 test: return done;
Executed by:
  • tst_qsequentialanimationgroupjob
done;
executed 114 times by 1 test: return done;
Executed by:
  • tst_qsequentialanimationgroupjob
114
39 }
executed 225 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
225
40 return
executed 148110 times by 15 tests: return ret;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
ret;
executed 148110 times by 15 tests: return ret;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
148110
41}-
42-
43QSequentialAnimationGroupJob::AnimationIndex QSequentialAnimationGroupJob::indexForCurrentTime() const-
44{-
45 ((firstChild()) ? static_cast<void>(0) : qt_assert("firstChild()", __FILE__, 87));-
46-
47 AnimationIndex ret;-
48 QAbstractAnimationJob *anim = nullptr;-
49 int duration = 0;-
50-
51 for (anim = firstChild(); anim
animDescription
TRUEevaluated 112400 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 8900 times by 10 tests
Evaluated by:
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
; anim = anim->nextSibling()) {
8900-112400
52 duration = animationActualTotalDuration(anim);-
53-
54-
55-
56-
57-
58-
59 if (duration == -1
duration == -1Description
TRUEevaluated 152 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
FALSEevaluated 112248 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
|| m_currentTime < (ret.timeOffset + duration)
m_currentTime ...et + duration)Description
TRUEevaluated 38160 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 74088 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
152-112248
60 || (m_currentTime == (ret.timeOffset + duration)
m_currentTime ...et + duration)Description
TRUEevaluated 28069 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 46019 times by 12 tests
Evaluated by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
&& m_direction == QAbstractAnimationJob::Backward
m_direction ==...nJob::BackwardDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEevaluated 28065 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)) {
4-46019
61 ret.animation = anim;-
62 return
executed 38316 times by 15 tests: return ret;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
ret;
executed 38316 times by 15 tests: return ret;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
38316
63 }-
64-
65 if (anim == m_currentAnimation
anim == m_currentAnimationDescription
TRUEevaluated 22804 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 51280 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) {
22804-51280
66 ret.afterCurrent = true;-
67 }
executed 22804 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
22804
68-
69-
70 ret.timeOffset += duration;-
71 }
executed 74084 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
74084
72-
73-
74-
75-
76 ret.timeOffset -= duration;-
77 ret.animation = lastChild();-
78 return
executed 8900 times by 10 tests: return ret;
Executed by:
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
ret;
executed 8900 times by 10 tests: return ret;
Executed by:
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
8900
79}-
80-
81void QSequentialAnimationGroupJob::restart()-
82{-
83-
84 if (m_direction == Forward
m_direction == ForwardDescription
TRUEevaluated 12748 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEnever evaluated
) {
0-12748
85 m_previousLoop = 0;-
86 if (m_currentAnimation == firstChild()
m_currentAnima...= firstChild()Description
TRUEevaluated 12724 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 24 times by 3 tests
Evaluated by:
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
)
24-12724
87 activateCurrentAnimation();
executed 12724 times by 14 tests: activateCurrentAnimation();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
12724
88 else-
89 setCurrentAnimation(firstChild());
executed 24 times by 3 tests: setCurrentAnimation(firstChild());
Executed by:
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
24
90 }-
91 else {-
92 m_previousLoop = m_loopCount - 1;-
93 if (m_currentAnimation == lastChild()
m_currentAnima...== lastChild()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
94 activateCurrentAnimation();
never executed: activateCurrentAnimation();
0
95 else-
96 setCurrentAnimation(lastChild());
never executed: setCurrentAnimation(lastChild());
0
97 }-
98}-
99-
100void QSequentialAnimationGroupJob::advanceForwards(const AnimationIndex &newAnimationIndex)-
101{-
102 if (m_previousLoop < m_currentLoop
m_previousLoop < m_currentLoopDescription
TRUEevaluated 28 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
FALSEevaluated 22604 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) {
28-22604
103-
104 for (QAbstractAnimationJob *anim = m_currentAnimation; anim
animDescription
TRUEevaluated 38 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
FALSEevaluated 28 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
; anim = anim->nextSibling()) {
28-38
105 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; setCurrentAnimation(anim, true); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 38 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-38
106 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; anim->setCurrentTime(animationActualTotalDuration(anim)); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 38 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-38
107 }
executed 38 times by 3 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
38
108-
109 if (firstChild()
firstChild()Description
TRUEevaluated 28 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
&& !firstChild()->nextSibling()
!firstChild()->nextSibling()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEevaluated 24 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
) {
0-28
110-
111 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; activateCurrentAnimation(); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-4
112 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qsequentialanimationgroupjob
else {
4
113 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; setCurrentAnimation(firstChild(), true); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 24 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-24
114 }
executed 24 times by 3 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
24
115 }-
116-
117-
118 for (QAbstractAnimationJob *anim = m_currentAnimation; anim
animDescription
TRUEevaluated 48589 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEnever evaluated
&& anim != newAnimationIndex.animation
anim != newAni...ndex.animationDescription
TRUEevaluated 25957 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 22632 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
; anim = anim->nextSibling()) {
0-48589
119 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; setCurrentAnimation(anim, true); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 25957 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-25957
120 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; anim->setCurrentTime(animationActualTotalDuration(anim)); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 25957 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-25957
121 }
executed 25957 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
25957
122-
123}
executed 22632 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
22632
124-
125void QSequentialAnimationGroupJob::rewindForwards(const AnimationIndex &newAnimationIndex)-
126{-
127 if (m_previousLoop > m_currentLoop
m_previousLoop > m_currentLoopDescription
TRUEnever evaluated
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
) {
0-14
128-
129 for (QAbstractAnimationJob *anim = m_currentAnimation; anim
animDescription
TRUEnever evaluated
FALSEnever evaluated
; anim = anim->previousSibling()) {
0
130 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; setCurrentAnimation(anim, true); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0
131 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; anim->setCurrentTime(0); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0
132 }
never executed: end of block
0
133-
134 if (lastChild()
lastChild()Description
TRUEnever evaluated
FALSEnever evaluated
&& !lastChild()->previousSibling()
!lastChild()->...viousSibling()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
135-
136 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; activateCurrentAnimation(); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0
137 }
never executed: end of block
else {
0
138 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; setCurrentAnimation(lastChild(), true); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0
139 }
never executed: end of block
0
140 }-
141-
142-
143 for (QAbstractAnimationJob *anim = m_currentAnimation; anim
animDescription
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
&& anim != newAnimationIndex.animation
anim != newAni...ndex.animationDescription
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
; anim = anim->previousSibling()) {
0-34
144 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; setCurrentAnimation(anim, true); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-20
145 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; anim->setCurrentTime(0); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-20
146 }
executed 20 times by 2 tests: end of block
Executed by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
20
147-
148}
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
14
149-
150int QSequentialAnimationGroupJob::duration() const-
151{-
152 int ret = 0;-
153-
154 for (QAbstractAnimationJob *anim = firstChild(); anim
animDescription
TRUEevaluated 817192 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 228065 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
; anim = anim->nextSibling()) {
228065-817192
155 const int currentDuration = anim->totalDuration();-
156 if (currentDuration == -1
currentDuration == -1Description
TRUEevaluated 234 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
FALSEevaluated 816958 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
234-816958
157 return
executed 234 times by 2 tests: return -1;
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
-1;
executed 234 times by 2 tests: return -1;
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
234
158-
159 ret += currentDuration;-
160 }
executed 816958 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
816958
161-
162 return
executed 228065 times by 15 tests: return ret;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
ret;
executed 228065 times by 15 tests: return ret;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
228065
163}-
164-
165void QSequentialAnimationGroupJob::updateCurrentTime(int currentTime)-
166{-
167 if (!m_currentAnimation
!m_currentAnimationDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qanimationgroupjob
FALSEevaluated 47216 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
4-47216
168 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_qanimationgroupjob
4
169-
170 const QSequentialAnimationGroupJob::AnimationIndex newAnimationIndex = indexForCurrentTime();-
171-
172-
173 if (m_previousLoop < m_currentLoop
m_previousLoop < m_currentLoopDescription
TRUEevaluated 28 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
FALSEevaluated 47188 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
28-47188
174 || (m_previousLoop == m_currentLoop
m_previousLoop... m_currentLoopDescription
TRUEevaluated 47188 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEnever evaluated
&& m_currentAnimation != newAnimationIndex.animation
m_currentAnima...ndex.animationDescription
TRUEevaluated 22618 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 24570 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
&& newAnimationIndex.afterCurrent
newAnimationIndex.afterCurrentDescription
TRUEevaluated 22604 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
)) {
0-47188
175-
176 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; advanceForwards(newAnimationIndex); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 22632 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-22632
177-
178 }
executed 22632 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
else if (m_previousLoop > m_currentLoop
m_previousLoop > m_currentLoopDescription
TRUEnever evaluated
FALSEevaluated 24584 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
0-24584
179 || (m_previousLoop == m_currentLoop
m_previousLoop... m_currentLoopDescription
TRUEevaluated 24584 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEnever evaluated
&& m_currentAnimation != newAnimationIndex.animation
m_currentAnima...ndex.animationDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
FALSEevaluated 24570 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
&& !newAnimationIndex.afterCurrent
!newAnimationI...x.afterCurrentDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
)) {
0-24584
180-
181 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; rewindForwards(newAnimationIndex); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-14
182 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
14
183-
184 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; setCurrentAnimation(newAnimationIndex.animation); if (wasDeleted
wasDeletedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 47208 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
) *
executed 8 times by 1 test: *prevWasDeleted = true;
Executed by:
  • tst_qquickanimations
prevWasDeleted = true;
executed 8 times by 1 test: *prevWasDeleted = true;
Executed by:
  • tst_qquickanimations
return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qquickanimations
} m_wasDeleted = prevWasDeleted; };
0-47208
185-
186 const int newCurrentTime = currentTime - newAnimationIndex.timeOffset;-
187-
188 if (m_currentAnimation
m_currentAnimationDescription
TRUEevaluated 47208 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEnever evaluated
) {
0-47208
189 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; m_currentAnimation->setCurrentTime(newCurrentTime); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 47208 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-47208
190 if (atEnd()
atEnd()Description
TRUEevaluated 8896 times by 10 tests
Evaluated by:
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 38312 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) {
8896-38312
191-
192 m_currentTime += m_currentAnimation->currentTime() - newCurrentTime;-
193 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; stop(); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 8896 times by 10 tests
Evaluated by:
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-8896
194 }
executed 8896 times by 10 tests: end of block
Executed by:
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
8896
195 }
executed 47208 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
else {
47208
196-
197-
198 ((!firstChild()) ? static_cast<void>(0) : qt_assert("!firstChild()", __FILE__, 240));-
199 m_currentTime = 0;-
200 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; stop(); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0
201 }
never executed: end of block
0
202-
203 m_previousLoop = m_currentLoop;-
204}
executed 47208 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
47208
205-
206void QSequentialAnimationGroupJob::updateState(QAbstractAnimationJob::State newState,-
207 QAbstractAnimationJob::State oldState)-
208{-
209 QAnimationGroupJob::updateState(newState, oldState);-
210-
211 if (!m_currentAnimation
!m_currentAnimationDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qanimationgroupjob
FALSEevaluated 22054 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
8-22054
212 return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qanimationgroupjob
8
213-
214 switch (newState) {-
215 case
executed 9166 times by 11 tests: case Stopped:
Executed by:
  • tst_examples
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
Stopped:
executed 9166 times by 11 tests: case Stopped:
Executed by:
  • tst_examples
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
9166
216 m_currentAnimation->stop();-
217 break;
executed 9166 times by 11 tests: break;
Executed by:
  • tst_examples
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
9166
218 case
executed 82 times by 3 tests: case Paused:
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
Paused:
executed 82 times by 3 tests: case Paused:
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
82
219 if (oldState == m_currentAnimation->state()
oldState == m_...ation->state()Description
TRUEevaluated 82 times by 3 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
&& oldState == Running
oldState == RunningDescription
TRUEevaluated 82 times by 3 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
)
0-82
220 m_currentAnimation->pause();
executed 82 times by 3 tests: m_currentAnimation->pause();
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
82
221 else-
222 restart();
never executed: restart();
0
223 break;
executed 82 times by 3 tests: break;
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
82
224 case
executed 12806 times by 14 tests: case Running:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
Running:
executed 12806 times by 14 tests: case Running:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
12806
225 if (oldState == m_currentAnimation->state()
oldState == m_...ation->state()Description
TRUEevaluated 12804 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
&& oldState == Paused
oldState == PausedDescription
TRUEevaluated 58 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
FALSEevaluated 12746 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
2-12804
226 m_currentAnimation->start();
executed 58 times by 2 tests: m_currentAnimation->start();
Executed by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
58
227 else-
228 restart();
executed 12748 times by 14 tests: restart();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
12748
229 break;
executed 12806 times by 14 tests: break;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
12806
230 }-
231}
executed 22054 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
22054
232-
233void QSequentialAnimationGroupJob::updateDirection(QAbstractAnimationJob::Direction direction)-
234{-
235-
236 if (!isStopped()
!isStopped()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
&& m_currentAnimation
m_currentAnimationDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-2
237 m_currentAnimation->setDirection(direction);
never executed: m_currentAnimation->setDirection(direction);
0
238}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qsequentialanimationgroupjob
2
239-
240void QSequentialAnimationGroupJob::setCurrentAnimation(QAbstractAnimationJob *anim, bool intermediate)-
241{-
242 if (!anim
!animDescription
TRUEevaluated 32 times by 3 tests
Evaluated by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
FALSEevaluated 86095 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) {
32-86095
243 ((!firstChild()) ? static_cast<void>(0) : qt_assert("!firstChild()", __FILE__, 285));-
244 m_currentAnimation = nullptr;-
245 return;
executed 32 times by 3 tests: return;
Executed by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
32
246 }-
247-
248 if (anim == m_currentAnimation
anim == m_currentAnimationDescription
TRUEevaluated 47244 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 38851 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
38851-47244
249 return;
executed 47244 times by 15 tests: return;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
47244
250-
251-
252 if (m_currentAnimation
m_currentAnimationDescription
TRUEevaluated 26077 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 12774 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
12774-26077
253 m_currentAnimation->stop();
executed 26077 times by 15 tests: m_currentAnimation->stop();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
26077
254-
255 m_currentAnimation = anim;-
256-
257 activateCurrentAnimation(intermediate);-
258}
executed 38851 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
38851
259-
260void QSequentialAnimationGroupJob::activateCurrentAnimation(bool intermediate)-
261{-
262 if (!m_currentAnimation
!m_currentAnimationDescription
TRUEnever evaluated
FALSEevaluated 51579 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
|| isStopped()
isStopped()Description
TRUEevaluated 12852 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 38727 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
0-51579
263 return;
executed 12852 times by 15 tests: return;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
12852
264-
265 m_currentAnimation->stop();-
266-
267-
268 m_currentAnimation->setDirection(m_direction);-
269-
270-
271 if (m_currentAnimation->totalDuration() == -1
m_currentAnima...ration() == -1Description
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
FALSEevaluated 38705 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
22-38705
272 resetUncontrolledAnimationFinishTime(m_currentAnimation);
executed 22 times by 2 tests: resetUncontrolledAnimationFinishTime(m_currentAnimation);
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
22
273-
274 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; m_currentAnimation->start(); if (wasDeleted
wasDeletedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 38719 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
) *
executed 8 times by 1 test: *prevWasDeleted = true;
Executed by:
  • tst_qquickanimations
prevWasDeleted = true;
executed 8 times by 1 test: *prevWasDeleted = true;
Executed by:
  • tst_qquickanimations
return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qquickanimations
} m_wasDeleted = prevWasDeleted; };
0-38719
275 if (!intermediate
!intermediateDescription
TRUEevaluated 35356 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 3363 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
&& isPaused()
isPaused()Description
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
FALSEevaluated 35336 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
20-35356
276 m_currentAnimation->pause();
executed 20 times by 2 tests: m_currentAnimation->pause();
Executed by:
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
20
277}
executed 38719 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
38719
278-
279void QSequentialAnimationGroupJob::uncontrolledAnimationFinished(QAbstractAnimationJob *animation)-
280{-
281 (void)animation;;-
282 ((animation == m_currentAnimation) ? static_cast<void>(0) : qt_assert("animation == m_currentAnimation", __FILE__, 324));-
283-
284 setUncontrolledAnimationFinishTime(m_currentAnimation, m_currentAnimation->currentTime());-
285-
286 int totalTime = currentTime();-
287 if (m_direction == Forward
m_direction == ForwardDescription
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
) {
0-22
288-
289 if (m_currentAnimation->nextSibling()
m_currentAnima...>nextSibling()Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
)
10-12
290 setCurrentAnimation(m_currentAnimation->nextSibling());
executed 12 times by 2 tests: setCurrentAnimation(m_currentAnimation->nextSibling());
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
12
291-
292 for (QAbstractAnimationJob *a = animation->nextSibling(); a
aDescription
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
; a = a->nextSibling()) {
12-18
293 int dur = a->duration();-
294 if (dur == -1
dur == -1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
) {
4-8
295 totalTime = -1;-
296 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qsequentialanimationgroupjob
4
297 } else {-
298 totalTime += dur;-
299 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
8
300 }-
301-
302 }
executed 22 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
else {
22
303-
304 if (m_currentAnimation->previousSibling()
m_currentAnima...viousSibling()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
305 setCurrentAnimation(m_currentAnimation->previousSibling());
never executed: setCurrentAnimation(m_currentAnimation->previousSibling());
0
306-
307 for (QAbstractAnimationJob *a = animation->previousSibling(); a
aDescription
TRUEnever evaluated
FALSEnever evaluated
; a = a->previousSibling()) {
0
308 int dur = a->duration();-
309 if (dur == -1
dur == -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
310 totalTime = -1;-
311 break;
never executed: break;
0
312 } else {-
313 totalTime += dur;-
314 }
never executed: end of block
0
315 }-
316 }
never executed: end of block
0
317 if (totalTime >= 0
totalTime >= 0Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
)
4-18
318 setUncontrolledAnimationFinishTime(this, totalTime);
executed 18 times by 2 tests: setUncontrolledAnimationFinishTime(this, totalTime);
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
18
319 if (atEnd()
atEnd()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
)
8-14
320 stop();
executed 8 times by 1 test: stop();
Executed by:
  • tst_qsequentialanimationgroupjob
8
321}
executed 22 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
22
322-
323void QSequentialAnimationGroupJob::animationInserted(QAbstractAnimationJob *anim)-
324{-
325 if (m_currentAnimation == nullptr
m_currentAnimation == nullptrDescription
TRUEevaluated 12774 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 34018 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
12774-34018
326 setCurrentAnimation(firstChild());
executed 12774 times by 15 tests: setCurrentAnimation(firstChild());
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
12774
327-
328 if (m_currentAnimation == anim->nextSibling()
m_currentAnima...>nextSibling()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEevaluated 46788 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
4-46788
329 && m_currentAnimation->currentTime() == 0
m_currentAnima...entTime() == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
&& m_currentAnimation->currentLoop() == 0
m_currentAnima...entLoop() == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
) {
0-4
330-
331 setCurrentAnimation(anim);-
332 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qsequentialanimationgroupjob
4
333-
334-
335-
336-
337-
338-
339}
executed 46792 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
46792
340-
341void QSequentialAnimationGroupJob::animationRemoved(QAbstractAnimationJob *anim, QAbstractAnimationJob *prev, QAbstractAnimationJob *next)-
342{-
343 QAnimationGroupJob::animationRemoved(anim, prev, next);-
344-
345 ((m_currentAnimation) ? static_cast<void>(0) : qt_assert("m_currentAnimation", __FILE__, 387));-
346-
347 bool removingCurrent = anim == m_currentAnimation;-
348 if (removingCurrent
removingCurrentDescription
TRUEevaluated 58 times by 3 tests
Evaluated by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
) {
12-58
349 if (next
nextDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qanimationgroupjob
  • tst_qsequentialanimationgroupjob
FALSEevaluated 54 times by 3 tests
Evaluated by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
)
4-54
350 setCurrentAnimation(next);
executed 4 times by 2 tests: setCurrentAnimation(next);
Executed by:
  • tst_qanimationgroupjob
  • tst_qsequentialanimationgroupjob
4
351 else if (prev
prevDescription
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
FALSEevaluated 32 times by 3 tests
Evaluated by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
)
22-32
352 setCurrentAnimation(prev);
executed 22 times by 2 tests: setCurrentAnimation(prev);
Executed by:
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
22
353 else-
354 setCurrentAnimation(nullptr);
executed 32 times by 3 tests: setCurrentAnimation(nullptr);
Executed by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
32
355 }-
356-
357-
358 m_currentTime = 0;-
359 for (QAbstractAnimationJob *job = firstChild(); job
jobDescription
TRUEevaluated 52 times by 3 tests
Evaluated by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
FALSEevaluated 32 times by 3 tests
Evaluated by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
; job = job->nextSibling()) {
32-52
360 if (job == m_currentAnimation
job == m_currentAnimationDescription
TRUEevaluated 38 times by 3 tests
Evaluated by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
)
14-38
361 break;
executed 38 times by 3 tests: break;
Executed by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
38
362 m_currentTime += animationActualTotalDuration(job);-
363-
364 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
14
365-
366 if (!removingCurrent
!removingCurrentDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEevaluated 58 times by 3 tests
Evaluated by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
) {
12-58
367-
368-
369 m_currentTime += m_currentAnimation->currentTime();-
370 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qsequentialanimationgroupjob
12
371-
372-
373 m_totalCurrentTime = m_currentTime + m_loopCount * duration();-
374}
executed 70 times by 3 tests: end of block
Executed by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
70
375-
376void QSequentialAnimationGroupJob::debugAnimation(QDebug d) const-
377{-
378 d << "SequentialAnimationGroupJob(" << hex << (const void *) this << dec << ")" << "currentAnimation:" << (void *)m_currentAnimation;-
379-
380 debugChildren(d);-
381}
never executed: end of block
0
382-
383-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0