qpauseanimation.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/animation/qpauseanimation.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7class QPauseAnimationPrivate : public QAbstractAnimationPrivate-
8{-
9public:-
10 QPauseAnimationPrivate() : QAbstractAnimationPrivate(), duration(250)-
11 {-
12 isPause = true;-
13 }
executed 41 times by 2 tests: end of block
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
41
14-
15 int duration;-
16};-
17-
18-
19-
20-
21-
22-
23-
24QPauseAnimation::QPauseAnimation(QObject *parent) : QAbstractAnimation(*new QPauseAnimationPrivate, parent)-
25{-
26}
executed 19 times by 1 test: end of block
Executed by:
  • tst_QPauseAnimation
19
27-
28-
29-
30-
31-
32-
33-
34QPauseAnimation::QPauseAnimation(int msecs, QObject *parent) : QAbstractAnimation(*new QPauseAnimationPrivate, parent)-
35{-
36 setDuration(msecs);-
37}
executed 22 times by 1 test: end of block
Executed by:
  • tst_QSequentialAnimationGroup
22
38-
39-
40-
41-
42QPauseAnimation::~QPauseAnimation()-
43{-
44}-
45int QPauseAnimation::duration() const-
46{-
47 const QPauseAnimationPrivate * const d = d_func();-
48 return
executed 2080 times by 2 tests: return d->duration;
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
d->duration;
executed 2080 times by 2 tests: return d->duration;
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
2080
49}-
50-
51void QPauseAnimation::setDuration(int msecs)-
52{-
53 if (msecs < 0
msecs < 0Description
TRUEnever evaluated
FALSEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
) {
0-41
54 QMessageLogger(__FILE__, 127, __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 41 times by 2 tests: end of block
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
41
60-
61-
62-
63-
64bool QPauseAnimation::event(QEvent *e)-
65{-
66 return
never executed: return QAbstractAnimation::event(e);
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-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9