Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquicktargetdirection_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | class QQuickItem; | - | ||||||
4 | class QQuickTargetDirection : public QQuickDirection | - | ||||||
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 | - | |||||||
18 | - | |||||||
19 | - | |||||||
20 | - | |||||||
21 | - | |||||||
22 | - | |||||||
23 | - | |||||||
24 | - | |||||||
25 | - | |||||||
26 | - | |||||||
27 | public: | - | ||||||
28 | explicit QQuickTargetDirection(QObject *parent = 0); | - | ||||||
29 | QPointF sample(const QPointF &from) override; | - | ||||||
30 | - | |||||||
31 | qreal targetX() const | - | ||||||
32 | { | - | ||||||
33 | return never executed: m_targetX;return m_targetX; never executed: return m_targetX; | 0 | ||||||
34 | } | - | ||||||
35 | - | |||||||
36 | qreal targetY() const | - | ||||||
37 | { | - | ||||||
38 | return never executed: m_targetY;return m_targetY; never executed: return m_targetY; | 0 | ||||||
39 | } | - | ||||||
40 | - | |||||||
41 | qreal targetVariation() const | - | ||||||
42 | { | - | ||||||
43 | return never executed: m_targetVariation;return m_targetVariation; never executed: return m_targetVariation; | 0 | ||||||
44 | } | - | ||||||
45 | - | |||||||
46 | qreal magnitude() const | - | ||||||
47 | { | - | ||||||
48 | return never executed: m_magnitude;return m_magnitude; never executed: return m_magnitude; | 0 | ||||||
49 | } | - | ||||||
50 | - | |||||||
51 | bool proportionalMagnitude() const | - | ||||||
52 | { | - | ||||||
53 | return never executed: m_proportionalMagnitude;return m_proportionalMagnitude; never executed: return m_proportionalMagnitude; | 0 | ||||||
54 | } | - | ||||||
55 | - | |||||||
56 | qreal magnitudeVariation() const | - | ||||||
57 | { | - | ||||||
58 | return never executed: m_magnitudeVariation;return m_magnitudeVariation; never executed: return m_magnitudeVariation; | 0 | ||||||
59 | } | - | ||||||
60 | - | |||||||
61 | QQuickItem* targetItem() const | - | ||||||
62 | { | - | ||||||
63 | return never executed: m_targetItem;return m_targetItem; never executed: return m_targetItem; | 0 | ||||||
64 | } | - | ||||||
65 | - | |||||||
66 | public : | - | ||||||
67 | - | |||||||
68 | void targetXChanged(qreal arg); | - | ||||||
69 | - | |||||||
70 | void targetYChanged(qreal arg); | - | ||||||
71 | - | |||||||
72 | void targetVariationChanged(qreal arg); | - | ||||||
73 | - | |||||||
74 | void magnitudeChanged(qreal arg); | - | ||||||
75 | - | |||||||
76 | void proprotionalMagnitudeChanged(bool arg); | - | ||||||
77 | - | |||||||
78 | void magnitudeVariationChanged(qreal arg); | - | ||||||
79 | - | |||||||
80 | void targetItemChanged(QQuickItem* arg); | - | ||||||
81 | - | |||||||
82 | public : | - | ||||||
83 | void setTargetX(qreal arg) | - | ||||||
84 | { | - | ||||||
85 | if (m_targetX != arg
| 0-14 | ||||||
86 | m_targetX = arg; | - | ||||||
87 | targetXChanged(arg); | - | ||||||
88 | } executed 14 times by 1 test: end of block Executed by:
| 14 | ||||||
89 | } executed 14 times by 1 test: end of block Executed by:
| 14 | ||||||
90 | - | |||||||
91 | void setTargetY(qreal arg) | - | ||||||
92 | { | - | ||||||
93 | if (m_targetY != arg
| 0-14 | ||||||
94 | m_targetY = arg; | - | ||||||
95 | targetYChanged(arg); | - | ||||||
96 | } executed 14 times by 1 test: end of block Executed by:
| 14 | ||||||
97 | } executed 14 times by 1 test: end of block Executed by:
| 14 | ||||||
98 | - | |||||||
99 | void setTargetVariation(qreal arg) | - | ||||||
100 | { | - | ||||||
101 | if (m_targetVariation != arg
| 0-2 | ||||||
102 | m_targetVariation = arg; | - | ||||||
103 | targetVariationChanged(arg); | - | ||||||
104 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||
105 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||
106 | - | |||||||
107 | void setMagnitude(qreal arg) | - | ||||||
108 | { | - | ||||||
109 | if (m_magnitude != arg
| 0-16 | ||||||
110 | m_magnitude = arg; | - | ||||||
111 | magnitudeChanged(arg); | - | ||||||
112 | } executed 16 times by 2 tests: end of block Executed by:
| 16 | ||||||
113 | } executed 16 times by 2 tests: end of block Executed by:
| 16 | ||||||
114 | - | |||||||
115 | void setProportionalMagnitude(bool arg) | - | ||||||
116 | { | - | ||||||
117 | if (m_proportionalMagnitude != arg
| 0-8 | ||||||
118 | m_proportionalMagnitude = arg; | - | ||||||
119 | proprotionalMagnitudeChanged(arg); | - | ||||||
120 | } executed 8 times by 2 tests: end of block Executed by:
| 8 | ||||||
121 | } executed 8 times by 2 tests: end of block Executed by:
| 8 | ||||||
122 | - | |||||||
123 | void setMagnitudeVariation(qreal arg) | - | ||||||
124 | { | - | ||||||
125 | if (m_magnitudeVariation != arg
| 0-8 | ||||||
126 | m_magnitudeVariation = arg; | - | ||||||
127 | magnitudeVariationChanged(arg); | - | ||||||
128 | } executed 8 times by 1 test: end of block Executed by:
| 8 | ||||||
129 | } executed 8 times by 1 test: end of block Executed by:
| 8 | ||||||
130 | - | |||||||
131 | void setTargetItem(QQuickItem* arg) | - | ||||||
132 | { | - | ||||||
133 | if (m_targetItem != arg
| 0-2 | ||||||
134 | m_targetItem = arg; | - | ||||||
135 | targetItemChanged(arg); | - | ||||||
136 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||
137 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||
138 | - | |||||||
139 | private: | - | ||||||
140 | qreal m_targetX; | - | ||||||
141 | qreal m_targetY; | - | ||||||
142 | qreal m_targetVariation; | - | ||||||
143 | bool m_proportionalMagnitude; | - | ||||||
144 | qreal m_magnitude; | - | ||||||
145 | qreal m_magnitudeVariation; | - | ||||||
146 | QQuickItem *m_targetItem; | - | ||||||
147 | }; | - | ||||||
148 | - | |||||||
149 | - | |||||||
Switch to Source code | Preprocessed file |