Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | class QPauseAnimationPrivate : public QAbstractAnimationPrivate | - |
8 | { | - |
9 | public: | - |
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 | | - |
24 | QPauseAnimation::QPauseAnimation(QObject *parent) : QAbstractAnimation(*new QPauseAnimationPrivate, parent) | - |
25 | { | - |
26 | } executed: } Execution Count:19 | 19 |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | QPauseAnimation::QPauseAnimation(int msecs, QObject *parent) : QAbstractAnimation(*new QPauseAnimationPrivate, parent) | - |
35 | { | - |
36 | setDuration(msecs); | - |
37 | } executed: } Execution Count:22 | 22 |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | QPauseAnimation::~QPauseAnimation() | - |
43 | { | - |
44 | } | - |
45 | int 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 | | - |
51 | void QPauseAnimation::setDuration(int msecs) | - |
52 | { | - |
53 | if (msecs < 0) { partially evaluated: msecs < 0 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; | 0 |
56 | } | - |
57 | QPauseAnimationPrivate * const d = d_func(); | - |
58 | d->duration = msecs; | - |
59 | } executed: } Execution Count:41 | 41 |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | bool QPauseAnimation::event(QEvent *e) | - |
65 | { | - |
66 | return QAbstractAnimation::event(e); never executed: return QAbstractAnimation::event(e); | 0 |
67 | } | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | void QPauseAnimation::updateCurrentTime(int) | - |
73 | { | - |
74 | } | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
| | |