| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | class QSmoothedAnimation; | - |
| 5 | class QSmoothedAnimationTimer : public QTimer | - |
| 6 | { | - |
| 7 | public: | - |
| 8 | #pragma GCC diagnostic push | - |
| 9 | | - |
| 10 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 11 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
| 12 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 13 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 14 | #pragma GCC diagnostic pop | - |
| 15 | struct QPrivateSignal {}; | - |
| 16 | public: | - |
| 17 | explicit QSmoothedAnimationTimer(QSmoothedAnimation *animation, QObject *parent = nullptr); | - |
| 18 | ~QSmoothedAnimationTimer(); | - |
| 19 | public : | - |
| 20 | void stopAnimation(); | - |
| 21 | private: | - |
| 22 | QSmoothedAnimation *m_animation; | - |
| 23 | }; | - |
| 24 | | - |
| 25 | class QQuickSmoothedAnimationPrivate; | - |
| 26 | class __attribute__((visibility("default"))) QSmoothedAnimation : public QAbstractAnimationJob | - |
| 27 | { | - |
| 28 | QSmoothedAnimation(const QSmoothedAnimation &) = delete; QSmoothedAnimation &operator=(const QSmoothedAnimation &) = delete; | - |
| 29 | public: | - |
| 30 | QSmoothedAnimation(QQuickSmoothedAnimationPrivate * = nullptr); | - |
| 31 | | - |
| 32 | ~QSmoothedAnimation(); | - |
| 33 | qreal to; | - |
| 34 | qreal velocity; | - |
| 35 | int userDuration; | - |
| 36 | | - |
| 37 | int maximumEasingTime; | - |
| 38 | QQuickSmoothedAnimation::ReversingMode reversingMode; | - |
| 39 | | - |
| 40 | qreal initialVelocity; | - |
| 41 | qreal trackVelocity; | - |
| 42 | | - |
| 43 | QQmlProperty target; | - |
| 44 | | - |
| 45 | int duration() const override; | - |
| 46 | void restart(); | - |
| 47 | void init(); | - |
| 48 | | - |
| 49 | void prepareForRestart(); | - |
| 50 | void clearTemplate() { animationTemplate = nullptr; } never executed: end of block | 0 |
| 51 | | - |
| 52 | protected: | - |
| 53 | void updateCurrentTime(int) override; | - |
| 54 | void updateState(QAbstractAnimationJob::State, QAbstractAnimationJob::State) override; | - |
| 55 | void debugAnimation(QDebug d) const override; | - |
| 56 | | - |
| 57 | private: | - |
| 58 | qreal easeFollow(qreal); | - |
| 59 | qreal initialValue; | - |
| 60 | | - |
| 61 | bool invert; | - |
| 62 | | - |
| 63 | int finalDuration; | - |
| 64 | | - |
| 65 | | - |
| 66 | qreal a; | - |
| 67 | qreal d; | - |
| 68 | qreal tf; | - |
| 69 | qreal tp; | - |
| 70 | qreal td; | - |
| 71 | qreal vp; | - |
| 72 | qreal sp; | - |
| 73 | qreal sd; | - |
| 74 | qreal vi; | - |
| 75 | qreal s; | - |
| 76 | | - |
| 77 | int lastTime; | - |
| 78 | bool skipUpdate; | - |
| 79 | | - |
| 80 | bool recalc(); | - |
| 81 | void delayedStop(); | - |
| 82 | QSmoothedAnimationTimer *delayedStopTimer; | - |
| 83 | QQuickSmoothedAnimationPrivate *animationTemplate; | - |
| 84 | }; | - |
| 85 | | - |
| 86 | class QQuickSmoothedAnimationPrivate : public QQuickPropertyAnimationPrivate | - |
| 87 | { | - |
| 88 | inline QQuickSmoothedAnimation* q_func() { return static_cast<QQuickSmoothedAnimation *>(q_ptr); } inline const QQuickSmoothedAnimation* q_func() const { return static_cast<const QQuickSmoothedAnimation *>(q_ptr); } friend class QQuickSmoothedAnimation; | - |
| 89 | public: | - |
| 90 | QQuickSmoothedAnimationPrivate(); | - |
| 91 | ~QQuickSmoothedAnimationPrivate(); | - |
| 92 | void updateRunningAnimations(); | - |
| 93 | | - |
| 94 | QSmoothedAnimation *anim; | - |
| 95 | QHash<QQmlProperty, QSmoothedAnimation*> activeAnimations; | - |
| 96 | }; | - |
| 97 | | - |
| 98 | | - |
| | |