OpenCoverage

qsequentialanimationgroupjob.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/animations/qsequentialanimationgroupjob.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtQml module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "private/qsequentialanimationgroupjob_p.h"-
41#include "private/qpauseanimationjob_p.h"-
42#include "private/qanimationjobutil_p.h"-
43-
44QT_BEGIN_NAMESPACE-
45-
46QSequentialAnimationGroupJob::QSequentialAnimationGroupJob()-
47 : QAnimationGroupJob()-
48 , m_currentAnimation(nullptr)-
49 , m_previousLoop(0)-
50{-
51}
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
52-
53QSequentialAnimationGroupJob::~QSequentialAnimationGroupJob()-
54{-
55}-
56-
57bool QSequentialAnimationGroupJob::atEnd() const-
58{-
59 // we try to detect if we're at the end of the group-
60 //this is true if the following conditions are true:-
61 // 1. we're in the last loop-
62 // 2. the direction is forward-
63 // 3. the current animation is the last one-
64 // 4. the current animation has reached its end-
65-
66 const int animTotalCurrentTime = m_currentAnimation->currentTime();-
67 return (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
68 && 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
69 && !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
70 && 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
71}-
72-
73int QSequentialAnimationGroupJob::animationActualTotalDuration(QAbstractAnimationJob *anim) const-
74{-
75 int ret = anim->totalDuration();-
76 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
77 int done = uncontrolledAnimationFinishTime(anim);-
78 // If the animation has reached the end, use the uncontrolledFinished value.-
79 if (done >= 0 && (anim->loopCount() - 1 == anim->currentLoop() || anim->state() == Stopped))
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->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() == StoppedDescription
TRUEevaluated 67 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
0-225
80 return done;
executed 114 times by 1 test: return done;
Executed by:
  • tst_qsequentialanimationgroupjob
114
81 }
executed 225 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
225
82 return 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
83}-
84-
85QSequentialAnimationGroupJob::AnimationIndex QSequentialAnimationGroupJob::indexForCurrentTime() const-
86{-
87 Q_ASSERT(firstChild());-
88-
89 AnimationIndex ret;-
90 QAbstractAnimationJob *anim = nullptr;-
91 int duration = 0;-
92-
93 for (anim = firstChild(); anim; anim = anim->nextSibling()) {
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
8900-112400
94 duration = animationActualTotalDuration(anim);-
95-
96 // 'animation' is the current animation if one of these reasons is true:-
97 // 1. it's duration is undefined-
98 // 2. it ends after msecs-
99 // 3. it is the last animation (this can happen in case there is at least 1 uncontrolled animation)-
100 // 4. it ends exactly in msecs and the direction is backwards-
101 if (duration == -1 || m_currentTime < (ret.timeOffset + duration)
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 ...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
102 || (m_currentTime == (ret.timeOffset + duration) && m_direction == QAbstractAnimationJob::Backward)) {
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 ==...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
103 ret.animation = anim;-
104 return 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
105 }-
106-
107 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
108 ret.afterCurrent = true;-
109 }
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
110-
111 // 'animation' has a non-null defined duration and is not the one at time 'msecs'.-
112 ret.timeOffset += duration;-
113 }
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
114-
115 // this can only happen when one of those conditions is true:-
116 // 1. the duration of the group is undefined and we passed its actual duration-
117 // 2. there are only 0-duration animations in the group-
118 ret.timeOffset -= duration;-
119 ret.animation = lastChild();-
120 return 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
121}-
122-
123void QSequentialAnimationGroupJob::restart()-
124{-
125 // restarting the group by making the first/last animation the current one-
126 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
127 m_previousLoop = 0;-
128 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
129 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
130 else-
131 setCurrentAnimation(firstChild());
executed 24 times by 3 tests: setCurrentAnimation(firstChild());
Executed by:
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
24
132 }-
133 else { // direction == Backward-
134 m_previousLoop = m_loopCount - 1;-
135 if (m_currentAnimation == lastChild())
m_currentAnima...== lastChild()Description
TRUEnever evaluated
FALSEnever evaluated
0
136 activateCurrentAnimation();
never executed: activateCurrentAnimation();
0
137 else-
138 setCurrentAnimation(lastChild());
never executed: setCurrentAnimation(lastChild());
0
139 }-
140}-
141-
142void QSequentialAnimationGroupJob::advanceForwards(const AnimationIndex &newAnimationIndex)-
143{-
144 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
145 // we need to fast forward to the end-
146 for (QAbstractAnimationJob *anim = m_currentAnimation; anim; anim = anim->nextSibling()) {
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
28-38
147 RETURN_IF_DELETED(setCurrentAnimation(anim, true));
never executed: return;
never executed: *prevWasDeleted = true;
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 38 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0-38
148 RETURN_IF_DELETED(anim->setCurrentTime(animationActualTotalDuration(anim)));
never executed: return;
never executed: *prevWasDeleted = true;
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 38 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0-38
149 }
executed 38 times by 3 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
38
150 // this will make sure the current animation is reset to the beginning-
151 if (firstChild() && !firstChild()->nextSibling()) { //count == 1
firstChild()Description
TRUEevaluated 28 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
!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
152 // we need to force activation because setCurrentAnimation will have no effect-
153 RETURN_IF_DELETED(activateCurrentAnimation());
never executed: return;
never executed: *prevWasDeleted = true;
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0-4
154 } else {
executed 4 times by 1 test: end of block
Executed by:
  • tst_qsequentialanimationgroupjob
4
155 RETURN_IF_DELETED(setCurrentAnimation(firstChild(), true));
never executed: return;
never executed: *prevWasDeleted = true;
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 24 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0-24
156 }
executed 24 times by 3 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qsequentialanimationgroupjob
24
157 }-
158-
159 // and now we need to fast forward from the current position to-
160 for (QAbstractAnimationJob *anim = m_currentAnimation; anim && anim != newAnimationIndex.animation; anim = anim->nextSibling()) { //### WRONG,
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 != 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
0-48589
161 RETURN_IF_DELETED(setCurrentAnimation(anim, true));
never executed: return;
never executed: *prevWasDeleted = true;
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
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0-25957
162 RETURN_IF_DELETED(anim->setCurrentTime(animationActualTotalDuration(anim)));
never executed: return;
never executed: *prevWasDeleted = true;
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
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0-25957
163 }
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
164 // setting the new current animation will happen later-
165}
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
166-
167void QSequentialAnimationGroupJob::rewindForwards(const AnimationIndex &newAnimationIndex)-
168{-
169 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
170 // we need to fast rewind to the beginning-
171 for (QAbstractAnimationJob *anim = m_currentAnimation; anim; anim = anim->previousSibling()) {
animDescription
TRUEnever evaluated
FALSEnever evaluated
0
172 RETURN_IF_DELETED(setCurrentAnimation(anim, true));
never executed: return;
never executed: *prevWasDeleted = true;
wasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0
173 RETURN_IF_DELETED(anim->setCurrentTime(0));
never executed: return;
never executed: *prevWasDeleted = true;
wasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0
174 }
never executed: end of block
0
175 // this will make sure the current animation is reset to the end-
176 if (lastChild() && !lastChild()->previousSibling()) { //count == 1
lastChild()Description
TRUEnever evaluated
FALSEnever evaluated
!lastChild()->...viousSibling()Description
TRUEnever evaluated
FALSEnever evaluated
0
177 // we need to force activation because setCurrentAnimation will have no effect-
178 RETURN_IF_DELETED(activateCurrentAnimation());
never executed: return;
never executed: *prevWasDeleted = true;
wasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0
179 } else {
never executed: end of block
0
180 RETURN_IF_DELETED(setCurrentAnimation(lastChild(), true));
never executed: return;
never executed: *prevWasDeleted = true;
wasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0
181 }
never executed: end of block
0
182 }-
183-
184 // and now we need to fast rewind from the current position to-
185 for (QAbstractAnimationJob *anim = m_currentAnimation; anim && anim != newAnimationIndex.animation; anim = anim->previousSibling()) {
animDescription
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
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
0-34
186 RETURN_IF_DELETED(setCurrentAnimation(anim, true));
never executed: return;
never executed: *prevWasDeleted = true;
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0-20
187 RETURN_IF_DELETED(anim->setCurrentTime(0));
never executed: return;
never executed: *prevWasDeleted = true;
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0-20
188 }
executed 20 times by 2 tests: end of block
Executed by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
20
189 // setting the new current animation will happen later-
190}
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
14
191-
192int QSequentialAnimationGroupJob::duration() const-
193{-
194 int ret = 0;-
195-
196 for (QAbstractAnimationJob *anim = firstChild(); anim; anim = anim->nextSibling()) {
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
228065-817192
197 const int currentDuration = anim->totalDuration();-
198 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
199 return -1; // Undetermined length
executed 234 times by 2 tests: return -1;
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
234
200-
201 ret += currentDuration;-
202 }
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
203-
204 return 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
205}-
206-
207void QSequentialAnimationGroupJob::updateCurrentTime(int currentTime)-
208{-
209 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
210 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_qanimationgroupjob
4
211-
212 const QSequentialAnimationGroupJob::AnimationIndex newAnimationIndex = indexForCurrentTime();-
213-
214 // newAnimationIndex.index is the new current animation-
215 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
216 || (m_previousLoop == m_currentLoop && m_currentAnimation != newAnimationIndex.animation && newAnimationIndex.afterCurrent)) {
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_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.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
217 // advancing with forward direction is the same as rewinding with backwards direction-
218 RETURN_IF_DELETED(advanceForwards(newAnimationIndex));
never executed: return;
never executed: *prevWasDeleted = true;
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
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0-22632
219-
220 } else if (m_previousLoop > m_currentLoop
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
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
221 || (m_previousLoop == m_currentLoop && m_currentAnimation != newAnimationIndex.animation && !newAnimationIndex.afterCurrent)) {
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_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
!newAnimationI...x.afterCurrentDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
0-24584
222 // rewinding with forward direction is the same as advancing with backwards direction-
223 RETURN_IF_DELETED(rewindForwards(newAnimationIndex));
never executed: return;
never executed: *prevWasDeleted = true;
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0-14
224 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
14
225-
226 RETURN_IF_DELETED(setCurrentAnimation(newAnimationIndex.animation));
executed 8 times by 1 test: return;
Executed by:
  • tst_qquickanimations
executed 8 times by 1 test: *prevWasDeleted = true;
Executed by:
  • tst_qquickanimations
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
prevWasDeletedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
0-47208
227-
228 const int newCurrentTime = currentTime - newAnimationIndex.timeOffset;-
229-
230 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
231 RETURN_IF_DELETED(m_currentAnimation->setCurrentTime(newCurrentTime));
never executed: return;
never executed: *prevWasDeleted = true;
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
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0-47208
232 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
233 //we make sure that we don't exceed the duration here-
234 m_currentTime += m_currentAnimation->currentTime() - newCurrentTime;-
235 RETURN_IF_DELETED(stop());
never executed: return;
never executed: *prevWasDeleted = true;
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
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0-8896
236 }
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
237 } else {
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
238 //the only case where currentAnimation could be null-
239 //is when all animations have been removed-
240 Q_ASSERT(!firstChild());-
241 m_currentTime = 0;-
242 RETURN_IF_DELETED(stop());
never executed: return;
never executed: *prevWasDeleted = true;
wasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
0
243 }
never executed: end of block
0
244-
245 m_previousLoop = m_currentLoop;-
246}
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
247-
248void QSequentialAnimationGroupJob::updateState(QAbstractAnimationJob::State newState,-
249 QAbstractAnimationJob::State oldState)-
250{-
251 QAnimationGroupJob::updateState(newState, oldState);-
252-
253 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
254 return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qanimationgroupjob
8
255-
256 switch (newState) {-
257 case 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
258 m_currentAnimation->stop();-
259 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
260 case Paused:
executed 82 times by 3 tests: case Paused:
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
82
261 if (oldState == m_currentAnimation->state() && oldState == Running)
oldState == m_...ation->state()Description
TRUEevaluated 82 times by 3 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
oldState == RunningDescription
TRUEevaluated 82 times by 3 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
0-82
262 m_currentAnimation->pause();
executed 82 times by 3 tests: m_currentAnimation->pause();
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
82
263 else-
264 restart();
never executed: restart();
0
265 break;
executed 82 times by 3 tests: break;
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
82
266 case 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
267 if (oldState == m_currentAnimation->state() && oldState == Paused)
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 == 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
268 m_currentAnimation->start();
executed 58 times by 2 tests: m_currentAnimation->start();
Executed by:
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
58
269 else-
270 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
271 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
272 }-
273}
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
274-
275void QSequentialAnimationGroupJob::updateDirection(QAbstractAnimationJob::Direction direction)-
276{-
277 // we need to update the direction of the current animation-
278 if (!isStopped() && m_currentAnimation)
!isStopped()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
m_currentAnimationDescription
TRUEnever evaluated
FALSEnever evaluated
0-2
279 m_currentAnimation->setDirection(direction);
never executed: m_currentAnimation->setDirection(direction);
0
280}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qsequentialanimationgroupjob
2
281-
282void QSequentialAnimationGroupJob::setCurrentAnimation(QAbstractAnimationJob *anim, bool intermediate)-
283{-
284 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
285 Q_ASSERT(!firstChild());-
286 m_currentAnimation = nullptr;-
287 return;
executed 32 times by 3 tests: return;
Executed by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
32
288 }-
289-
290 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
291 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
292-
293 // stop the old current animation-
294 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
295 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
296-
297 m_currentAnimation = anim;-
298-
299 activateCurrentAnimation(intermediate);-
300}
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
301-
302void QSequentialAnimationGroupJob::activateCurrentAnimation(bool intermediate)-
303{-
304 if (!m_currentAnimation || isStopped())
!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()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
305 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
306-
307 m_currentAnimation->stop();-
308-
309 // we ensure the direction is consistent with the group's direction-
310 m_currentAnimation->setDirection(m_direction);-
311-
312 // reset the finish time of the animation if it is uncontrolled-
313 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
314 resetUncontrolledAnimationFinishTime(m_currentAnimation);
executed 22 times by 2 tests: resetUncontrolledAnimationFinishTime(m_currentAnimation);
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
22
315-
316 RETURN_IF_DELETED(m_currentAnimation->start());
executed 8 times by 1 test: return;
Executed by:
  • tst_qquickanimations
executed 8 times by 1 test: *prevWasDeleted = true;
Executed by:
  • tst_qquickanimations
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
prevWasDeletedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
0-38719
317 if (!intermediate && isPaused())
!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()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
318 m_currentAnimation->pause();
executed 20 times by 2 tests: m_currentAnimation->pause();
Executed by:
  • tst_qquickanimations
  • tst_qsequentialanimationgroupjob
20
319}
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
320-
321void QSequentialAnimationGroupJob::uncontrolledAnimationFinished(QAbstractAnimationJob *animation)-
322{-
323 Q_UNUSED(animation);-
324 Q_ASSERT(animation == m_currentAnimation);-
325-
326 setUncontrolledAnimationFinishTime(m_currentAnimation, m_currentAnimation->currentTime());-
327-
328 int totalTime = currentTime();-
329 if (m_direction == Forward) {
m_direction == ForwardDescription
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
0-22
330 // set the current animation to be the next one-
331 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
332 setCurrentAnimation(m_currentAnimation->nextSibling());
executed 12 times by 2 tests: setCurrentAnimation(m_currentAnimation->nextSibling());
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
12
333-
334 for (QAbstractAnimationJob *a = animation->nextSibling(); a; a = a->nextSibling()) {
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
12-18
335 int dur = a->duration();-
336 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
337 totalTime = -1;-
338 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qsequentialanimationgroupjob
4
339 } else {-
340 totalTime += dur;-
341 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
8
342 }-
343-
344 } else {
executed 22 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
22
345 // set the current animation to be the previous one-
346 if (m_currentAnimation->previousSibling())
m_currentAnima...viousSibling()Description
TRUEnever evaluated
FALSEnever evaluated
0
347 setCurrentAnimation(m_currentAnimation->previousSibling());
never executed: setCurrentAnimation(m_currentAnimation->previousSibling());
0
348-
349 for (QAbstractAnimationJob *a = animation->previousSibling(); a; a = a->previousSibling()) {
aDescription
TRUEnever evaluated
FALSEnever evaluated
0
350 int dur = a->duration();-
351 if (dur == -1) {
dur == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
352 totalTime = -1;-
353 break;
never executed: break;
0
354 } else {-
355 totalTime += dur;-
356 }
never executed: end of block
0
357 }-
358 }
never executed: end of block
0
359 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
360 setUncontrolledAnimationFinishTime(this, totalTime);
executed 18 times by 2 tests: setUncontrolledAnimationFinishTime(this, totalTime);
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
18
361 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
362 stop();
executed 8 times by 1 test: stop();
Executed by:
  • tst_qsequentialanimationgroupjob
8
363}
executed 22 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qsequentialanimationgroupjob
22
364-
365void QSequentialAnimationGroupJob::animationInserted(QAbstractAnimationJob *anim)-
366{-
367 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
368 setCurrentAnimation(firstChild()); // initialize the current animation
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
369-
370 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
371 && m_currentAnimation->currentTime() == 0 && m_currentAnimation->currentLoop() == 0) {
m_currentAnima...entTime() == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
m_currentAnima...entLoop() == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qsequentialanimationgroupjob
FALSEnever evaluated
0-4
372 //in this case we simply insert the animation before the current one has actually started-
373 setCurrentAnimation(anim);-
374 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qsequentialanimationgroupjob
4
375-
376// TODO-
377// if (index < m_currentAnimationIndex || m_currentLoop != 0) {-
378// qWarning("QSequentialGroup::insertAnimation only supports to add animations after the current one.");-
379// return; //we're not affected because it is added after the current one-
380// }-
381}
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
382-
383void QSequentialAnimationGroupJob::animationRemoved(QAbstractAnimationJob *anim, QAbstractAnimationJob *prev, QAbstractAnimationJob *next)-
384{-
385 QAnimationGroupJob::animationRemoved(anim, prev, next);-
386-
387 Q_ASSERT(m_currentAnimation); // currentAnimation should always be set-
388-
389 bool removingCurrent = anim == m_currentAnimation;-
390 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
391 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
392 setCurrentAnimation(next); //let's try to take the next one
executed 4 times by 2 tests: setCurrentAnimation(next);
Executed by:
  • tst_qanimationgroupjob
  • tst_qsequentialanimationgroupjob
4
393 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
394 setCurrentAnimation(prev);
executed 22 times by 2 tests: setCurrentAnimation(prev);
Executed by:
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
22
395 else// case all animations were removed-
396 setCurrentAnimation(nullptr);
executed 32 times by 3 tests: setCurrentAnimation(nullptr);
Executed by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
32
397 }-
398-
399 // duration of the previous animations up to the current animation-
400 m_currentTime = 0;-
401 for (QAbstractAnimationJob *job = firstChild(); job; job = job->nextSibling()) {
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
32-52
402 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
403 break;
executed 38 times by 3 tests: break;
Executed by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
38
404 m_currentTime += animationActualTotalDuration(job);-
405-
406 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
14
407-
408 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
409 //the current animation is not the one being removed-
410 //so we add its current time to the current time of this group-
411 m_currentTime += m_currentAnimation->currentTime();-
412 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qsequentialanimationgroupjob
12
413-
414 //let's also update the total current time-
415 m_totalCurrentTime = m_currentTime + m_loopCount * duration();-
416}
executed 70 times by 3 tests: end of block
Executed by:
  • tst_qanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qsequentialanimationgroupjob
70
417-
418void QSequentialAnimationGroupJob::debugAnimation(QDebug d) const-
419{-
420 d << "SequentialAnimationGroupJob(" << hex << (const void *) this << dec << ")" << "currentAnimation:" << (void *)m_currentAnimation;-
421-
422 debugChildren(d);-
423}
never executed: end of block
0
424-
425QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0