Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquicktransition_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | class QQuickAbstractAnimation; | - |
6 | class QQuickTransitionPrivate; | - |
7 | class QQuickTransitionManager; | - |
8 | class QQuickTransition; | - |
9 | - | |
10 | class QQuickTransitionInstance : QAnimationJobChangeListener | - |
11 | { | - |
12 | public: | - |
13 | QQuickTransitionInstance(QQuickTransition *transition, QAbstractAnimationJob *anim); | - |
14 | ~QQuickTransitionInstance(); | - |
15 | - | |
16 | void start(); | - |
17 | void stop(); | - |
18 | - | |
19 | bool isRunning() const; | - |
20 | - | |
21 | protected: | - |
22 | void animationStateChanged(QAbstractAnimationJob *, QAbstractAnimationJob::State, QAbstractAnimationJob::State) override; | - |
23 | - | |
24 | void removeStateChangeListener() | - |
25 | { | - |
26 | m_anim->removeAnimationChangeListener(this, QAbstractAnimationJob::StateChange); | - |
27 | } executed 10590 times by 7 tests: end of block Executed by:
| 10590 |
28 | - | |
29 | private: | - |
30 | QQmlGuard<QQuickTransition> m_transition; | - |
31 | QAbstractAnimationJob *m_anim; | - |
32 | friend class QQuickTransition; | - |
33 | }; | - |
34 | - | |
35 | class __attribute__((visibility("default"))) QQuickTransition : public QObject | - |
36 | { | - |
37 | public: | - |
38 | #pragma GCC diagnostic push | - |
39 | - | |
40 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
41 | 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: | - |
42 | #pragma GCC diagnostic ignored "-Wattributes" | - |
43 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
44 | #pragma GCC diagnostic pop | - |
45 | struct QPrivateSignal {}; | - |
46 | inline QQuickTransitionPrivate* d_func() { return executed 33640 times by 9 tests: reinterpret_cast<QQuickTransitionPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickTransitionPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 33640 times by 9 tests: } inline const QQuickTransitionPrivate* d_func() const { returnreturn reinterpret_cast<QQuickTransitionPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 28676 times by 8 tests: reinterpret_cast<const QQuickTransitionPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickTransitionPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 28676 times by 8 tests: } friend class QQuickTransitionPrivate;return reinterpret_cast<const QQuickTransitionPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 28676-33640 |
47 | - | |
48 | - | |
49 | - | |
50 | - | |
51 | - | |
52 | - | |
53 | - | |
54 | - | |
55 | - | |
56 | - | |
57 | public: | - |
58 | QQuickTransition(QObject *parent=nullptr); | - |
59 | ~QQuickTransition(); | - |
60 | - | |
61 | QString fromState() const; | - |
62 | void setFromState(const QString &); | - |
63 | - | |
64 | QString toState() const; | - |
65 | void setToState(const QString &); | - |
66 | - | |
67 | bool reversible() const; | - |
68 | void setReversible(bool); | - |
69 | - | |
70 | bool enabled() const; | - |
71 | void setEnabled(bool enabled); | - |
72 | - | |
73 | bool running() const; | - |
74 | - | |
75 | QQmlListProperty<QQuickAbstractAnimation> animations(); | - |
76 | - | |
77 | QQuickTransitionInstance *prepare(QQuickStateOperation::ActionList &actions, | - |
78 | QList<QQmlProperty> &after, | - |
79 | QQuickTransitionManager *end, | - |
80 | QObject *defaultTarget); | - |
81 | - | |
82 | void setReversed(bool r); | - |
83 | - | |
84 | public : | - |
85 | void fromChanged(); | - |
86 | void toChanged(); | - |
87 | void reversibleChanged(); | - |
88 | void enabledChanged(); | - |
89 | void runningChanged(); | - |
90 | }; | - |
91 | - | |
92 | - | |
93 | - | |
94 | template <> struct QMetaTypeId< QQuickTransition * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickTransition * >("QQuickTransition *", reinterpret_cast< QQuickTransition * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickTransition> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickTransition> >("QQmlListProperty<QQuickTransition>", reinterpret_cast< QQmlListProperty<QQuickTransition> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
Switch to Source code | Preprocessed file |