animation/qpauseanimation.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5 -
6 -
7class QPauseAnimationPrivate : public QAbstractAnimationPrivate -
8{ -
9public: -
10 QPauseAnimationPrivate() : QAbstractAnimationPrivate(), duration(250) -
11 { -
12 isPause = true; -
13 }
executed: }
Execution Count:41
41
14 -
15 int duration; -
16}; -
17 -
18 -
19 -
20 -
21 -
22 -
23 -
24QPauseAnimation::QPauseAnimation(QObject *parent) : QAbstractAnimation(*new QPauseAnimationPrivate, parent) -
25{ -
26}
executed: }
Execution Count:19
19
27 -
28 -
29 -
30 -
31 -
32 -
33 -
34QPauseAnimation::QPauseAnimation(int msecs, QObject *parent) : QAbstractAnimation(*new QPauseAnimationPrivate, parent) -
35{ -
36 setDuration(msecs); -
37}
executed: }
Execution Count:22
22
38 -
39 -
40 -
41 -
42QPauseAnimation::~QPauseAnimation() -
43{ -
44} -
45int QPauseAnimation::duration() const -
46{ -
47 const QPauseAnimationPrivate * const d = d_func(); -
48 return d->duration;
executed: return d->duration;
Execution Count:2084
2084
49} -
50 -
51void QPauseAnimation::setDuration(int msecs) -
52{ -
53 if (msecs < 0) {
partially evaluated: msecs < 0
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:41
0-41
54 QMessageLogger("animation/qpauseanimation.cpp", 129, __PRETTY_FUNCTION__).warning("QPauseAnimation::setDuration: cannot set a negative duration"); -
55 return;
never executed: return;
0
56 } -
57 QPauseAnimationPrivate * const d = d_func(); -
58 d->duration = msecs; -
59}
executed: }
Execution Count:41
41
60 -
61 -
62 -
63 -
64bool QPauseAnimation::event(QEvent *e) -
65{ -
66 return QAbstractAnimation::event(e);
never executed: return QAbstractAnimation::event(e);
0
67} -
68 -
69 -
70 -
71 -
72void QPauseAnimation::updateCurrentTime(int) -
73{ -
74} -
75 -
76 -
77 -
78 -
79 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial