| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/animations/qsequentialanimationgroupjob_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | static_assert(bool(1 == 1), "Required feature " "qml_animation" " for file " __FILE__ " not available."); | - |
| 3 | - | |
| 4 | - | |
| 5 | - | |
| 6 | class QPauseAnimationJob; | - |
| 7 | class __attribute__((visibility("default"))) QSequentialAnimationGroupJob : public QAnimationGroupJob | - |
| 8 | { | - |
| 9 | QSequentialAnimationGroupJob(const QSequentialAnimationGroupJob &) = delete; QSequentialAnimationGroupJob &operator=(const QSequentialAnimationGroupJob &) = delete; | - |
| 10 | public: | - |
| 11 | QSequentialAnimationGroupJob(); | - |
| 12 | ~QSequentialAnimationGroupJob(); | - |
| 13 | - | |
| 14 | int duration() const override; | - |
| 15 | - | |
| 16 | QAbstractAnimationJob *currentAnimation() const { return executed 56 times by 3 tests: m_currentAnimation;return m_currentAnimation;Executed by:
executed 56 times by 3 tests: }return m_currentAnimation;Executed by:
| 56 |
| 17 | - | |
| 18 | protected: | - |
| 19 | void updateCurrentTime(int) override; | - |
| 20 | void updateState(QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState) override; | - |
| 21 | void updateDirection(QAbstractAnimationJob::Direction direction) override; | - |
| 22 | void uncontrolledAnimationFinished(QAbstractAnimationJob *animation) override; | - |
| 23 | void debugAnimation(QDebug d) const override; | - |
| 24 | - | |
| 25 | private: | - |
| 26 | struct AnimationIndex | - |
| 27 | { | - |
| 28 | AnimationIndex() {} | - |
| 29 | - | |
| 30 | - | |
| 31 | bool afterCurrent = false; | - |
| 32 | int timeOffset = 0; | - |
| 33 | QAbstractAnimationJob *animation = nullptr; | - |
| 34 | }; | - |
| 35 | - | |
| 36 | int animationActualTotalDuration(QAbstractAnimationJob *anim) const; | - |
| 37 | AnimationIndex indexForCurrentTime() const; | - |
| 38 | - | |
| 39 | void setCurrentAnimation(QAbstractAnimationJob *anim, bool intermediate = false); | - |
| 40 | void activateCurrentAnimation(bool intermediate = false); | - |
| 41 | - | |
| 42 | void animationInserted(QAbstractAnimationJob *anim) override; | - |
| 43 | void animationRemoved(QAbstractAnimationJob *anim, QAbstractAnimationJob *, QAbstractAnimationJob *) override; | - |
| 44 | - | |
| 45 | bool atEnd() const; | - |
| 46 | - | |
| 47 | void restart(); | - |
| 48 | - | |
| 49 | - | |
| 50 | void rewindForwards(const AnimationIndex &newAnimationIndex); | - |
| 51 | void advanceForwards(const AnimationIndex &newAnimationIndex); | - |
| 52 | - | |
| 53 | - | |
| 54 | QAbstractAnimationJob *m_currentAnimation = nullptr; | - |
| 55 | int m_previousLoop = 0; | - |
| 56 | }; | - |
| 57 | - | |
| 58 | - | |
| Switch to Source code | Preprocessed file |