Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | class QQuickParticlePainter : 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 | public: | - |
19 | typedef QQuickParticleVarLengthArray<QQuickParticleGroupData::ID, 4> GroupIDs; | - |
20 | | - |
21 | public: | - |
22 | explicit QQuickParticlePainter(QQuickItem *parent = 0); | - |
23 | | - |
24 | void load(QQuickParticleData*); | - |
25 | void reload(QQuickParticleData*); | - |
26 | void setCount(int c); | - |
27 | | - |
28 | int count() const | - |
29 | { | - |
30 | returnexecuted 365 times by 22 tests: return m_count; Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- 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_count;executed 365 times by 22 tests: return m_count; Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 365 |
31 | } | - |
32 | | - |
33 | void performPendingCommits(); | - |
34 | QQuickParticleSystem* system() const | - |
35 | { | - |
36 | return never executed: return m_system; m_system;never executed: return m_system; | 0 |
37 | } | - |
38 | | - |
39 | QStringList groups() const | - |
40 | { | - |
41 | returnexecuted 1181 times by 24 tests: return m_groups; 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_groups;executed 1181 times by 24 tests: return m_groups; 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
| 1181 |
42 | } | - |
43 | | - |
44 | const GroupIDs &groupIds() const | - |
45 | { | - |
46 | if (m_groupIdsNeedRecalculationTRUE | evaluated 268 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 1119 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
|
) { | 268-1119 |
47 | recalculateGroupIds(); | - |
48 | }executed 268 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
| 268 |
49 | returnexecuted 1387 times by 24 tests: return m_groupIds; 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_groupIds;executed 1387 times by 24 tests: return m_groupIds; 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
| 1387 |
50 | } | - |
51 | | - |
52 | void itemChange(ItemChange, const ItemChangeData &) override; | - |
53 | | - |
54 | public : | - |
55 | void countChanged(); | - |
56 | void systemChanged(QQuickParticleSystem* arg); | - |
57 | | - |
58 | void groupsChanged(const QStringList &arg); | - |
59 | | - |
60 | public : | - |
61 | void setSystem(QQuickParticleSystem* arg); | - |
62 | | - |
63 | void setGroups(const QStringList &arg); | - |
64 | | - |
65 | void calcSystemOffset(bool resetPending = false); | - |
66 | | - |
67 | private : | - |
68 | virtual void sceneGraphInvalidated() {} | - |
69 | | - |
70 | protected: | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | virtual void reset(); | - |
76 | | - |
77 | void componentComplete() override; | - |
78 | virtual void initialize(int gIdx, int pIdx){ | - |
79 | (void)gIdx;; | - |
80 | (void)pIdx;; | - |
81 | } never executed: end of block | 0 |
82 | virtual void commit(int gIdx, int pIdx){ | - |
83 | | - |
84 | (void)gIdx;; | - |
85 | (void)pIdx;; | - |
86 | } never executed: end of block | 0 |
87 | | - |
88 | QQuickParticleSystem* m_system; | - |
89 | friend class QQuickParticleSystem; | - |
90 | int m_count; | - |
91 | bool m_pleaseReset; | - |
92 | QPointF m_systemOffset; | - |
93 | | - |
94 | QQuickWindow *m_window; | - |
95 | | - |
96 | private: | - |
97 | void recalculateGroupIds() const; | - |
98 | | - |
99 | private: | - |
100 | QStringList m_groups; | - |
101 | QSet<QPair<int,int> > m_pendingCommits; | - |
102 | mutable GroupIDs m_groupIds; | - |
103 | mutable bool m_groupIdsNeedRecalculation; | - |
104 | }; | - |
105 | | - |
106 | | - |
| | |