OpenCoverage

moc_qquickspringanimation_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquickspringanimation_p.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3#pragma GCC diagnostic push-
4-
5-
6#pragma GCC diagnostic ignored "-Wdeprecated-declarations"-
7-
8struct qt_meta_stringdata_QQuickSpringAnimation_t {-
9 QByteArrayData data[11];-
10 char stringdata0[107];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQuickSpringAnimation_t qt_meta_stringdata_QQuickSpringAnimation = {-
18 {-
19{ { { -1 } }, 21, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQuickSpringAnimation_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 14, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQuickSpringAnimation_t-
29, -
30stringdata0-
31) -
32+ 22 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQuickSpringAnimation_t-
36, -
37stringdata0-
38) -
39+ 37 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 11, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQuickSpringAnimation_t-
43, -
44stringdata0-
45) -
46+ 38 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 11, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQuickSpringAnimation_t-
50, -
51stringdata0-
52) -
53+ 50 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 8, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QQuickSpringAnimation_t-
57, -
58stringdata0-
59) -
60+ 62 - 5 * sizeof(QByteArrayData)) },-
61{ { { -1 } }, 6, 0, 0, qptrdiff(-
62__builtin_offsetof (-
63qt_meta_stringdata_QQuickSpringAnimation_t-
64, -
65stringdata0-
66) -
67+ 71 - 6 * sizeof(QByteArrayData)) },-
68{ { { -1 } }, 7, 0, 0, qptrdiff(-
69__builtin_offsetof (-
70qt_meta_stringdata_QQuickSpringAnimation_t-
71, -
72stringdata0-
73) -
74+ 78 - 7 * sizeof(QByteArrayData)) },-
75{ { { -1 } }, 7, 0, 0, qptrdiff(-
76__builtin_offsetof (-
77qt_meta_stringdata_QQuickSpringAnimation_t-
78, -
79stringdata0-
80) -
81+ 86 - 8 * sizeof(QByteArrayData)) },-
82{ { { -1 } }, 7, 0, 0, qptrdiff(-
83__builtin_offsetof (-
84qt_meta_stringdata_QQuickSpringAnimation_t-
85, -
86stringdata0-
87) -
88+ 94 - 9 * sizeof(QByteArrayData)) },-
89{ { { -1 } }, 4, 0, 0, qptrdiff(-
90__builtin_offsetof (-
91qt_meta_stringdata_QQuickSpringAnimation_t-
92, -
93stringdata0-
94) -
95+ 102 - 10 * sizeof(QByteArrayData)) }-
96-
97 },-
98 "QQuickSpringAnimation\0modulusChanged\0"-
99 "\0massChanged\0syncChanged\0velocity\0"-
100 "spring\0damping\0epsilon\0modulus\0mass"-
101};-
102-
103-
104static const uint qt_meta_data_QQuickSpringAnimation[] = {-
105-
106-
107 7,-
108 0,-
109 0, 0,-
110 3, 14,-
111 6, 32,-
112 0, 0,-
113 0, 0,-
114 0,-
115 3,-
116-
117-
118 1, 0, 29, 2, 0x06 ,-
119 3, 0, 30, 2, 0x06 ,-
120 4, 0, 31, 2, 0x06 ,-
121-
122-
123 QMetaType::Void,-
124 QMetaType::Void,-
125 QMetaType::Void,-
126-
127-
128 5, QMetaType::QReal, 0x00095103,-
129 6, QMetaType::QReal, 0x00095103,-
130 7, QMetaType::QReal, 0x00095103,-
131 8, QMetaType::QReal, 0x00095103,-
132 9, QMetaType::QReal, 0x00495103,-
133 10, QMetaType::QReal, 0x00495103,-
134-
135-
136 0,-
137 0,-
138 0,-
139 0,-
140 0,-
141 1,-
142-
143 0-
144};-
145-
146void QQuickSpringAnimation::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
147{-
148 if (_c == QMetaObject::InvokeMetaMethod) {-
149 QQuickSpringAnimation *_t = static_cast<QQuickSpringAnimation *>(_o);-
150 (void)_t;-
151 switch (_id) {-
152 case 0: _t->modulusChanged(); break;-
153 case 1: _t->massChanged(); break;-
154 case 2: _t->syncChanged(); break;-
155 default: ;-
156 }-
157 } else if (_c == QMetaObject::IndexOfMethod) {-
158 int *result = reinterpret_cast<int *>(_a[0]);-
159 {-
160 using _t = void (QQuickSpringAnimation::*)();-
161 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickSpringAnimation::modulusChanged)) {-
162 *result = 0;-
163 return;-
164 }-
165 }-
166 {-
167 using _t = void (QQuickSpringAnimation::*)();-
168 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickSpringAnimation::massChanged)) {-
169 *result = 1;-
170 return;-
171 }-
172 }-
173 {-
174 using _t = void (QQuickSpringAnimation::*)();-
175 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickSpringAnimation::syncChanged)) {-
176 *result = 2;-
177 return;-
178 }-
179 }-
180 }-
181-
182 else if (_c == QMetaObject::ReadProperty) {-
183 QQuickSpringAnimation *_t = static_cast<QQuickSpringAnimation *>(_o);-
184 (void)_t;-
185 void *_v = _a[0];-
186 switch (_id) {-
187 case 0: *reinterpret_cast< qreal*>(_v) = _t->velocity(); break;-
188 case 1: *reinterpret_cast< qreal*>(_v) = _t->spring(); break;-
189 case 2: *reinterpret_cast< qreal*>(_v) = _t->damping(); break;-
190 case 3: *reinterpret_cast< qreal*>(_v) = _t->epsilon(); break;-
191 case 4: *reinterpret_cast< qreal*>(_v) = _t->modulus(); break;-
192 case 5: *reinterpret_cast< qreal*>(_v) = _t->mass(); break;-
193 default: break;-
194 }-
195 } else if (_c == QMetaObject::WriteProperty) {-
196 QQuickSpringAnimation *_t = static_cast<QQuickSpringAnimation *>(_o);-
197 (void)_t;-
198 void *_v = _a[0];-
199 switch (_id) {-
200 case 0: _t->setVelocity(*reinterpret_cast< qreal*>(_v)); break;-
201 case 1: _t->setSpring(*reinterpret_cast< qreal*>(_v)); break;-
202 case 2: _t->setDamping(*reinterpret_cast< qreal*>(_v)); break;-
203 case 3: _t->setEpsilon(*reinterpret_cast< qreal*>(_v)); break;-
204 case 4: _t->setModulus(*reinterpret_cast< qreal*>(_v)); break;-
205 case 5: _t->setMass(*reinterpret_cast< qreal*>(_v)); break;-
206 default: break;-
207 }-
208 } else if (_c == QMetaObject::ResetProperty) {-
209 }-
210-
211 (void)_a;;-
212}-
213-
214 const QMetaObject QQuickSpringAnimation::staticMetaObject = {-
215 { &QQuickNumberAnimation::staticMetaObject, qt_meta_stringdata_QQuickSpringAnimation.data,-
216 qt_meta_data_QQuickSpringAnimation, qt_static_metacall, nullptr, nullptr}-
217};-
218-
219-
220const QMetaObject *QQuickSpringAnimation::metaObject() const-
221{-
222 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
223}-
224-
225void *QQuickSpringAnimation::qt_metacast(const char *_clname)-
226{-
227 if (!_clname) return nullptr;-
228 if (!strcmp(_clname, qt_meta_stringdata_QQuickSpringAnimation.stringdata0))-
229 return static_cast<void*>(this);-
230 if (!strcmp(_clname, "org.qt-project.Qt.QQmlPropertyValueSource"))-
231 return static_cast< QQmlPropertyValueSource*>(this);-
232 return QQuickNumberAnimation::qt_metacast(_clname);-
233}-
234-
235int QQuickSpringAnimation::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
236{-
237 _id = QQuickNumberAnimation::qt_metacall(_c, _id, _a);-
238 if (_id < 0)-
239 return _id;-
240 if (_c == QMetaObject::InvokeMetaMethod) {-
241 if (_id < 3)-
242 qt_static_metacall(this, _c, _id, _a);-
243 _id -= 3;-
244 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
245 if (_id < 3)-
246 *reinterpret_cast<int*>(_a[0]) = -1;-
247 _id -= 3;-
248 }-
249-
250 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
251 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
252 qt_static_metacall(this, _c, _id, _a);-
253 _id -= 6;-
254 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
255 _id -= 6;-
256 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
257 _id -= 6;-
258 } else if (_c == QMetaObject::QueryPropertyStored) {-
259 _id -= 6;-
260 } else if (_c == QMetaObject::QueryPropertyEditable) {-
261 _id -= 6;-
262 } else if (_c == QMetaObject::QueryPropertyUser) {-
263 _id -= 6;-
264 }-
265-
266 return _id;-
267}-
268-
269-
270void QQuickSpringAnimation::modulusChanged()-
271{-
272 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
273}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickspringanimation
4
274-
275-
276void QQuickSpringAnimation::massChanged()-
277{-
278 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
279}
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qquickbehaviors
  • tst_qquickspringanimation
6
280-
281-
282void QQuickSpringAnimation::syncChanged()-
283{-
284 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
285}
never executed: end of block
0
286-
287#pragma GCC diagnostic pop-
288-
289-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0