Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | #include "private/qparallelanimationgroupjob_p.h" | - |
41 | #include "private/qanimationjobutil_p.h" | - |
42 | | - |
43 | QT_BEGIN_NAMESPACE | - |
44 | | - |
45 | QParallelAnimationGroupJob::QParallelAnimationGroupJob() | - |
46 | : QAnimationGroupJob() | - |
47 | , m_previousLoop(0) | - |
48 | , m_previousCurrentTime(0) | - |
49 | { | - |
50 | }executed 20972 times by 13 tests: end of block Executed by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 20972 |
51 | | - |
52 | QParallelAnimationGroupJob::~QParallelAnimationGroupJob() | - |
53 | { | - |
54 | } | - |
55 | | - |
56 | int QParallelAnimationGroupJob::duration() const | - |
57 | { | - |
58 | int ret = 0; | - |
59 | | - |
60 | for (QAbstractAnimationJob *animation = firstChild(); animation; animation = animation->nextSibling()) {TRUE | evaluated 733753 times by 13 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| FALSE | evaluated 401890 times by 12 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
|
| 401890-733753 |
61 | int currentDuration = animation->totalDuration(); | - |
62 | if (currentDuration == -1)TRUE | evaluated 310 times by 5 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | evaluated 733443 times by 12 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
|
| 310-733443 |
63 | return -1; executed 310 times by 5 tests: return -1; Executed by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| 310 |
64 | ret = qMax(ret, currentDuration); | - |
65 | }executed 733443 times by 12 tests: end of block Executed by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 733443 |
66 | | - |
67 | return ret;executed 401890 times by 12 tests: return ret; Executed by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 401890 |
68 | } | - |
69 | | - |
70 | void QParallelAnimationGroupJob::updateCurrentTime(int ) | - |
71 | { | - |
72 | if (!firstChild())TRUE | never evaluated | FALSE | evaluated 78694 times by 13 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
|
| 0-78694 |
73 | return; never executed: return; | 0 |
74 | | - |
75 | if (m_currentLoop > m_previousLoop) {TRUE | evaluated 98 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| FALSE | evaluated 78596 times by 13 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
|
| 98-78596 |
76 | | - |
77 | int dura = duration(); | - |
78 | if (dura < 0) {TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 96 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
|
| 2-96 |
79 | | - |
80 | | - |
81 | | - |
82 | for (QAbstractAnimationJob *animation = firstChild(); animation; animation = animation->nextSibling()) {TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
|
| 2-6 |
83 | int currentDuration = animation->totalDuration(); | - |
84 | if (currentDuration >= 0)TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 4 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
|
| 2-4 |
85 | dura = qMax(dura, currentDuration);executed 2 times by 1 test: dura = qMax(dura, currentDuration); Executed by:- tst_qparallelanimationgroupjob
| 2 |
86 | }executed 6 times by 1 test: end of block Executed by:- tst_qparallelanimationgroupjob
| 6 |
87 | }executed 2 times by 1 test: end of block Executed by:- tst_qparallelanimationgroupjob
| 2 |
88 | if (dura > 0) {TRUE | evaluated 98 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| FALSE | never evaluated |
| 0-98 |
89 | for (QAbstractAnimationJob *animation = firstChild(); animation; animation = animation->nextSibling()) {TRUE | evaluated 296 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| FALSE | evaluated 98 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
|
| 98-296 |
90 | if (!animation->isStopped())TRUE | evaluated 112 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| FALSE | evaluated 184 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
|
| 112-184 |
91 | RETURN_IF_DELETED(animation->setCurrentTime(dura)); never executed: return; never executed: *prevWasDeleted = true; executed 112 times by 2 tests: end of block Executed by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
TRUE | never evaluated | FALSE | evaluated 112 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-112 |
92 | }executed 296 times by 2 tests: end of block Executed by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| 296 |
93 | }executed 98 times by 2 tests: end of block Executed by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| 98 |
94 | } else if (m_currentLoop < m_previousLoop) {executed 98 times by 2 tests: end of block Executed by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
TRUE | evaluated 44 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 78552 times by 13 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
|
| 44-78552 |
95 | | - |
96 | for (QAbstractAnimationJob *animation = firstChild(); animation; animation = animation->nextSibling()) {TRUE | evaluated 132 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 44 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
|
| 44-132 |
97 | | - |
98 | | - |
99 | applyGroupState(animation); | - |
100 | RETURN_IF_DELETED(animation->setCurrentTime(0)); never executed: return; never executed: *prevWasDeleted = true; TRUE | never evaluated | FALSE | evaluated 132 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-132 |
101 | animation->stop(); | - |
102 | }executed 132 times by 1 test: end of block Executed by:- tst_qparallelanimationgroupjob
| 132 |
103 | }executed 44 times by 1 test: end of block Executed by:- tst_qparallelanimationgroupjob
| 44 |
104 | | - |
105 | | - |
106 | for (QAbstractAnimationJob *animation = firstChild(); animation; animation = animation->nextSibling()) {TRUE | evaluated 114003 times by 13 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| FALSE | evaluated 78686 times by 13 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
|
| 78686-114003 |
107 | const int dura = animation->totalDuration(); | - |
108 | | - |
109 | if (m_currentLoop > m_previousLoopTRUE | evaluated 296 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| FALSE | evaluated 113707 times by 13 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
|
| 296-113707 |
110 | | - |
111 | | - |
112 | || shouldAnimationStart(animation, m_previousCurrentTime > dura )) {TRUE | evaluated 84633 times by 13 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| FALSE | evaluated 29074 times by 9 testsEvaluated by:- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_scenegraph
|
| 29074-84633 |
113 | applyGroupState(animation); | - |
114 | }executed 84929 times by 13 tests: end of block Executed by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 84929 |
115 | | - |
116 | if (animation->state() == state()) {TRUE | evaluated 113615 times by 13 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| FALSE | evaluated 388 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
|
| 388-113615 |
117 | RETURN_IF_DELETED(animation->setCurrentTime(m_currentTime));executed 8 times by 1 test: return; executed 8 times by 1 test: *prevWasDeleted = true; TRUE | evaluated 8 times by 1 test | FALSE | evaluated 113607 times by 13 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
|
TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
| 0-113607 |
118 | if (dura > 0 && m_currentTime > dura)TRUE | evaluated 113101 times by 12 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| FALSE | evaluated 506 times by 5 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
|
TRUE | evaluated 72 times by 3 testsEvaluated by:- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| FALSE | evaluated 113029 times by 12 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
|
| 72-113101 |
119 | animation->stop();executed 72 times by 3 tests: animation->stop(); Executed by:- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| 72 |
120 | }executed 113607 times by 13 tests: end of block Executed by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 113607 |
121 | }executed 113995 times by 13 tests: end of block Executed by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 113995 |
122 | m_previousLoop = m_currentLoop; | - |
123 | m_previousCurrentTime = m_currentTime; | - |
124 | }executed 78686 times by 13 tests: end of block Executed by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 78686 |
125 | | - |
126 | void QParallelAnimationGroupJob::updateState(QAbstractAnimationJob::State newState, | - |
127 | QAbstractAnimationJob::State oldState) | - |
128 | { | - |
129 | QAnimationGroupJob::updateState(newState, oldState); | - |
130 | | - |
131 | switch (newState) { | - |
132 | case Stopped:executed 19338 times by 10 tests: case Stopped: Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_scenegraph
| 19338 |
133 | for (QAbstractAnimationJob *animation = firstChild(); animation; animation = animation->nextSibling())TRUE | evaluated 29400 times by 10 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_scenegraph
| FALSE | evaluated 19338 times by 10 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_scenegraph
|
| 19338-29400 |
134 | animation->stop();executed 29400 times by 10 tests: animation->stop(); Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_scenegraph
| 29400 |
135 | break;executed 19338 times by 10 tests: break; Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_scenegraph
| 19338 |
136 | case Paused:executed 48 times by 3 tests: case Paused: Executed by:- tst_qparallelanimationgroupjob
- tst_qquickanimationcontroller
- tst_qsequentialanimationgroupjob
| 48 |
137 | for (QAbstractAnimationJob *animation = firstChild(); animation; animation = animation->nextSibling())TRUE | evaluated 212 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimationcontroller
- tst_qsequentialanimationgroupjob
| FALSE | evaluated 48 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimationcontroller
- tst_qsequentialanimationgroupjob
|
| 48-212 |
138 | if (animation->isRunning())TRUE | evaluated 210 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimationcontroller
- tst_qsequentialanimationgroupjob
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
|
| 2-210 |
139 | animation->pause();executed 210 times by 3 tests: animation->pause(); Executed by:- tst_qparallelanimationgroupjob
- tst_qquickanimationcontroller
- tst_qsequentialanimationgroupjob
| 210 |
140 | break;executed 48 times by 3 tests: break; Executed by:- tst_qparallelanimationgroupjob
- tst_qquickanimationcontroller
- tst_qsequentialanimationgroupjob
| 48 |
141 | case Running:executed 20959 times by 12 tests: case Running: Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 20959 |
142 | for (QAbstractAnimationJob *animation = firstChild(); animation; animation = animation->nextSibling()) {TRUE | evaluated 31532 times by 12 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| FALSE | evaluated 20959 times by 12 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
|
| 20959-31532 |
143 | if (oldState == Stopped) {TRUE | evaluated 31324 times by 12 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| FALSE | evaluated 208 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimationcontroller
- tst_qsequentialanimationgroupjob
|
| 208-31324 |
144 | animation->stop(); | - |
145 | m_previousLoop = m_direction == Forward ? 0 : m_loopCount - 1;TRUE | evaluated 31206 times by 12 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| FALSE | evaluated 118 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
|
| 118-31206 |
146 | }executed 31324 times by 12 tests: end of block Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 31324 |
147 | resetUncontrolledAnimationFinishTime(animation); | - |
148 | animation->setDirection(m_direction); | - |
149 | if (shouldAnimationStart(animation, oldState == Stopped))TRUE | evaluated 31424 times by 12 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| FALSE | evaluated 108 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
|
| 108-31424 |
150 | animation->start();executed 31424 times by 12 tests: animation->start(); Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 31424 |
151 | }executed 31532 times by 12 tests: end of block Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 31532 |
152 | break;executed 20959 times by 12 tests: break; Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 20959 |
153 | } | - |
154 | }executed 40345 times by 12 tests: end of block Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 40345 |
155 | | - |
156 | bool QParallelAnimationGroupJob::shouldAnimationStart(QAbstractAnimationJob *animation, bool startIfAtEnd) const | - |
157 | { | - |
158 | const int dura = animation->totalDuration(); | - |
159 | | - |
160 | if (dura == -1)TRUE | evaluated 354 times by 5 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | evaluated 144885 times by 12 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
|
| 354-144885 |
161 | return uncontrolledAnimationFinishTime(animation) == -1;executed 354 times by 5 tests: return uncontrolledAnimationFinishTime(animation) == -1; Executed by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| 354 |
162 | | - |
163 | if (startIfAtEnd)TRUE | evaluated 31638 times by 11 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| FALSE | evaluated 113247 times by 12 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
|
| 31638-113247 |
164 | return m_currentTime <= dura;executed 31638 times by 11 tests: return m_currentTime <= dura; Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 31638 |
165 | if (m_direction == Forward)TRUE | evaluated 113087 times by 12 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| FALSE | evaluated 160 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
|
| 160-113087 |
166 | return m_currentTime < dura;executed 113087 times by 12 tests: return m_currentTime < dura; Executed by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 113087 |
167 | else | - |
168 | return m_currentTime && m_currentTime <= dura;executed 160 times by 2 tests: return m_currentTime && m_currentTime <= dura; Executed by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
| 160 |
169 | } | - |
170 | | - |
171 | void QParallelAnimationGroupJob::applyGroupState(QAbstractAnimationJob *animation) | - |
172 | { | - |
173 | switch (m_state) | - |
174 | { | - |
175 | case Running:executed 84787 times by 12 tests: case Running: Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 84787 |
176 | animation->start(); | - |
177 | break;executed 84787 times by 12 tests: break; Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| 84787 |
178 | case Paused: never executed: case Paused: | 0 |
179 | animation->pause(); | - |
180 | break; never executed: break; | 0 |
181 | case Stopped:executed 274 times by 2 tests: case Stopped: Executed by:- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
| 274 |
182 | default: never executed: default: | 0 |
183 | break;executed 274 times by 2 tests: break; Executed by:- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
| 274 |
184 | } | - |
185 | } | - |
186 | | - |
187 | void QParallelAnimationGroupJob::updateDirection(QAbstractAnimationJob::Direction direction) | - |
188 | { | - |
189 | | - |
190 | if (!isStopped()) {TRUE | never evaluated | FALSE | evaluated 40 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
|
| 0-40 |
191 | for (QAbstractAnimationJob *animation = firstChild(); animation; animation = animation->nextSibling()) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
192 | animation->setDirection(direction); | - |
193 | } never executed: end of block | 0 |
194 | } else { never executed: end of block | 0 |
195 | if (direction == Forward) {TRUE | never evaluated | FALSE | evaluated 40 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
|
| 0-40 |
196 | m_previousLoop = 0; | - |
197 | m_previousCurrentTime = 0; | - |
198 | } else { never executed: end of block | 0 |
199 | | - |
200 | m_previousLoop = (m_loopCount == -1 ? 0 : m_loopCount - 1);TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 34 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
|
| 6-34 |
201 | m_previousCurrentTime = duration(); | - |
202 | }executed 40 times by 2 tests: end of block Executed by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
| 40 |
203 | } | - |
204 | } | - |
205 | | - |
206 | void QParallelAnimationGroupJob::uncontrolledAnimationFinished(QAbstractAnimationJob *animation) | - |
207 | { | - |
208 | Q_ASSERT(animation && (animation->duration() == -1 || animation->loopCount() < 0)); | - |
209 | int uncontrolledRunningCount = 0; | - |
210 | | - |
211 | for (QAbstractAnimationJob *child = firstChild(); child; child = child->nextSibling()) {TRUE | evaluated 46 times by 4 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | evaluated 20 times by 4 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
|
| 20-46 |
212 | if (child == animation) {TRUE | evaluated 20 times by 4 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
|
| 20-26 |
213 | setUncontrolledAnimationFinishTime(animation, animation->currentTime()); | - |
214 | } else if (child->duration() == -1 || child->loopCount() < 0) {executed 20 times by 4 tests: end of block Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
|
TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
|
| 6-20 |
215 | if (uncontrolledAnimationFinishTime(child) == -1)TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
|
| 6 |
216 | ++uncontrolledRunningCount;executed 6 times by 1 test: ++uncontrolledRunningCount; Executed by:- tst_qparallelanimationgroupjob
| 6 |
217 | }executed 12 times by 1 test: end of block Executed by:- tst_qparallelanimationgroupjob
| 12 |
218 | }executed 46 times by 4 tests: end of block Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| 46 |
219 | | - |
220 | if (uncontrolledRunningCount > 0)TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 14 times by 4 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
|
| 6-14 |
221 | return;executed 6 times by 1 test: return; Executed by:- tst_qparallelanimationgroupjob
| 6 |
222 | | - |
223 | int maxDuration = 0; | - |
224 | bool running = false; | - |
225 | for (QAbstractAnimationJob *job = firstChild(); job; job = job->nextSibling()) {TRUE | evaluated 28 times by 4 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | evaluated 14 times by 4 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
|
| 14-28 |
226 | if (job->state() == Running)TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
| FALSE | evaluated 22 times by 4 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
|
| 6-22 |
227 | running = true;executed 6 times by 2 tests: running = true; Executed by:- tst_examples
- tst_qparallelanimationgroupjob
| 6 |
228 | maxDuration = qMax(maxDuration, job->totalDuration()); | - |
229 | }executed 28 times by 4 tests: end of block Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| 28 |
230 | | - |
231 | setUncontrolledAnimationFinishTime(this, qMax(maxDuration + m_currentLoopStartTime, currentTime())); | - |
232 | | - |
233 | if (!runningTRUE | evaluated 8 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
|
| 6-8 |
234 | && ((m_direction == Forward && m_currentLoop == m_loopCount -1)TRUE | evaluated 8 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | never evaluated |
TRUE | evaluated 8 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | never evaluated |
| 0-8 |
235 | || (m_direction == Backward && m_currentLoop == 0))) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
236 | stop(); | - |
237 | }executed 8 times by 3 tests: end of block Executed by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| 8 |
238 | }executed 14 times by 4 tests: end of block Executed by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| 14 |
239 | | - |
240 | void QParallelAnimationGroupJob::debugAnimation(QDebug d) const | - |
241 | { | - |
242 | d << "ParallelAnimationGroupJob(" << hex << (const void *) this << dec << ")"; | - |
243 | | - |
244 | debugChildren(d); | - |
245 | } never executed: end of block | 0 |
246 | | - |
247 | QT_END_NAMESPACE | - |
248 | | - |
| | |