| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/animation/qpauseanimation.cpp | 
| Switch to Source code | Preprocessed file | 
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 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 41 times by 2 tests:  end of blockExecuted by: 
 | 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 19 times by 1 test:  end of blockExecuted by: 
 | 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 22 times by 1 test:  end of blockExecuted by: 
 | 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 executed 2080 times by 2 tests: d->duration; return d->duration;Executed by: 
 executed 2080 times by 2 tests:  return d->duration;Executed by: 
 | 2080 | ||||||
| 49 | } | - | ||||||
| 50 | - | |||||||
| 51 | void QPauseAnimation::setDuration(int msecs) | - | ||||||
| 52 | { | - | ||||||
| 53 | if (msecs < 0 
 | 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 blockExecuted by: 
 | 41 | ||||||
| 60 | - | |||||||
| 61 | - | |||||||
| 62 | - | |||||||
| 63 | - | |||||||
| 64 | bool QPauseAnimation::event(QEvent *e) | - | ||||||
| 65 | { | - | ||||||
| 66 | return never executed: QAbstractAnimation::event(e); 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 | - | |||||||
| Switch to Source code | Preprocessed file |