Line | Source | Count |
1 | | - |
2 | QQuickParticleEmitter::QQuickParticleEmitter(QQuickItem *parent) : | - |
3 | QQuickItem(parent) | - |
4 | , m_particlesPerSecond(10) | - |
5 | , m_particleDuration(1000) | - |
6 | , m_particleDurationVariation(0) | - |
7 | , m_enabled(true) | - |
8 | , m_system(nullptr) | - |
9 | , m_extruder(nullptr) | - |
10 | , m_defaultExtruder(nullptr) | - |
11 | , m_velocity(&m_nullVector) | - |
12 | , m_acceleration(&m_nullVector) | - |
13 | , m_particleSize(16) | - |
14 | , m_particleEndSize(-1) | - |
15 | , m_particleSizeVariation(0) | - |
16 | , m_startTime(0) | - |
17 | , m_overwrite(true) | - |
18 | , m_pulseLeft(0) | - |
19 | , m_maxParticleCount(-1) | - |
20 | , m_velocity_from_movement(0) | - |
21 | , m_reset_last(true) | - |
22 | , m_last_timestamp(-1) | - |
23 | , m_last_emission(0) | - |
24 | , m_groupIdNeedRecalculation(false) | - |
25 | , m_groupId(QQuickParticleGroupData::DefaultGroupID) | - |
26 | | - |
27 | { | - |
28 | | - |
29 | connect(this, qFlagLocation("2""particlesPerSecondChanged(qreal)" "\0" __FILE__ ":" "246"), | - |
30 | this, qFlagLocation("2""particleCountChanged()" "\0" __FILE__ ":" "247")); | - |
31 | connect(this, qFlagLocation("2""particleDurationChanged(int)" "\0" __FILE__ ":" "248"), | - |
32 | this, qFlagLocation("2""particleCountChanged()" "\0" __FILE__ ":" "249")); | - |
33 | }executed 284 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
| 284 |
34 | | - |
35 | QQuickParticleEmitter::~QQuickParticleEmitter() | - |
36 | { | - |
37 | if (m_defaultExtruderTRUE | evaluated 68 times by 19 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | evaluated 216 times by 7 testsEvaluated by:- tst_examples
- tst_qquickellipseextruder
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlesystem
- tst_qquickrectangleextruder
- tst_qquicktrailemitter
|
) | 68-216 |
38 | delete m_defaultExtruder;executed 68 times by 19 tests: delete m_defaultExtruder; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 68 |
39 | }executed 284 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
| 284 |
40 | | - |
41 | bool QQuickParticleEmitter::isEmitConnected() | - |
42 | { | - |
43 | do { QObject *sender = (this); void (QQuickParticleEmitter::*signal)(QQmlV4Handle) = &QQuickParticleEmitter::emitParticles; static QMetaMethod method = QMetaMethod::fromSignal(signal); static int signalIdx = QMetaObjectPrivate::signalIndex(method); returnexecuted 25085 times by 23 tests: return QObjectPrivate::get(sender)->isSignalConnected(signalIdx); Executed by:- 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
QObjectPrivate::get(sender)->isSignalConnected(signalIdx);executed 25085 times by 23 tests: return QObjectPrivate::get(sender)->isSignalConnected(signalIdx); Executed by:- 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
} while (0); | 25085 |
44 | } never executed: end of block | 0 |
45 | | - |
46 | void QQuickParticleEmitter::reclaculateGroupId() const | - |
47 | { | - |
48 | if (!m_systemTRUE | never evaluated | FALSE | evaluated 524 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
|
) { | 0-524 |
49 | m_groupId = QQuickParticleGroupData::InvalidID; | - |
50 | return; never executed: return; | 0 |
51 | } | - |
52 | m_groupId = m_system->groupIds.value(group(), QQuickParticleGroupData::InvalidID); | - |
53 | m_groupIdNeedRecalculation = m_groupId == QQuickParticleGroupData::InvalidID; | - |
54 | }executed 524 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
| 524 |
55 | | - |
56 | void QQuickParticleEmitter::componentComplete() | - |
57 | { | - |
58 | if (!m_systemTRUE | evaluated 168 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 116 times by 1 test |
&& qobject_cast<QQuickParticleSystem*>(parentItem())TRUE | evaluated 160 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 8 times by 1 test |
) | 8-168 |
59 | setSystem(qobject_cast<QQuickParticleSystem*>(parentItem()));executed 160 times by 24 tests: setSystem(qobject_cast<QQuickParticleSystem*>(parentItem())); 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
| 160 |
60 | 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 | evaluated 8 times by 1 test |
) | 8-276 |
61 | m_system->finishRegisteringParticleEmitter(this);executed 276 times by 24 tests: m_system->finishRegisteringParticleEmitter(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 |
62 | QQuickItem::componentComplete(); | - |
63 | }executed 284 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
| 284 |
64 | | - |
65 | void QQuickParticleEmitter::setEnabled(bool arg) | - |
66 | { | - |
67 | if (m_enabled != argTRUE | evaluated 64 times by 1 test | FALSE | evaluated 22 times by 1 test |
) { | 22-64 |
68 | m_enabled = arg; | - |
69 | enabledChanged(arg); | - |
70 | }executed 64 times by 1 test: end of block | 64 |
71 | }executed 86 times by 1 test: end of block | 86 |
72 | | - |
73 | | - |
74 | QQuickParticleExtruder* QQuickParticleEmitter::effectiveExtruder() | - |
75 | { | - |
76 | if (m_extruderTRUE | evaluated 8480 times by 4 testsEvaluated by:- tst_qquickellipseextruder
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickrectangleextruder
| FALSE | evaluated 41968 times by 19 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 8480-41968 |
77 | returnexecuted 8480 times by 4 tests: return m_extruder; Executed by:- tst_qquickellipseextruder
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickrectangleextruder
m_extruder;executed 8480 times by 4 tests: return m_extruder; Executed by:- tst_qquickellipseextruder
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickrectangleextruder
| 8480 |
78 | if (!m_defaultExtruderTRUE | evaluated 68 times by 19 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| FALSE | evaluated 41900 times by 19 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
) | 68-41900 |
79 | m_defaultExtruder = new QQuickParticleExtruder;executed 68 times by 19 tests: m_defaultExtruder = new QQuickParticleExtruder; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 68 |
80 | returnexecuted 41968 times by 19 tests: return m_defaultExtruder; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
m_defaultExtruder;executed 41968 times by 19 tests: return m_defaultExtruder; Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 41968 |
81 | } | - |
82 | | - |
83 | void QQuickParticleEmitter::pulse(int milliseconds) | - |
84 | { | - |
85 | if (!m_enabledTRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
) | 0-4 |
86 | m_pulseLeft = milliseconds;executed 4 times by 1 test: m_pulseLeft = milliseconds; | 4 |
87 | }executed 4 times by 1 test: end of block | 4 |
88 | | - |
89 | void QQuickParticleEmitter::burst(int num) | - |
90 | { | - |
91 | m_burstQueue << qMakePair(num, QPointF(x(), y())); | - |
92 | }executed 2 times by 1 test: end of block | 2 |
93 | | - |
94 | void QQuickParticleEmitter::burst(int num, qreal x, qreal y) | - |
95 | { | - |
96 | m_burstQueue << qMakePair(num, QPointF(x, y)); | - |
97 | } never executed: end of block | 0 |
98 | | - |
99 | void QQuickParticleEmitter::setMaxParticleCount(int arg) | - |
100 | { | - |
101 | if (m_maxParticleCount != argTRUE | evaluated 22 times by 1 test | FALSE | never evaluated |
) { | 0-22 |
102 | if (arg < 0TRUE | never evaluated | FALSE | evaluated 22 times by 1 test |
&& m_maxParticleCount >= 0TRUE | never evaluated | FALSE | never evaluated |
){ | 0-22 |
103 | connect(this, qFlagLocation("2""particlesPerSecondChanged(qreal)" "\0" __FILE__ ":" "320"), | - |
104 | this, qFlagLocation("2""particleCountChanged()" "\0" __FILE__ ":" "321")); | - |
105 | connect(this, qFlagLocation("2""particleDurationChanged(int)" "\0" __FILE__ ":" "322"), | - |
106 | this, qFlagLocation("2""particleCountChanged()" "\0" __FILE__ ":" "323")); | - |
107 | } never executed: end of block else if (arg >= 0TRUE | evaluated 22 times by 1 test | FALSE | never evaluated |
&& m_maxParticleCount < 0TRUE | evaluated 22 times by 1 test | FALSE | never evaluated |
){ | 0-22 |
108 | disconnect(this, qFlagLocation("2""particlesPerSecondChanged(qreal)" "\0" __FILE__ ":" "325"), | - |
109 | this, qFlagLocation("2""particleCountChanged()" "\0" __FILE__ ":" "326")); | - |
110 | disconnect(this, qFlagLocation("2""particleDurationChanged(int)" "\0" __FILE__ ":" "327"), | - |
111 | this, qFlagLocation("2""particleCountChanged()" "\0" __FILE__ ":" "328")); | - |
112 | }executed 22 times by 1 test: end of block | 22 |
113 | m_overwrite = arg < 0; | - |
114 | m_maxParticleCount = arg; | - |
115 | maximumEmittedChanged(arg); | - |
116 | particleCountChanged(); | - |
117 | }executed 22 times by 1 test: end of block | 22 |
118 | }executed 22 times by 1 test: end of block | 22 |
119 | | - |
120 | void QQuickParticleEmitter::setVelocityFromMovement(qreal t) | - |
121 | { | - |
122 | if (t == m_velocity_from_movementTRUE | never evaluated | FALSE | evaluated 22 times by 1 test |
) | 0-22 |
123 | return; never executed: return; | 0 |
124 | m_velocity_from_movement = t; | - |
125 | velocityFromMovementChanged(); | - |
126 | }executed 22 times by 1 test: end of block | 22 |
127 | | - |
128 | void QQuickParticleEmitter::reset() | - |
129 | { | - |
130 | m_reset_last = true; | - |
131 | }executed 472 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
| 472 |
132 | | - |
133 | void QQuickParticleEmitter::emitWindow(int timeStamp) | - |
134 | { | - |
135 | if (m_system == nullptrTRUE | never evaluated | FALSE | evaluated 3235 times by 23 testsEvaluated by:- 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
|
) | 0-3235 |
136 | return; never executed: return; | 0 |
137 | if ((!m_enabledTRUE | never evaluated | FALSE | evaluated 3235 times by 23 testsEvaluated by:- 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 <= 0TRUE | never evaluated | FALSE | evaluated 3235 times by 23 testsEvaluated by:- 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_pulseLeftTRUE | never evaluated | FALSE | never evaluated |
&& m_burstQueue.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
){ | 0-3235 |
138 | m_reset_last = true; | - |
139 | return; never executed: return; | 0 |
140 | } | - |
141 | | - |
142 | if (m_reset_lastTRUE | evaluated 82 times by 23 testsEvaluated by:- 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 3153 times by 23 testsEvaluated by:- 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
|
) { | 82-3153 |
143 | m_last_emitter = m_last_last_emitter = QPointF(x(), y()); | - |
144 | if (m_last_timestamp == -1TRUE | evaluated 82 times by 23 testsEvaluated by:- 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-82 |
145 | m_last_timestamp = (timeStamp - m_startTime)/1000.;executed 82 times by 23 tests: m_last_timestamp = (timeStamp - m_startTime)/1000.; Executed by:- 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
| 82 |
146 | else | - |
147 | m_last_timestamp = timeStamp/1000.; never executed: m_last_timestamp = timeStamp/1000.; | 0 |
148 | m_last_emission = m_last_timestamp; | - |
149 | m_reset_last = false; | - |
150 | m_emitCap = -1; | - |
151 | }executed 82 times by 23 tests: end of block Executed by:- 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
| 82 |
152 | | - |
153 | if (m_pulseLeftTRUE | never evaluated | FALSE | evaluated 3235 times by 23 testsEvaluated by:- 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
|
){ | 0-3235 |
154 | m_pulseLeft -= timeStamp - m_last_timestamp * 1000.; | - |
155 | if (m_pulseLeft < 0TRUE | never evaluated | FALSE | never evaluated |
){ | 0 |
156 | if (!m_enabledTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
157 | timeStamp += m_pulseLeft; never executed: timeStamp += m_pulseLeft; | 0 |
158 | m_pulseLeft = 0; | - |
159 | } never executed: end of block | 0 |
160 | } never executed: end of block | 0 |
161 | qreal time = timeStamp / 1000.; | - |
162 | qreal particleRatio = 1. / m_particlesPerSecond; | - |
163 | qreal pt = m_last_emission; | - |
164 | qreal maxLife = (m_particleDuration + m_particleDurationVariation)/1000.0; | - |
165 | if (pt + maxLife < timeTRUE | never evaluated | FALSE | evaluated 3235 times by 23 testsEvaluated by:- 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
|
) | 0-3235 |
166 | pt = time - maxLife; never executed: pt = time - maxLife; | 0 |
167 | | - |
168 | qreal opt = pt; | - |
169 | qreal dt = time - m_last_timestamp; | - |
170 | if (!dtTRUE | evaluated 82 times by 23 testsEvaluated by:- 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 3153 times by 23 testsEvaluated by:- 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
|
) | 82-3153 |
171 | dt = 0.000001;executed 82 times by 23 tests: dt = 0.000001; Executed by:- 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
| 82 |
172 | | - |
173 | | - |
174 | qreal dex = (x() - m_last_emitter.x()); | - |
175 | qreal dey = (y() - m_last_emitter.y()); | - |
176 | | - |
177 | qreal ax = (m_last_last_emitter.x() + m_last_emitter.x()) / 2; | - |
178 | qreal bx = m_last_emitter.x(); | - |
179 | qreal cx = (x() + m_last_emitter.x()) / 2; | - |
180 | qreal ay = (m_last_last_emitter.y() + m_last_emitter.y()) / 2; | - |
181 | qreal by = m_last_emitter.y(); | - |
182 | qreal cy = (y() + m_last_emitter.y()) / 2; | - |
183 | | - |
184 | qreal sizeAtEnd = m_particleEndSize >= 0TRUE | never evaluated | FALSE | evaluated 3235 times by 23 testsEvaluated by:- 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_particleEndSize : m_particleSize; | 0-3235 |
185 | qreal emitter_x_offset = m_last_emitter.x() - x(); | - |
186 | qreal emitter_y_offset = m_last_emitter.y() - y(); | - |
187 | if (!m_burstQueue.isEmpty()TRUE | never evaluated | FALSE | evaluated 3235 times by 23 testsEvaluated by:- 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_pulseLeftTRUE | never evaluated | FALSE | never evaluated |
&& !m_enabledTRUE | never evaluated | FALSE | never evaluated |
) | 0-3235 |
188 | pt = time; never executed: pt = time; | 0 |
189 | | - |
190 | QList<QQuickParticleData*> toEmit; | - |
191 | | - |
192 | while ((pt < timeTRUE | evaluated 50448 times by 23 testsEvaluated by:- 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 3235 times by 23 testsEvaluated by:- 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_emitCapTRUE | evaluated 50448 times by 23 testsEvaluated by:- 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 |
) || !m_burstQueue.isEmpty()TRUE | never evaluated | FALSE | evaluated 3235 times by 23 testsEvaluated by:- 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
|
) { | 0-50448 |
193 | | - |
194 | QQuickParticleData* datum = m_system->newDatum(m_system->groupIds[m_group], !m_overwrite); | - |
195 | if (datumTRUE | evaluated 50448 times by 23 testsEvaluated by:- 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-50448 |
196 | qreal t = 1 - (pt - opt) / dt; | - |
197 | qreal vx = | - |
198 | - 2 * ax * (1 - t) | - |
199 | + 2 * bx * (1 - 2 * t) | - |
200 | + 2 * cx * t; | - |
201 | qreal vy = | - |
202 | - 2 * ay * (1 - t) | - |
203 | + 2 * by * (1 - 2 * t) | - |
204 | + 2 * cy * t; | - |
205 | | - |
206 | | - |
207 | | - |
208 | datum->t = pt; | - |
209 | datum->lifeSpan = | - |
210 | (m_particleDuration | - |
211 | + (QRandomGenerator::global()->bounded((m_particleDurationVariation*2) + 1) - m_particleDurationVariation)) | - |
212 | / 1000.0; | - |
213 | | - |
214 | if (datum->lifeSpan >= m_system->maxLifeTRUE | never evaluated | FALSE | evaluated 50448 times by 23 testsEvaluated by:- 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
|
){ | 0-50448 |
215 | datum->lifeSpan = m_system->maxLife; | - |
216 | if (m_emitCap == -1TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
217 | m_emitCap = particleCount(); never executed: m_emitCap = particleCount(); | 0 |
218 | m_emitCap--; | - |
219 | } never executed: end of block | 0 |
220 | | - |
221 | | - |
222 | QRectF boundsRect; | - |
223 | if (!m_burstQueue.isEmpty()TRUE | never evaluated | FALSE | evaluated 50448 times by 23 testsEvaluated by:- 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
|
){ | 0-50448 |
224 | boundsRect = QRectF(m_burstQueue.first().second.x() - x(), m_burstQueue.first().second.y() - y(), | - |
225 | width(), height()); | - |
226 | } never executed: end of block else { | 0 |
227 | boundsRect = QRectF(emitter_x_offset + dex * (pt - opt) / dt, emitter_y_offset + dey * (pt - opt) / dt | - |
228 | , width(), height()); | - |
229 | }executed 50448 times by 23 tests: end of block Executed by:- 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
| 50448 |
230 | QPointF newPos = effectiveExtruder()->extrude(boundsRect); | - |
231 | datum->x = newPos.x(); | - |
232 | datum->y = newPos.y(); | - |
233 | | - |
234 | | - |
235 | const QPointF &velocity = m_velocity->sample(newPos); | - |
236 | datum->vx = velocity.x() | - |
237 | + m_velocity_from_movement * vx; | - |
238 | datum->vy = velocity.y() | - |
239 | + m_velocity_from_movement * vy; | - |
240 | | - |
241 | | - |
242 | const QPointF &accel = m_acceleration->sample(newPos); | - |
243 | datum->ax = accel.x(); | - |
244 | datum->ay = accel.y(); | - |
245 | | - |
246 | | - |
247 | float sizeVariation = -m_particleSizeVariation | - |
248 | + QRandomGenerator::global()->bounded(m_particleSizeVariation * 2); | - |
249 | | - |
250 | float size = qMax((qreal)0.0 , m_particleSize + sizeVariation); | - |
251 | float endSize = qMax((qreal)0.0 , sizeAtEnd + sizeVariation); | - |
252 | | - |
253 | datum->size = size; | - |
254 | datum->endSize = endSize; | - |
255 | | - |
256 | toEmit << datum; | - |
257 | }executed 50448 times by 23 tests: end of block Executed by:- 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
| 50448 |
258 | if (m_burstQueue.isEmpty()TRUE | evaluated 50448 times by 23 testsEvaluated by:- 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-50448 |
259 | pt += particleRatio; | - |
260 | }executed 50448 times by 23 tests: end of block Executed by:- 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
else{ | 50448 |
261 | m_burstQueue.first().first--; | - |
262 | if (m_burstQueue.first().first <= 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
263 | m_burstQueue.pop_front(); never executed: m_burstQueue.pop_front(); | 0 |
264 | } never executed: end of block | 0 |
265 | } | - |
266 | | - |
267 | for (auto _container_ = QtPrivate::qMakeForeachContainer(toEmit); _container_.controlTRUE | evaluated 53683 times by 23 testsEvaluated by:- 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 |
&& _container_.i != _container_.eTRUE | evaluated 50448 times by 23 testsEvaluated by:- 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 3235 times by 23 testsEvaluated by:- 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
|
; ++_container_.i, _container_.control ^= 1) for (QQuickParticleData* d = *_container_.i; _container_.controlTRUE | evaluated 50448 times by 23 testsEvaluated by:- 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 50448 times by 23 testsEvaluated by:- 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
|
; _container_.control = 0) | 0-53683 |
268 | m_system->emitParticle(d, this);executed 50448 times by 23 tests: m_system->emitParticle(d, this); Executed by:- 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
| 50448 |
269 | | - |
270 | if (isEmitConnected()TRUE | never evaluated | FALSE | evaluated 3235 times by 23 testsEvaluated by:- 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
|
) { | 0-3235 |
271 | QQmlEngine *qmlEngine = ::qmlEngine(this); | - |
272 | QV4::ExecutionEngine *v4 = qmlEngine->handle(); | - |
273 | QV4::Scope scope(v4); | - |
274 | | - |
275 | | - |
276 | | - |
277 | QV4::ScopedArrayObject array(scope, v4->newArrayObject(toEmit.size())); | - |
278 | QV4::ScopedValue v(scope); | - |
279 | for (int i=0; i<toEmit.size()TRUE | never evaluated | FALSE | never evaluated |
; i++) | 0 |
280 | array->put(i, (v = toEmit[i]->v4Value(m_system))); never executed: array->put(i, (v = toEmit[i]->v4Value(m_system))); | 0 |
281 | | - |
282 | emitParticles(QQmlV4Handle(array)); | - |
283 | } never executed: end of block | 0 |
284 | | - |
285 | m_last_emission = pt; | - |
286 | | - |
287 | m_last_last_last_emitter = m_last_last_emitter; | - |
288 | m_last_last_emitter = m_last_emitter; | - |
289 | m_last_emitter = QPointF(x(), y()); | - |
290 | m_last_timestamp = time; | - |
291 | }executed 3235 times by 23 tests: end of block Executed by:- 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
| 3235 |
292 | | - |
293 | | - |
294 | | - |
295 | | - |
| | |