Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquicktrailemitter_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | class QQuickTrailEmitter : public QQuickParticleEmitter | - | ||||||
5 | { | - | ||||||
6 | public: | - | ||||||
7 | #pragma GCC diagnostic push | - | ||||||
8 | - | |||||||
9 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||
10 | 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: | - | ||||||
11 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||
12 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||
13 | #pragma GCC diagnostic pop | - | ||||||
14 | struct QPrivateSignal {}; | - | ||||||
15 | - | |||||||
16 | - | |||||||
17 | - | |||||||
18 | - | |||||||
19 | - | |||||||
20 | - | |||||||
21 | - | |||||||
22 | public: | - | ||||||
23 | enum EmitSize { | - | ||||||
24 | ParticleSize = -2 | - | ||||||
25 | }; | - | ||||||
26 | friend constexpr const QMetaObject *qt_getEnumMetaObject(EmitSize) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(EmitSize) noexcept { return "EmitSize"; } | - | ||||||
27 | explicit QQuickTrailEmitter(QQuickItem *parent = 0); | - | ||||||
28 | void emitWindow(int timeStamp) override; | - | ||||||
29 | void reset() override; | - | ||||||
30 | - | |||||||
31 | int particlesPerParticlePerSecond() const | - | ||||||
32 | { | - | ||||||
33 | return never executed: m_particlesPerParticlePerSecond;return m_particlesPerParticlePerSecond; never executed: return m_particlesPerParticlePerSecond; | 0 | ||||||
34 | } | - | ||||||
35 | - | |||||||
36 | qreal emitterXVariation() const | - | ||||||
37 | { | - | ||||||
38 | return never executed: m_emitterXVariation;return m_emitterXVariation; never executed: return m_emitterXVariation; | 0 | ||||||
39 | } | - | ||||||
40 | - | |||||||
41 | qreal emitterYVariation() const | - | ||||||
42 | { | - | ||||||
43 | return never executed: m_emitterYVariation;return m_emitterYVariation; never executed: return m_emitterYVariation; | 0 | ||||||
44 | } | - | ||||||
45 | - | |||||||
46 | QString follow() const | - | ||||||
47 | { | - | ||||||
48 | return never executed: m_follow;return m_follow; never executed: return m_follow; | 0 | ||||||
49 | } | - | ||||||
50 | - | |||||||
51 | QQuickParticleExtruder* emissonShape() const | - | ||||||
52 | { | - | ||||||
53 | return never executed: m_emissionExtruder;return m_emissionExtruder; never executed: return m_emissionExtruder; | 0 | ||||||
54 | } | - | ||||||
55 | - | |||||||
56 | public : | - | ||||||
57 | void emitFollowParticles(QQmlV4Handle particles, QQmlV4Handle followed); | - | ||||||
58 | - | |||||||
59 | void particlesPerParticlePerSecondChanged(int arg); | - | ||||||
60 | - | |||||||
61 | void emitterXVariationChanged(qreal arg); | - | ||||||
62 | - | |||||||
63 | void emitterYVariationChanged(qreal arg); | - | ||||||
64 | - | |||||||
65 | void followChanged(const QString &arg); | - | ||||||
66 | - | |||||||
67 | void emissionShapeChanged(QQuickParticleExtruder* arg); | - | ||||||
68 | - | |||||||
69 | public : | - | ||||||
70 | - | |||||||
71 | void setParticlesPerParticlePerSecond(int arg) | - | ||||||
72 | { | - | ||||||
73 | if (m_particlesPerParticlePerSecond != arg
| 0-18 | ||||||
74 | m_particlesPerParticlePerSecond = arg; | - | ||||||
75 | particlesPerParticlePerSecondChanged(arg); | - | ||||||
76 | } executed 18 times by 2 tests: end of block Executed by:
| 18 | ||||||
77 | } executed 18 times by 2 tests: end of block Executed by:
| 18 | ||||||
78 | void setEmitterXVariation(qreal arg) | - | ||||||
79 | { | - | ||||||
80 | if (m_emitterXVariation != arg
| 0-8 | ||||||
81 | m_emitterXVariation = arg; | - | ||||||
82 | emitterXVariationChanged(arg); | - | ||||||
83 | } executed 8 times by 1 test: end of block Executed by:
| 8 | ||||||
84 | } executed 8 times by 1 test: end of block Executed by:
| 8 | ||||||
85 | - | |||||||
86 | void setEmitterYVariation(qreal arg) | - | ||||||
87 | { | - | ||||||
88 | if (m_emitterYVariation != arg
| 0-8 | ||||||
89 | m_emitterYVariation = arg; | - | ||||||
90 | emitterYVariationChanged(arg); | - | ||||||
91 | } executed 8 times by 1 test: end of block Executed by:
| 8 | ||||||
92 | } executed 8 times by 1 test: end of block Executed by:
| 8 | ||||||
93 | - | |||||||
94 | void setFollow(const QString &arg) | - | ||||||
95 | { | - | ||||||
96 | if (m_follow != arg
| 2-16 | ||||||
97 | m_follow = arg; | - | ||||||
98 | followChanged(arg); | - | ||||||
99 | } executed 16 times by 1 test: end of block Executed by:
| 16 | ||||||
100 | } executed 18 times by 2 tests: end of block Executed by:
| 18 | ||||||
101 | - | |||||||
102 | void setEmissionShape(QQuickParticleExtruder* arg) | - | ||||||
103 | { | - | ||||||
104 | if (m_emissionExtruder != arg
| 0-4 | ||||||
105 | m_emissionExtruder = arg; | - | ||||||
106 | emissionShapeChanged(arg); | - | ||||||
107 | } executed 4 times by 1 test: end of block Executed by:
| 4 | ||||||
108 | } executed 4 times by 1 test: end of block Executed by:
| 4 | ||||||
109 | - | |||||||
110 | private : | - | ||||||
111 | void recalcParticlesPerSecond(); | - | ||||||
112 | - | |||||||
113 | private: | - | ||||||
114 | QSet<QQuickParticleData*> m_pending; | - | ||||||
115 | QVector<qreal> m_lastEmission; | - | ||||||
116 | int m_particlesPerParticlePerSecond; | - | ||||||
117 | qreal m_lastTimeStamp; | - | ||||||
118 | qreal m_emitterXVariation; | - | ||||||
119 | qreal m_emitterYVariation; | - | ||||||
120 | QString m_follow; | - | ||||||
121 | int m_followCount; | - | ||||||
122 | QQuickParticleExtruder* m_emissionExtruder; | - | ||||||
123 | QQuickParticleExtruder* m_defaultEmissionExtruder; | - | ||||||
124 | bool isEmitFollowConnected(); | - | ||||||
125 | }; | - | ||||||
126 | - | |||||||
127 | - | |||||||
Switch to Source code | Preprocessed file |