OpenCoverage

qqmltimer.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/types/qqmltimer.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6namespace {-
7 const QEvent::Type QEvent_MaybeTick = QEvent::Type(QEvent::User + 1);-
8 const QEvent::Type QEvent_Triggered = QEvent::Type(QEvent::User + 2);-
9}-
10-
11class QQmlTimerPrivate : public QObjectPrivate, public QAnimationJobChangeListener-
12{-
13 inline QQmlTimer* q_func() { return static_cast<QQmlTimer *>(q_ptr); } inline const QQmlTimer* q_func() const { return static_cast<const QQmlTimer *>(q_ptr); } friend class QQmlTimer;-
14public:-
15 QQmlTimerPrivate()-
16 : running(false), repeating(false), triggeredOnStart(false)-
17 , classBegun(false), componentComplete(false), firstTick(true), awaitingTick(false) {}
executed 186 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qtqmlmodules
  • tst_scenegraph
186
18-
19 void animationFinished(QAbstractAnimationJob *) override;-
20 void animationCurrentLoopChanged(QAbstractAnimationJob *) override { maybeTick(); }
executed 44 times by 2 tests: end of block
Executed by:
  • tst_qqmltimer
  • tst_qquickrepeater
44
21-
22 void maybeTick() {-
23 QQmlTimer * const q = q_func();-
24 if (!awaitingTick
!awaitingTickDescription
TRUEevaluated 74 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
  • tst_qquickrepeater
FALSEnever evaluated
) {
0-74
25 awaitingTick = true;-
26 QCoreApplication::postEvent(q, new QEvent(QEvent_MaybeTick));-
27 }
executed 74 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
  • tst_qquickrepeater
74
28 }
executed 74 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
  • tst_qquickrepeater
74
29-
30 int interval = 1000;-
31 QPauseAnimationJob pause;-
32 bool running : 1;-
33 bool repeating : 1;-
34 bool triggeredOnStart : 1;-
35 bool classBegun : 1;-
36 bool componentComplete : 1;-
37 bool firstTick : 1;-
38 bool awaitingTick : 1;-
39};-
40QQmlTimer::QQmlTimer(QObject *parent)-
41 : QObject(*(new QQmlTimerPrivate), parent)-
42{-
43 QQmlTimerPrivate * const d = d_func();-
44 d->pause.addAnimationChangeListener(d, QAbstractAnimationJob::Completion | QAbstractAnimationJob::CurrentLoop);-
45 d->pause.setLoopCount(1);-
46 d->pause.setDuration(d->interval);-
47}
executed 186 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qtqmlmodules
  • tst_scenegraph
