Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickanimatorcontroller_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | class QQuickAnimatorController : public QObject, public QAnimationJobChangeListener | - |
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 | - | |
17 | public: | - |
18 | QQuickAnimatorController(QQuickWindow *window); | - |
19 | ~QQuickAnimatorController(); | - |
20 | - | |
21 | void advance(); | - |
22 | void beforeNodeSync(); | - |
23 | void afterNodeSync(); | - |
24 | - | |
25 | void animationFinished(QAbstractAnimationJob *job) override; | - |
26 | void animationStateChanged(QAbstractAnimationJob *job, QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState) override; | - |
27 | - | |
28 | void requestSync(); | - |
29 | - | |
30 | - | |
31 | void start(const QSharedPointer<QAbstractAnimationJob> &job); | - |
32 | void cancel(const QSharedPointer<QAbstractAnimationJob> &job); | - |
33 | bool isPendingStart(const QSharedPointer<QAbstractAnimationJob> &job) const { return executed 653 times by 2 tests: m_rootsPendingStart.contains(job);return m_rootsPendingStart.contains(job); Executed by:
executed 653 times by 2 tests: }return m_rootsPendingStart.contains(job); Executed by:
| 653 |
34 | - | |
35 | void lock() { m_mutex.lock(); } never executed: end of block | 0 |
36 | void unlock() { m_mutex.unlock(); } never executed: end of block | 0 |
37 | - | |
38 | void proxyWasDestroyed(QQuickAnimatorProxyJob *proxy); | - |
39 | void stopProxyJobs(); | - |
40 | void windowNodesDestroyed(); | - |
41 | - | |
42 | QQuickWindow *window() const { return executed 6 times by 2 tests: m_window;return m_window; Executed by:
executed 6 times by 2 tests: }return m_window; Executed by:
| 6 |
43 | - | |
44 | private: | - |
45 | void start_helper(QAbstractAnimationJob *job); | - |
46 | void cancel_helper(QAbstractAnimationJob *job); | - |
47 | - | |
48 | public: | - |
49 | QSet<QQuickAnimatorJob * > m_runningAnimators; | - |
50 | QHash<QAbstractAnimationJob *, QSharedPointer<QAbstractAnimationJob> > m_animationRoots; | - |
51 | QSet<QSharedPointer<QAbstractAnimationJob> > m_rootsPendingStop; | - |
52 | QSet<QSharedPointer<QAbstractAnimationJob> > m_rootsPendingStart; | - |
53 | - | |
54 | QQuickWindow *m_window; | - |
55 | QMutex m_mutex; | - |
56 | }; | - |
57 | - | |
58 | - | |
59 | - | |
60 | - | |
Switch to Source code | Preprocessed file |