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