OpenCoverage

qquickage_p.h

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

Generated by Squish Coco 4.2.0