Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickitemanimation_p_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | class QQuickParentAnimationPrivate : public QQuickAnimationGroupPrivate | - |
6 | { | - |
7 | inline QQuickParentAnimation* q_func() { return static_cast<QQuickParentAnimation *>(q_ptr); } inline const QQuickParentAnimation* q_func() const { return static_cast<const QQuickParentAnimation *>(q_ptr); } friend class QQuickParentAnimation; | - |
8 | public: | - |
9 | QQuickParentAnimationPrivate() | - |
10 | : QQuickAnimationGroupPrivate(), target(nullptr), newParent(nullptr), via(nullptr) {} executed 2 times by 1 test: end of block Executed by:
| 2 |
11 | - | |
12 | QQuickItem *target; | - |
13 | QQuickItem *newParent; | - |
14 | QQuickItem *via; | - |
15 | - | |
16 | QPointF computeTransformOrigin(QQuickItem::TransformOrigin origin, qreal width, qreal height) const; | - |
17 | }; | - |
18 | - | |
19 | class QQuickAnchorAnimationPrivate : public QQuickAbstractAnimationPrivate | - |
20 | { | - |
21 | inline QQuickAnchorAnimation* q_func() { return static_cast<QQuickAnchorAnimation *>(q_ptr); } inline const QQuickAnchorAnimation* q_func() const { return static_cast<const QQuickAnchorAnimation *>(q_ptr); } friend class QQuickAnchorAnimation; | - |
22 | public: | - |
23 | QQuickAnchorAnimationPrivate() : interpolator(QVariantAnimationPrivate::getInterpolator(QMetaType::QReal)), duration(250) {} executed 6 times by 2 tests: end of block Executed by:
| 6 |
24 | - | |
25 | QVariantAnimation::Interpolator interpolator; | - |
26 | int duration; | - |
27 | QEasingCurve easing; | - |
28 | QList<QQuickItem*> targets; | - |
29 | }; | - |
30 | - | |
31 | - | |
32 | - | |
33 | class QQuickPathAnimationUpdater : public QQuickBulkValueUpdater | - |
34 | { | - |
35 | public: | - |
36 | QQuickPathAnimationUpdater() : path(nullptr), pathLength(0), target(nullptr), reverse(false), | - |
37 | fromSourced(false), fromDefined(false), toDefined(false), | - |
38 | toX(0), toY(0), currentV(0), orientation(QQuickPathAnimation::Fixed), | - |
39 | entryInterval(0), exitInterval(0) {} executed 48 times by 2 tests: end of block Executed by:
| 48 |
40 | ~QQuickPathAnimationUpdater() {} | - |
41 | - | |
42 | void setValue(qreal v) override; | - |
43 | - | |
44 | QQuickPath *path; | - |
45 | - | |
46 | QPainterPath painterPath; | - |
47 | QQuickCachedBezier prevBez; | - |
48 | qreal pathLength; | - |
49 | QList<QQuickPath::AttributePoint> attributePoints; | - |
50 | - | |
51 | QQuickItem *target; | - |
52 | bool reverse; | - |
53 | bool fromSourced; | - |
54 | bool fromDefined; | - |
55 | bool toDefined; | - |
56 | qreal toX; | - |
57 | qreal toY; | - |
58 | qreal currentV; | - |
59 | QQmlNullableValue<qreal> interruptStart; | - |
60 | - | |
61 | QQuickPathAnimation::Orientation orientation; | - |
62 | QPointF anchorPoint; | - |
63 | qreal entryInterval; | - |
64 | qreal exitInterval; | - |
65 | QQmlNullableValue<qreal> endRotation; | - |
66 | QQmlNullableValue<qreal> startRotation; | - |
67 | }; | - |
68 | - | |
69 | class QQuickPathAnimationPrivate; | - |
70 | class QQuickPathAnimationAnimator : public QQuickBulkValueAnimator | - |
71 | { | - |
72 | public: | - |
73 | QQuickPathAnimationAnimator(QQuickPathAnimationPrivate * = nullptr); | - |
74 | ~QQuickPathAnimationAnimator(); | - |
75 | - | |
76 | void clearTemplate() { animationTemplate = nullptr; } executed 16 times by 1 test: end of block Executed by:
| 16 |
77 | - | |
78 | QQuickPathAnimationUpdater *pathUpdater() const { return executed 12 times by 2 tests: static_cast<QQuickPathAnimationUpdater*>(getAnimValue());return static_cast<QQuickPathAnimationUpdater*>(getAnimValue()); Executed by:
executed 12 times by 2 tests: }return static_cast<QQuickPathAnimationUpdater*>(getAnimValue()); Executed by:
| 12 |
79 | private: | - |
80 | QQuickPathAnimationPrivate *animationTemplate; | - |
81 | }; | - |
82 | - | |
83 | class QQuickPathAnimationPrivate : public QQuickAbstractAnimationPrivate | - |
84 | { | - |
85 | inline QQuickPathAnimation* q_func() { return static_cast<QQuickPathAnimation *>(q_ptr); } inline const QQuickPathAnimation* q_func() const { return static_cast<const QQuickPathAnimation *>(q_ptr); } friend class QQuickPathAnimation; | - |
86 | public: | - |
87 | QQuickPathAnimationPrivate() : path(nullptr), target(nullptr), | - |
88 | orientation(QQuickPathAnimation::Fixed), entryDuration(0), exitDuration(0), duration(250) {} executed 16 times by 2 tests: end of block Executed by:
| 16 |
89 | - | |
90 | QQuickPath *path; | - |
91 | QQuickItem *target; | - |
92 | QQuickPathAnimation::Orientation orientation; | - |
93 | QPointF anchorPoint; | - |
94 | qreal entryDuration; | - |
95 | qreal exitDuration; | - |
96 | QQmlNullableValue<qreal> endRotation; | - |
97 | int duration; | - |
98 | QEasingCurve easingCurve; | - |
99 | QHash<QQuickItem*, QQuickPathAnimationAnimator* > activeAnimations; | - |
100 | }; | - |
101 | - | |
102 | - | |
103 | - | |
104 | - | |
Switch to Source code | Preprocessed file |