OpenCoverage

qquickfriction_p.h

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

Generated by Squish Coco 4.2.0