| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquicktimeline_p_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | class QEasingCurve; | - | ||||||
| 5 | class QQuickTimeLineValue; | - | ||||||
| 6 | class QQuickTimeLineCallback; | - | ||||||
| 7 | struct QQuickTimeLinePrivate; | - | ||||||
| 8 | class QQuickTimeLineObject; | - | ||||||
| 9 | class __attribute__((visibility("default"))) QQuickTimeLine : public QObject, QAbstractAnimationJob | - | ||||||
| 10 | { | - | ||||||
| 11 | public: | - | ||||||
| 12 | #pragma GCC diagnostic push | - | ||||||
| 13 | - | |||||||
| 14 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||
| 15 | 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: | - | ||||||
| 16 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||
| 17 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||
| 18 | #pragma GCC diagnostic pop | - | ||||||
| 19 | struct QPrivateSignal {}; | - | ||||||
| 20 | public: | - | ||||||
| 21 | QQuickTimeLine(QObject *parent = nullptr); | - | ||||||
| 22 | ~QQuickTimeLine(); | - | ||||||
| 23 | - | |||||||
| 24 | enum SyncMode { LocalSync, GlobalSync }; | - | ||||||
| 25 | SyncMode syncMode() const; | - | ||||||
| 26 | void setSyncMode(SyncMode); | - | ||||||
| 27 | - | |||||||
| 28 | void pause(QQuickTimeLineObject &, int); | - | ||||||
| 29 | void callback(const QQuickTimeLineCallback &); | - | ||||||
| 30 | void set(QQuickTimeLineValue &, qreal); | - | ||||||
| 31 | - | |||||||
| 32 | int accel(QQuickTimeLineValue &, qreal velocity, qreal accel); | - | ||||||
| 33 | int accel(QQuickTimeLineValue &, qreal velocity, qreal accel, qreal maxDistance); | - | ||||||
| 34 | int accelDistance(QQuickTimeLineValue &, qreal velocity, qreal distance); | - | ||||||
| 35 | - | |||||||
| 36 | void move(QQuickTimeLineValue &, qreal destination, int time = 500); | - | ||||||
| 37 | void move(QQuickTimeLineValue &, qreal destination, const QEasingCurve &, int time = 500); | - | ||||||
| 38 | void moveBy(QQuickTimeLineValue &, qreal change, int time = 500); | - | ||||||
| 39 | void moveBy(QQuickTimeLineValue &, qreal change, const QEasingCurve &, int time = 500); | - | ||||||
| 40 | - | |||||||
| 41 | void sync(); | - | ||||||
| 42 | void setSyncPoint(int); | - | ||||||
| 43 | int syncPoint() const; | - | ||||||
| 44 | - | |||||||
| 45 | void sync(QQuickTimeLineValue &); | - | ||||||
| 46 | void sync(QQuickTimeLineValue &, QQuickTimeLineValue &); | - | ||||||
| 47 | - | |||||||
| 48 | void reset(QQuickTimeLineValue &); | - | ||||||
| 49 | - | |||||||
| 50 | void complete(); | - | ||||||
| 51 | void clear(); | - | ||||||
| 52 | bool isActive() const; | - | ||||||
| 53 | - | |||||||
| 54 | int time() const; | - | ||||||
| 55 | - | |||||||
| 56 | int duration() const override; | - | ||||||
| 57 | public : | - | ||||||
| 58 | void updated(); | - | ||||||
| 59 | void completed(); | - | ||||||
| 60 | - | |||||||
| 61 | protected: | - | ||||||
| 62 | void updateCurrentTime(int) override; | - | ||||||
| 63 | void debugAnimation(QDebug d) const override; | - | ||||||
| 64 | - | |||||||
| 65 | private: | - | ||||||
| 66 | void remove(QQuickTimeLineObject *); | - | ||||||
| 67 | friend class QQuickTimeLineObject; | - | ||||||
| 68 | friend struct QQuickTimeLinePrivate; | - | ||||||
| 69 | QQuickTimeLinePrivate *d; | - | ||||||
| 70 | }; | - | ||||||
| 71 | - | |||||||
| 72 | class __attribute__((visibility("default"))) QQuickTimeLineObject | - | ||||||
| 73 | { | - | ||||||
| 74 | public: | - | ||||||
| 75 | QQuickTimeLineObject(); | - | ||||||
| 76 | virtual ~QQuickTimeLineObject(); | - | ||||||
| 77 | - | |||||||
| 78 | protected: | - | ||||||
| 79 | friend class QQuickTimeLine; | - | ||||||
| 80 | friend struct QQuickTimeLinePrivate; | - | ||||||
| 81 | QQuickTimeLine *_t; | - | ||||||
| 82 | }; | - | ||||||
| 83 | - | |||||||
| 84 | class __attribute__((visibility("default"))) QQuickTimeLineValue : public QQuickTimeLineObject | - | ||||||
| 85 | { | - | ||||||
| 86 | public: | - | ||||||
| 87 | QQuickTimeLineValue(qreal v = 0.) : _v(v) {} executed 16966 times by 19 tests: end of blockExecuted by:
| 16966 | ||||||
| 88 | - | |||||||
| 89 | virtual qreal value() const { return executed 310706 times by 18 tests: _v;return _v;Executed by:
executed 310706 times by 18 tests: }return _v;Executed by:
| 310706 | ||||||
| 90 | virtual void setValue(qreal v) { _v = v; } executed 53811 times by 9 tests: end of blockExecuted by:
| 53811 | ||||||
| 91 | - | |||||||
| 92 | QQuickTimeLine *timeLine() const { return never executed: _t;return _t;never executed: }return _t; | 0 | ||||||
| 93 | - | |||||||
| 94 | operator qreal() const { return executed 17272 times by 9 tests: _v;return _v;Executed by:
executed 17272 times by 9 tests: }return _v;Executed by:
| 17272 | ||||||
| 95 | QQuickTimeLineValue &operator=(qreal v) { setValue(v); return never executed: *this;return *this;never executed: }return *this; | 0 | ||||||
| 96 | private: | - | ||||||
| 97 | friend class QQuickTimeLine; | - | ||||||
| 98 | friend struct QQuickTimeLinePrivate; | - | ||||||
| 99 | qreal _v; | - | ||||||
| 100 | }; | - | ||||||
| 101 | - | |||||||
| 102 | class __attribute__((visibility("default"))) QQuickTimeLineCallback | - | ||||||
| 103 | { | - | ||||||
| 104 | public: | - | ||||||
| 105 | typedef void (*Callback)(void *); | - | ||||||
| 106 | - | |||||||
| 107 | QQuickTimeLineCallback(); | - | ||||||
| 108 | QQuickTimeLineCallback(QQuickTimeLineObject *b, Callback, void * = nullptr); | - | ||||||
| 109 | QQuickTimeLineCallback(const QQuickTimeLineCallback &o); | - | ||||||
| 110 | - | |||||||
| 111 | QQuickTimeLineCallback &operator=(const QQuickTimeLineCallback &o); | - | ||||||
| 112 | QQuickTimeLineObject *callbackObject() const; | - | ||||||
| 113 | - | |||||||
| 114 | private: | - | ||||||
| 115 | friend struct QQuickTimeLinePrivate; | - | ||||||
| 116 | Callback d0; | - | ||||||
| 117 | void *d1; | - | ||||||
| 118 | QQuickTimeLineObject *d2; | - | ||||||
| 119 | }; | - | ||||||
| 120 | - | |||||||
| 121 | template<class T> | - | ||||||
| 122 | class QQuickTimeLineValueProxy : public QQuickTimeLineValue | - | ||||||
| 123 | { | - | ||||||
| 124 | public: | - | ||||||
| 125 | QQuickTimeLineValueProxy(T *cls, void (T::*func)(qreal), qreal v = 0.) | - | ||||||
| 126 | : QQuickTimeLineValue(v), _class(cls), _setFunctionReal(func), _setFunctionInt(nullptr) | - | ||||||
| 127 | { | - | ||||||
| 128 | ((_class) ? static_cast<void>(0) : qt_assert("_class", __FILE__, 175)); | - | ||||||
| 129 | } executed 8764 times by 18 tests: end of blockExecuted by:
| 8764 | ||||||
| 130 | - | |||||||
| 131 | QQuickTimeLineValueProxy(T *cls, void (T::*func)(int), qreal v = 0.) | - | ||||||
| 132 | : QQuickTimeLineValue(v), _class(cls), _setFunctionReal(0), _setFunctionInt(func) | - | ||||||
| 133 | { | - | ||||||
| 134 | ((_class) ? static_cast<void>(0) : qt_assert("_class", __FILE__, 181)); | - | ||||||
| 135 | } never executed: end of block | 0 | ||||||
| 136 | - | |||||||
| 137 | void setValue(qreal v) override | - | ||||||
| 138 | { | - | ||||||
| 139 | QQuickTimeLineValue::setValue(v); | - | ||||||
| 140 | if (_setFunctionReal
executed 33038 times by 9 tests: _class->*_setFunctionReal)(v);(_class->*_setFunctionReal)(v);Executed by:
executed 33038 times by 9 tests: (_class->*_setFunctionReal)(v);Executed by:
| 0-33038 | ||||||
| 141 | else if (_setFunctionInt
never executed: _class->*_setFunctionInt)((int)v);(_class->*_setFunctionInt)((int)v);never executed: (_class->*_setFunctionInt)((int)v); | 0 | ||||||
| 142 | } executed 33038 times by 9 tests: end of blockExecuted by:
| 33038 | ||||||
| 143 | - | |||||||
| 144 | private: | - | ||||||
| 145 | T *_class; | - | ||||||
| 146 | void (T::*_setFunctionReal)(qreal); | - | ||||||
| 147 | void (T::*_setFunctionInt)(int); | - | ||||||
| 148 | }; | - | ||||||
| 149 | - | |||||||
| 150 | - | |||||||
| Switch to Source code | Preprocessed file |