186
48void QQmlTimer::setInterval(int interval)-
49{-
50 QQmlTimerPrivate * const d = d_func();-
51 if (interval != d->interval
interval != d->intervalDescription
TRUEevaluated 152 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 34 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmltimer
  • tst_scenegraph
) {
34-152
52 d->interval = interval;-
53 update();-
54 intervalChanged();-
55 }
executed 152 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
152
56}
executed 186 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_scenegraph
186
57-
58int QQmlTimer::interval() const-
59{-
60 const QQmlTimerPrivate * const d = d_func();-
61 return
executed 4 times by 1 test: return d->interval;
Executed by:
  • tst_qqmltimer
d->interval;
executed 4 times by 1 test: return d->interval;
Executed by:
  • tst_qqmltimer
4
62}-
63bool QQmlTimer::isRunning() const-
64{-
65 const QQmlTimerPrivate * const d = d_func();-
66 return
executed 40 times by 1 test: return d->running;
Executed by:
  • tst_qqmltimer
d->running;
executed 40 times by 1 test: return d->running;
Executed by:
  • tst_qqmltimer
40
67}-
68-
69void QQmlTimer::setRunning(bool running)-
70{-
71 QQmlTimerPrivate * const d = d_func();-
72 if (d->running != running
d->running != runningDescription
TRUEevaluated 160 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 46 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmltimer
  • tst_scenegraph
) {
46-160
73 d->running = running;-
74 d->firstTick = true;-
75 runningChanged();-
76 update();-
77 }
executed 160 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
160
78}
executed 206 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_scenegraph
206
79bool QQmlTimer::isRepeating() const-
80{-
81 const QQmlTimerPrivate * const d = d_func();-
82 return
executed 4 times by 1 test: return d->repeating;
Executed by:
  • tst_qqmltimer
d->repeating;
executed 4 times by 1 test: return d->repeating;
Executed by:
  • tst_qqmltimer
4
83}-
84-
85void QQmlTimer::setRepeating(bool repeating)-
86{-
87 QQmlTimerPrivate * const d = d_func();-
88 if (repeating != d->repeating
repeating != d->repeatingDescription
TRUEevaluated 62 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlnativeconnector
  • tst_qqmltimer
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 66 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquickrepeater
  • tst_scenegraph
) {
62-66
89 d->repeating = repeating;-
90 update();-
91 repeatChanged();-
92 }
executed 62 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlnativeconnector
  • tst_qqmltimer
  • tst_qquickpathview
  • tst_qquickrepeater
62
93}
executed 128 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlnativeconnector
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_scenegraph
128
94bool QQmlTimer::triggeredOnStart() const-
95{-
96 const QQmlTimerPrivate * const d = d_func();-
97 return
executed 4 times by 1 test: return d->triggeredOnStart;
Executed by:
  • tst_qqmltimer
d->triggeredOnStart;
executed 4 times by 1 test: return d->triggeredOnStart;
Executed by:
  • tst_qqmltimer
4
98}-
99-
100void QQmlTimer::setTriggeredOnStart(bool triggeredOnStart)-
101{-
102 QQmlTimerPrivate * const d = d_func();-
103 if (d->triggeredOnStart != triggeredOnStart
d->triggeredOn...iggeredOnStartDescription
TRUEevaluated 34 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmltimer
) {
2-34
104 d->triggeredOnStart = triggeredOnStart;-
105 update();-
106 triggeredOnStartChanged();-
107 }
executed 34 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
34
108}
executed 36 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
36
109void QQmlTimer::start()-
110{-
111 setRunning(true);-
112}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmltimer
2
113void QQmlTimer::stop()-
114{-
115 setRunning(false);-
116}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmltimer
4
117void QQmlTimer::restart()-
118{-
119 setRunning(false);-
120 setRunning(true);-
121}
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmltimer
8
122-
123void QQmlTimer::update()-
124{-
125 QQmlTimerPrivate * const d = d_func();-
126 if (d->classBegun
d->classBegunDescription
TRUEevaluated 594 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qtqmlmodules
  • tst_scenegraph
FALSEnever evaluated
&& !d->componentComplete
!d->componentCompleteDescription
TRUEevaluated 350 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 244 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qtqmlmodules
  • tst_scenegraph
)
0-594
127 return;
executed 350 times by 14 tests: return;
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
350
128 d->pause.stop();-
129 if (d->running
d->runningDescription
TRUEevaluated 174 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 70 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmltimer
  • tst_qtqmlmodules
  • tst_scenegraph
) {
70-174
130 d->pause.setCurrentTime(0);-
131 d->pause.setLoopCount(d->repeating ? -1 : 1);-
132 d->pause.setDuration(d->interval);-
133 d->pause.start();-
134 if (d->triggeredOnStart
d->triggeredOnStartDescription
TRUEevaluated 30 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
FALSEevaluated 144 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
&& d->firstTick
d->firstTickDescription
TRUEevaluated 30 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
FALSEnever evaluated
)
0-144
135 d->maybeTick();
executed 30 times by 3 tests: d->maybeTick();
Executed by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
30
136 }
executed 174 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
174
137}
executed 244 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qtqmlmodules
  • tst_scenegraph
