OpenCoverage

qquicktransition_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquicktransition_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5class QQuickAbstractAnimation;-
6class QQuickTransitionPrivate;-
7class QQuickTransitionManager;-
8class QQuickTransition;-
9-
10class QQuickTransitionInstance : QAnimationJobChangeListener-
11{-
12public:-
13 QQuickTransitionInstance(QQuickTransition *transition, QAbstractAnimationJob *anim);-
14 ~QQuickTransitionInstance();-
15-
16 void start();-
17 void stop();-
18-
19 bool isRunning() const;-
20-
21protected:-
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:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
10590
28-
29private:-
30 QQmlGuard<QQuickTransition> m_transition;-
31 QAbstractAnimationJob *m_anim;-
32 friend class QQuickTransition;-
33};-
34-
35class __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: return reinterpret_cast<QQuickTransitionPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
reinterpret_cast<QQuickTransitionPrivate *>(qGetPtrHelper(d_ptr));
executed 33640 times by 9 tests: return reinterpret_cast<QQuickTransitionPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
} inline const QQuickTransitionPrivate* d_func() const { return
executed 28676 times by 8 tests: return reinterpret_cast<const QQuickTransitionPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
reinterpret_cast<const QQuickTransitionPrivate *>(qGetPtrHelper(d_ptr));
executed 28676 times by 8 tests: return reinterpret_cast<const QQuickTransitionPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
} friend class QQuickTransitionPrivate;
28676-33640
47-
48 -
49 -
50 -
51 -
52 -
53 -
54 -
55 -
56-
57public:-
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-
84public :-
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 codePreprocessed file

Generated by Squish Coco 4.2.0