Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickspritegoal_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | class QQuickStochasticEngine; | - | ||||||
5 | - | |||||||
6 | class 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 | - | |||||||
20 | public: | - | ||||||
21 | explicit QQuickSpriteGoalAffector(QQuickItem *parent = 0); | - | ||||||
22 | - | |||||||
23 | QString goalState() const | - | ||||||
24 | { | - | ||||||
25 | return never executed: m_goalState;return m_goalState; never executed: return m_goalState; | 0 | ||||||
26 | } | - | ||||||
27 | - | |||||||
28 | bool jump() const | - | ||||||
29 | { | - | ||||||
30 | return never executed: m_jump;return m_jump; never executed: return m_jump; | 0 | ||||||
31 | } | - | ||||||
32 | bool systemStates() const | - | ||||||
33 | { | - | ||||||
34 | return never executed: m_systemStates;return m_systemStates; never executed: return m_systemStates; | 0 | ||||||
35 | } | - | ||||||
36 | - | |||||||
37 | protected: | - | ||||||
38 | bool affectParticle(QQuickParticleData *d, qreal dt) override; | - | ||||||
39 | - | |||||||
40 | public : | - | ||||||
41 | - | |||||||
42 | void goalStateChanged(const QString &arg); | - | ||||||
43 | - | |||||||
44 | void jumpChanged(bool arg); | - | ||||||
45 | - | |||||||
46 | void systemStatesChanged(bool arg); | - | ||||||
47 | - | |||||||
48 | public : | - | ||||||
49 | - | |||||||
50 | void setGoalState(const QString &arg); | - | ||||||
51 | - | |||||||
52 | void setJump(bool arg) | - | ||||||
53 | { | - | ||||||
54 | if (m_jump != arg
| 0-4 | ||||||
55 | m_jump = arg; | - | ||||||
56 | jumpChanged(arg); | - | ||||||
57 | } executed 4 times by 2 tests: end of block Executed by:
| 4 | ||||||
58 | } executed 4 times by 2 tests: end of block Executed by:
| 4 | ||||||
59 | - | |||||||
60 | void setSystemStates(bool arg) | - | ||||||
61 | { | - | ||||||
62 | if (m_systemStates != arg
| 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 | - | |||||||
70 | private: | - | ||||||
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 code | Preprocessed file |