244
138-
139void QQmlTimer::classBegin()-
140{-
141 QQmlTimerPrivate * const d = d_func();-
142 d->classBegun = true;-
143}
executed 186 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qtqmlmodules
  • tst_scenegraph
186
144-
145void QQmlTimer::componentComplete()-
146{-
147 QQmlTimerPrivate * const d = d_func();-
148 d->componentComplete = true;-
149 update();-
150}
executed 186 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qtqmlmodules
  • tst_scenegraph
186
151void QQmlTimer::ticked()-
152{-
153 QQmlTimerPrivate * const d = d_func();-
154 if (d->running
d->runningDescription
TRUEevaluated 72 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
  • tst_qquickrepeater
FALSEnever evaluated
&& (d->pause.currentTime() > 0
d->pause.currentTime() > 0Description
TRUEevaluated 36 times by 2 tests
Evaluated by:
  • tst_qqmltimer
  • tst_qquickrepeater
FALSEevaluated 36 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
  • tst_qquickrepeater
|| (d->triggeredOnStart
d->triggeredOnStartDescription
TRUEevaluated 30 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmltimer
  • tst_qquickrepeater
&& d->firstTick
d->firstTickDescription
TRUEevaluated 30 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
FALSEnever evaluated
)))
0-72
155 triggered();
executed 66 times by 4 tests: triggered();
Executed by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
  • tst_qquickrepeater
66
156 d->firstTick = false;-
157}
executed 72 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
  • tst_qquickrepeater
72
158-
159-
160-
161-
162bool QQmlTimer::event(QEvent *e)-
163{-
164 QQmlTimerPrivate * const d = d_func();-
165 if (e->type() == QEvent_MaybeTick
e->type() == QEvent_MaybeTickDescription
TRUEevaluated 72 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
  • tst_qquickrepeater
FALSEevaluated 50 times by 10 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickrepeater
) {
50-72
166 d->awaitingTick = false;-
167 ticked();-
168 return
executed 72 times by 4 tests: return true;
Executed by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
  • tst_qquickrepeater
true;
executed 72 times by 4 tests: return true;
Executed by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
  • tst_qquickrepeater
72
169 } else if (e->type() == QEvent_Triggered
e->type() == QEvent_TriggeredDescription
TRUEevaluated 50 times by 10 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickrepeater
FALSEnever evaluated
) {
0-50
170 if (d->running
d->runningDescription
TRUEevaluated 48 times by 10 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickrepeater
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmltimer
&& d->pause.isStopped()
d->pause.isStopped()Description
TRUEevaluated 44 times by 10 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickrepeater
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmltimer
  • tst_qquickrepeater
) {
2-48
171 d->running = false;-
172 triggered();-
173 runningChanged();-
174 }
executed 44 times by 10 tests: end of block
Executed by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickrepeater
44
175 return
executed 50 times by 10 tests: return true;
Executed by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickrepeater
true;
executed 50 times by 10 tests: return true;
Executed by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickrepeater
50
176 }-
177 return
never executed: return QObject::event(e);
QObject::event(e);
never executed: return QObject::event(e);
0
178}-
179-
180void QQmlTimerPrivate::animationFinished(QAbstractAnimationJob *)-
181{-
182 QQmlTimer * const q = q_func();-
183 if (repeating
repeatingDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmltimer
FALSEevaluated 50 times by 10 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickrepeater
|| !running
!runningDescription
TRUEnever evaluated
FALSEevaluated 50 times by 10 tests
Evaluated by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickrepeater
)
0-50
184 return;
executed 12 times by 1 test: return;
Executed by:
  • tst_qqmltimer
12
185 firstTick = false;-
186 QCoreApplication::postEvent(q, new QEvent(QEvent_Triggered));-
187}
executed 50 times by 10 tests: end of block
Executed by:
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickrepeater
50
188-
189-
190-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0