Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickage_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | class QQuickAgeAffector : public QQuickParticleAffector | - | ||||||
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 | explicit QQuickAgeAffector(QQuickItem *parent = 0); | - | ||||||
20 | - | |||||||
21 | int lifeLeft() const | - | ||||||
22 | { | - | ||||||
23 | return never executed: m_lifeLeft;return m_lifeLeft; never executed: return m_lifeLeft; | 0 | ||||||
24 | } | - | ||||||
25 | - | |||||||
26 | bool advancePosition() const | - | ||||||
27 | { | - | ||||||
28 | return never executed: m_advancePosition;return m_advancePosition; never executed: return m_advancePosition; | 0 | ||||||
29 | } | - | ||||||
30 | - | |||||||
31 | protected: | - | ||||||
32 | bool affectParticle(QQuickParticleData *d, qreal dt) override; | - | ||||||
33 | - | |||||||
34 | public : | - | ||||||
35 | void lifeLeftChanged(int arg); | - | ||||||
36 | void advancePositionChanged(bool arg); | - | ||||||
37 | - | |||||||
38 | public : | - | ||||||
39 | void setLifeLeft(int arg) | - | ||||||
40 | { | - | ||||||
41 | if (m_lifeLeft != arg
| 0-8 | ||||||
42 | m_lifeLeft = arg; | - | ||||||
43 | lifeLeftChanged(arg); | - | ||||||
44 | } executed 8 times by 2 tests: end of block Executed by:
| 8 | ||||||
45 | } executed 8 times by 2 tests: end of block Executed by:
| 8 | ||||||
46 | - | |||||||
47 | void setAdvancePosition(bool arg) | - | ||||||
48 | { | - | ||||||
49 | if (m_advancePosition != arg
| 0-4 | ||||||
50 | m_advancePosition = arg; | - | ||||||
51 | advancePositionChanged(arg); | - | ||||||
52 | } executed 4 times by 2 tests: end of block Executed by:
| 4 | ||||||
53 | } executed 4 times by 2 tests: end of block Executed by:
| 4 | ||||||
54 | - | |||||||
55 | private: | - | ||||||
56 | int m_lifeLeft; | - | ||||||
57 | bool m_advancePosition; | - | ||||||
58 | }; | - | ||||||
59 | - | |||||||
60 | - | |||||||
Switch to Source code | Preprocessed file |