Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | class __attribute__((visibility("default"))) QQuickParticleEmitter : public QQuickItem | - |
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 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | public: | - |
35 | explicit QQuickParticleEmitter(QQuickItem *parent = 0); | - |
36 | virtual ~QQuickParticleEmitter(); | - |
37 | virtual void emitWindow(int timeStamp); | - |
38 | | - |
39 | enum Lifetime { | - |
40 | InfiniteLife = QQuickParticleSystem::maxLife | - |
41 | }; | - |
42 | friend constexpr const QMetaObject *qt_getEnumMetaObject(Lifetime) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(Lifetime) noexcept { return "Lifetime"; } | - |
43 | | - |
44 | bool enabled() const | - |
45 | { | - |
46 | return never executed: return m_enabled; m_enabled;never executed: return m_enabled; | 0 |
47 | } | - |
48 | | - |
49 | qreal particlesPerSecond() const | - |
50 | { | - |
51 | returnexecuted 4 times by 1 test: return m_particlesPerSecond; m_particlesPerSecond;executed 4 times by 1 test: return m_particlesPerSecond; | 4 |
52 | } | - |
53 | | - |
54 | int particleDuration() const | - |
55 | { | - |
56 | return never executed: return m_particleDuration; m_particleDuration;never executed: return m_particleDuration; | 0 |
57 | } | - |
58 | | - |
59 | QQuickParticleSystem* system() const | - |
60 | { | - |
61 | return never executed: return m_system; m_system;never executed: return m_system; | 0 |
62 | } | - |
63 | | - |
64 | QString group() const | - |
65 | { | - |
66 | returnexecuted 610 times by 24 tests: return m_group; Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
m_group;executed 610 times by 24 tests: return m_group; Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 610 |
67 | } | - |
68 | | - |
69 | QQuickParticleGroupData::ID groupId() const | - |
70 | { | - |
71 | if (m_groupIdNeedRecalculationTRUE | evaluated 280 times by 24 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | evaluated 546 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktrailemitter
|
) | 280-546 |
72 | reclaculateGroupId();executed 280 times by 24 tests: reclaculateGroupId(); Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 280 |
73 | returnexecuted 826 times by 24 tests: return m_groupId; Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
m_groupId;executed 826 times by 24 tests: return m_groupId; Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 826 |
74 | } | - |
75 | | - |
76 | int particleDurationVariation() const | - |
77 | { | - |
78 | return never executed: return m_particleDurationVariation; m_particleDurationVariation;never executed: return m_particleDurationVariation; | 0 |
79 | } | - |
80 | | - |
81 | qreal velocityFromMovement() const { return never executed: return m_velocity_from_movement; m_velocity_from_movement;never executed: return m_velocity_from_movement; } | 0 |
82 | void setVelocityFromMovement(qreal s); | - |
83 | void componentComplete() override; | - |
84 | public : | - |
85 | void emitParticles(QQmlV4Handle particles); | - |
86 | void particlesPerSecondChanged(qreal); | - |
87 | void particleDurationChanged(int); | - |
88 | void enabledChanged(bool); | - |
89 | | - |
90 | void systemChanged(QQuickParticleSystem* arg); | - |
91 | | - |
92 | void groupChanged(const QString &arg); | - |
93 | | - |
94 | void particleDurationVariationChanged(int arg); | - |
95 | | - |
96 | void extruderChanged(QQuickParticleExtruder* arg); | - |
97 | | - |
98 | void particleSizeChanged(qreal arg); | - |
99 | | - |
100 | void particleEndSizeChanged(qreal arg); | - |
101 | | - |
102 | void particleSizeVariationChanged(qreal arg); | - |
103 | | - |
104 | void velocityChanged(QQuickDirection * arg); | - |
105 | | - |
106 | void accelerationChanged(QQuickDirection * arg); | - |
107 | | - |
108 | void maximumEmittedChanged(int arg); | - |
109 | void particleCountChanged(); | - |
110 | | - |
111 | void velocityFromMovementChanged(); | - |
112 | | - |
113 | void startTimeChanged(int arg); | - |
114 | | - |
115 | public : | - |
116 | void pulse(int milliseconds); | - |
117 | void burst(int num); | - |
118 | void burst(int num, qreal x, qreal y); | - |
119 | | - |
120 | void setEnabled(bool arg); | - |
121 | | - |
122 | void setParticlesPerSecond(qreal arg) | - |
123 | { | - |
124 | if (m_particlesPerSecond != argTRUE | evaluated 278 times by 24 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | evaluated 4 times by 1 test |
) { | 4-278 |
125 | m_particlesPerSecond = arg; | - |
126 | particlesPerSecondChanged(arg); | - |
127 | }executed 278 times by 24 tests: end of block Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 278 |
128 | }executed 282 times by 24 tests: end of block Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 282 |
129 | | - |
130 | void setParticleDuration(int arg) | - |
131 | { | - |
132 | if (m_particleDuration != argTRUE | evaluated 276 times by 24 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | evaluated 6 times by 1 test |
) { | 6-276 |
133 | m_particleDuration = arg; | - |
134 | particleDurationChanged(arg); | - |
135 | }executed 276 times by 24 tests: end of block Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 276 |
136 | }executed 282 times by 24 tests: end of block Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 282 |
137 | | - |
138 | void setSystem(QQuickParticleSystem* arg) | - |
139 | { | - |
140 | if (m_system != argTRUE | evaluated 276 times by 24 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | never evaluated |
) { | 0-276 |
141 | m_system = arg; | - |
142 | m_groupIdNeedRecalculation = true; | - |
143 | if (m_systemTRUE | evaluated 276 times by 24 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | never evaluated |
) | 0-276 |
144 | m_system->registerParticleEmitter(this);executed 276 times by 24 tests: m_system->registerParticleEmitter(this); Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 276 |
145 | systemChanged(arg); | - |
146 | }executed 276 times by 24 tests: end of block Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 276 |
147 | }executed 276 times by 24 tests: end of block Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 276 |
148 | | - |
149 | void setGroup(const QString &arg) | - |
150 | { | - |
151 | if (m_group != argTRUE | evaluated 122 times by 8 testsEvaluated by:- tst_examples
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgroupgoal
- tst_qquicklineextruder
- tst_qquickparticlegroup
- tst_qquickrectangleextruder
- tst_qquicktrailemitter
| FALSE | evaluated 2 times by 1 test |
) { | 2-122 |
152 | m_group = arg; | - |
153 | m_groupIdNeedRecalculation = true; | - |
154 | groupChanged(arg); | - |
155 | }executed 122 times by 8 tests: end of block Executed by:- tst_examples
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgroupgoal
- tst_qquicklineextruder
- tst_qquickparticlegroup
- tst_qquickrectangleextruder
- tst_qquicktrailemitter
| 122 |
156 | }executed 124 times by 8 tests: end of block Executed by:- tst_examples
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgroupgoal
- tst_qquicklineextruder
- tst_qquickparticlegroup
- tst_qquickrectangleextruder
- tst_qquicktrailemitter
| 124 |
157 | | - |
158 | void setParticleDurationVariation(int arg) | - |
159 | { | - |
160 | if (m_particleDurationVariation != argTRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
) { | 0-8 |
161 | m_particleDurationVariation = arg; | - |
162 | particleDurationVariationChanged(arg); | - |
163 | }executed 8 times by 1 test: end of block | 8 |
164 | }executed 8 times by 1 test: end of block | 8 |
165 | void setExtruder(QQuickParticleExtruder* arg) | - |
166 | { | - |
167 | if (m_extruder != argTRUE | evaluated 32 times by 5 testsEvaluated by:- tst_examples
- tst_qquickellipseextruder
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickrectangleextruder
| FALSE | never evaluated |
) { | 0-32 |
168 | m_extruder = arg; | - |
169 | extruderChanged(arg); | - |
170 | }executed 32 times by 5 tests: end of block Executed by:- tst_examples
- tst_qquickellipseextruder
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickrectangleextruder
| 32 |
171 | }executed 32 times by 5 tests: end of block Executed by:- tst_examples
- tst_qquickellipseextruder
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickrectangleextruder
| 32 |
172 | | - |
173 | void setParticleSize(qreal arg) | - |
174 | { | - |
175 | if (m_particleSize != argTRUE | evaluated 244 times by 24 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | evaluated 30 times by 1 test |
) { | 30-244 |
176 | m_particleSize = arg; | - |
177 | particleSizeChanged(arg); | - |
178 | }executed 244 times by 24 tests: end of block Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 244 |
179 | }executed 274 times by 24 tests: end of block Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 274 |
180 | | - |
181 | void setParticleEndSize(qreal arg) | - |
182 | { | - |
183 | if (m_particleEndSize != argTRUE | evaluated 112 times by 1 test | FALSE | never evaluated |
) { | 0-112 |
184 | m_particleEndSize = arg; | - |
185 | particleEndSizeChanged(arg); | - |
186 | }executed 112 times by 1 test: end of block | 112 |
187 | }executed 112 times by 1 test: end of block | 112 |
188 | | - |
189 | void setParticleSizeVariation(qreal arg) | - |
190 | { | - |
191 | if (m_particleSizeVariation != argTRUE | evaluated 84 times by 1 test | FALSE | never evaluated |
) { | 0-84 |
192 | m_particleSizeVariation = arg; | - |
193 | particleSizeVariationChanged(arg); | - |
194 | }executed 84 times by 1 test: end of block | 84 |
195 | }executed 84 times by 1 test: end of block | 84 |
196 | | - |
197 | void setVelocity(QQuickDirection * arg) | - |
198 | { | - |
199 | if (m_velocity != argTRUE | evaluated 180 times by 8 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickfriction
- tst_qquickpointdirection
- tst_qquicktargetdirection
- tst_qquicktrailemitter
| FALSE | never evaluated |
) { | 0-180 |
200 | m_velocity = arg; | - |
201 | velocityChanged(arg); | - |
202 | }executed 180 times by 8 tests: end of block Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickfriction
- tst_qquickpointdirection
- tst_qquicktargetdirection
- tst_qquicktrailemitter
| 180 |
203 | }executed 180 times by 8 tests: end of block Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickfriction
- tst_qquickpointdirection
- tst_qquicktargetdirection
- tst_qquicktrailemitter
| 180 |
204 | | - |
205 | void setAcceleration(QQuickDirection * arg) | - |
206 | { | - |
207 | if (m_acceleration != argTRUE | evaluated 74 times by 4 testsEvaluated by:- tst_examples
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickpointdirection
| FALSE | never evaluated |
) { | 0-74 |
208 | m_acceleration = arg; | - |
209 | accelerationChanged(arg); | - |
210 | }executed 74 times by 4 tests: end of block Executed by:- tst_examples
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickpointdirection
| 74 |
211 | }executed 74 times by 4 tests: end of block Executed by:- tst_examples
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickpointdirection
| 74 |
212 | | - |
213 | void setMaxParticleCount(int arg); | - |
214 | | - |
215 | void setStartTime(int arg) | - |
216 | { | - |
217 | if (m_startTime != argTRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
) { | 0-6 |
218 | m_startTime = arg; | - |
219 | startTimeChanged(arg); | - |
220 | }executed 6 times by 1 test: end of block | 6 |
221 | }executed 6 times by 1 test: end of block | 6 |
222 | | - |
223 | virtual void reset(); | - |
224 | public: | - |
225 | int particleCount() const | - |
226 | { | - |
227 | if (m_maxParticleCount >= 0TRUE | evaluated 30 times by 1 test | FALSE | evaluated 722 times by 24 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 30-722 |
228 | returnexecuted 30 times by 1 test: return m_maxParticleCount; m_maxParticleCount;executed 30 times by 1 test: return m_maxParticleCount; | 30 |
229 | returnexecuted 722 times by 24 tests: return m_particlesPerSecond*((m_particleDuration+m_particleDurationVariation)/1000.0); Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
m_particlesPerSecond*((m_particleDuration+m_particleDurationVariation)/1000.0);executed 722 times by 24 tests: return m_particlesPerSecond*((m_particleDuration+m_particleDurationVariation)/1000.0); Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 722 |
230 | } | - |
231 | | - |
232 | QQuickParticleExtruder* extruder() const | - |
233 | { | - |
234 | return never executed: return m_extruder; m_extruder;never executed: return m_extruder; | 0 |
235 | } | - |
236 | | - |
237 | qreal particleSize() const | - |
238 | { | - |
239 | return never executed: return m_particleSize; m_particleSize;never executed: return m_particleSize; | 0 |
240 | } | - |
241 | | - |
242 | qreal particleEndSize() const | - |
243 | { | - |
244 | return never executed: return m_particleEndSize; m_particleEndSize;never executed: return m_particleEndSize; | 0 |
245 | } | - |
246 | | - |
247 | qreal particleSizeVariation() const | - |
248 | { | - |
249 | return never executed: return m_particleSizeVariation; m_particleSizeVariation;never executed: return m_particleSizeVariation; | 0 |
250 | } | - |
251 | | - |
252 | QQuickDirection * velocity() const | - |
253 | { | - |
254 | return never executed: return m_velocity; m_velocity;never executed: return m_velocity; | 0 |
255 | } | - |
256 | | - |
257 | QQuickDirection * acceleration() const | - |
258 | { | - |
259 | return never executed: return m_acceleration; m_acceleration;never executed: return m_acceleration; | 0 |
260 | } | - |
261 | | - |
262 | int maxParticleCount() const | - |
263 | { | - |
264 | return never executed: return m_maxParticleCount; m_maxParticleCount;never executed: return m_maxParticleCount; | 0 |
265 | } | - |
266 | | - |
267 | int startTime() const | - |
268 | { | - |
269 | return never executed: return m_startTime; m_startTime;never executed: return m_startTime; | 0 |
270 | } | - |
271 | | - |
272 | void reclaculateGroupId() const; | - |
273 | | - |
274 | protected: | - |
275 | qreal m_particlesPerSecond; | - |
276 | int m_particleDuration; | - |
277 | int m_particleDurationVariation; | - |
278 | bool m_enabled; | - |
279 | QQuickParticleSystem* m_system; | - |
280 | QQuickParticleExtruder* m_extruder; | - |
281 | QQuickParticleExtruder* m_defaultExtruder; | - |
282 | QQuickParticleExtruder* effectiveExtruder(); | - |
283 | QQuickDirection * m_velocity; | - |
284 | QQuickDirection * m_acceleration; | - |
285 | qreal m_particleSize; | - |
286 | qreal m_particleEndSize; | - |
287 | qreal m_particleSizeVariation; | - |
288 | | - |
289 | qreal m_velocityFromMovement; | - |
290 | int m_startTime; | - |
291 | bool m_overwrite; | - |
292 | | - |
293 | int m_pulseLeft; | - |
294 | QList<QPair<int, QPointF > > m_burstQueue; | - |
295 | int m_maxParticleCount; | - |
296 | | - |
297 | | - |
298 | qreal m_velocity_from_movement; | - |
299 | | - |
300 | int m_emitCap; | - |
301 | bool m_reset_last; | - |
302 | qreal m_last_timestamp; | - |
303 | qreal m_last_emission; | - |
304 | | - |
305 | QPointF m_last_emitter; | - |
306 | QPointF m_last_last_emitter; | - |
307 | QPointF m_last_last_last_emitter; | - |
308 | | - |
309 | bool isEmitConnected(); | - |
310 | | - |
311 | private: | - |
312 | QString m_group; | - |
313 | mutable bool m_groupIdNeedRecalculation; | - |
314 | mutable QQuickParticleGroupData::ID m_groupId; | - |
315 | QQuickDirection m_nullVector; | - |
316 | | - |
317 | }; | - |
318 | | - |
319 | | - |
| | |