OpenCoverage

qquickspritegoal_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickspritegoal_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QQuickStochasticEngine;-
5-
6class QQuickSpriteGoalAffector : public QQuickParticleAffector-
7{-
8 public:-
9#pragma GCC diagnostic push-
10 -
11#pragma GCC diagnostic ignored "-Wsuggest-override"-
12 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:-
13#pragma GCC diagnostic ignored "-Wattributes"-
14 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
15#pragma GCC diagnostic pop-
16 struct QPrivateSignal {};-
17 -
18 -
19 -
20public:-
21 explicit QQuickSpriteGoalAffector(QQuickItem *parent = 0);-
22-
23 QString goalState() const-
24 {-
25 return
never executed: return m_goalState;
m_goalState;
never executed: return m_goalState;
0
26 }-
27-
28 bool jump() const-
29 {-
30 return
never executed: return m_jump;
m_jump;
never executed: return m_jump;
0
31 }-
32 bool systemStates() const-
33 {-
34 return
never executed: return m_systemStates;
m_systemStates;
never executed: return m_systemStates;
0
35 }-
36-
37protected:-
38 bool affectParticle(QQuickParticleData *d, qreal dt) override;-
39-
40public :-
41-
42 void goalStateChanged(const QString &arg);-
43-
44 void jumpChanged(bool arg);-
45-
46 void systemStatesChanged(bool arg);-
47-
48public :-
49-
50void setGoalState(const QString &arg);-
51-
52void setJump(bool arg)-
53{-
54 if (m_jump != arg
m_jump != argDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickspritegoal
FALSEnever evaluated
) {
0-4
55 m_jump = arg;-
56 jumpChanged(arg);-
57 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickspritegoal
4
58}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickspritegoal
4
59-
60void setSystemStates(bool arg)-
61{-
62 if (m_systemStates != arg
m_systemStates != argDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
63-
64 qmlWarning(this) << "systemStates is deprecated and will be removed soon. Use GroupGoal instead.";-
65 m_systemStates = arg;-
66 systemStatesChanged(arg);-
67 }
never executed: end of block
0
68}
never executed: end of block
0
69-
70private:-
71 void updateStateIndex(QQuickStochasticEngine* e);-
72 QString m_goalState;-
73 int m_goalIdx;-
74 QQuickStochasticEngine* m_lastEngine;-
75 bool m_jump;-
76 bool m_systemStates;-
77-
78 bool m_notUsingEngine;-
79};-
80-
81-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0