OpenCoverage

moc_qquickcustomaffector_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/.moc/moc_qquickcustomaffector_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_QQuickCustomAffector_t {-
9 QByteArrayData data[20];-
10 char stringdata0[245];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQuickCustomAffector_t qt_meta_stringdata_QQuickCustomAffector = {-
18 {-
19{ { { -1 } }, 20, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQuickCustomAffector_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 15, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQuickCustomAffector_t-
29, -
30stringdata0-
31) -
32+ 21 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQuickCustomAffector_t-
36, -
37stringdata0-
38) -
39+ 37 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 12, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQuickCustomAffector_t-
43, -
44stringdata0-
45) -
46+ 38 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 9, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQuickCustomAffector_t-
50, -
51stringdata0-
52) -
53+ 51 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 2, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QQuickCustomAffector_t-
57, -
58stringdata0-
59) -
60+ 61 - 5 * sizeof(QByteArrayData)) },-
61{ { { -1 } }, 15, 0, 0, qptrdiff(-
62__builtin_offsetof (-
63qt_meta_stringdata_QQuickCustomAffector_t-
64, -
65stringdata0-
66) -
67+ 64 - 6 * sizeof(QByteArrayData)) },-
68{ { { -1 } }, 16, 0, 0, qptrdiff(-
69__builtin_offsetof (-
70qt_meta_stringdata_QQuickCustomAffector_t-
71, -
72stringdata0-
73) -
74+ 80 - 7 * sizeof(QByteArrayData)) },-
75{ { { -1 } }, 3, 0, 0, qptrdiff(-
76__builtin_offsetof (-
77qt_meta_stringdata_QQuickCustomAffector_t-
78, -
79stringdata0-
80) -
81+ 97 - 8 * sizeof(QByteArrayData)) },-
82{ { { -1 } }, 15, 0, 0, qptrdiff(-
83__builtin_offsetof (-
84qt_meta_stringdata_QQuickCustomAffector_t-
85, -
86stringdata0-
87) -
88+ 101 - 9 * sizeof(QByteArrayData)) },-
89{ { { -1 } }, 19, 0, 0, qptrdiff(-
90__builtin_offsetof (-
91qt_meta_stringdata_QQuickCustomAffector_t-
92, -
93stringdata0-
94) -
95+ 117 - 10 * sizeof(QByteArrayData)) },-
96{ { { -1 } }, 15, 0, 0, qptrdiff(-
97__builtin_offsetof (-
98qt_meta_stringdata_QQuickCustomAffector_t-
99, -
100stringdata0-
101) -
102+ 137 - 11 * sizeof(QByteArrayData)) },-
103{ { { -1 } }, 11, 0, 0, qptrdiff(-
104__builtin_offsetof (-
105qt_meta_stringdata_QQuickCustomAffector_t-
106, -
107stringdata0-
108) -
109+ 153 - 12 * sizeof(QByteArrayData)) },-
110{ { { -1 } }, 11, 0, 0, qptrdiff(-
111__builtin_offsetof (-
112qt_meta_stringdata_QQuickCustomAffector_t-
113, -
114stringdata0-
115) -
116+ 165 - 13 * sizeof(QByteArrayData)) },-
117{ { { -1 } }, 15, 0, 0, qptrdiff(-
118__builtin_offsetof (-
119qt_meta_stringdata_QQuickCustomAffector_t-
120, -
121stringdata0-
122) -
123+ 177 - 14 * sizeof(QByteArrayData)) },-
124{ { { -1 } }, 11, 0, 0, qptrdiff(-
125__builtin_offsetof (-
126qt_meta_stringdata_QQuickCustomAffector_t-
127, -
128stringdata0-
129) -
130+ 193 - 15 * sizeof(QByteArrayData)) },-
131{ { { -1 } }, 8, 0, 0, qptrdiff(-
132__builtin_offsetof (-
133qt_meta_stringdata_QQuickCustomAffector_t-
134, -
135stringdata0-
136) -
137+ 205 - 16 * sizeof(QByteArrayData)) },-
138{ { { -1 } }, 8, 0, 0, qptrdiff(-
139__builtin_offsetof (-
140qt_meta_stringdata_QQuickCustomAffector_t-
141, -
142stringdata0-
143) -
144+ 214 - 17 * sizeof(QByteArrayData)) },-
145{ { { -1 } }, 8, 0, 0, qptrdiff(-
146__builtin_offsetof (-
147qt_meta_stringdata_QQuickCustomAffector_t-
148, -
149stringdata0-
150) -
151+ 223 - 18 * sizeof(QByteArrayData)) },-
152{ { { -1 } }, 12, 0, 0, qptrdiff(-
153__builtin_offsetof (-
154qt_meta_stringdata_QQuickCustomAffector_t-
155, -
156stringdata0-
157) -
158+ 232 - 19 * sizeof(QByteArrayData)) }-
159-
160 },-
161 "QQuickCustomAffector\0affectParticles\0"-
162 "\0QQmlV4Handle\0particles\0dt\0positionChanged\0"-
163 "QQuickDirection*\0arg\0velocityChanged\0"-
164 "accelerationChanged\0relativeChanged\0"-
165 "setPosition\0setVelocity\0setAcceleration\0"-
166 "setRelative\0relative\0position\0velocity\0"-
167 "acceleration"-
168};-
169-
170-
171static const uint qt_meta_data_QQuickCustomAffector[] = {-
172-
173-
174 7,-
175 0,-
176 0, 0,-
177 9, 14,-
178 4, 88,-
179 0, 0,-
180 0, 0,-
181 0,-
182 5,-
183-
184-
185 1, 2, 59, 2, 0x06 ,-
186 6, 1, 64, 2, 0x06 ,-
187 9, 1, 67, 2, 0x06 ,-
188 10, 1, 70, 2, 0x06 ,-
189 11, 1, 73, 2, 0x06 ,-
190-
191-
192 12, 1, 76, 2, 0x0a ,-
193 13, 1, 79, 2, 0x0a ,-
194 14, 1, 82, 2, 0x0a ,-
195 15, 1, 85, 2, 0x0a ,-
196-
197-
198 QMetaType::Void, 0x80000000 | 3, QMetaType::QReal, 4, 5,-
199 QMetaType::Void, 0x80000000 | 7, 8,-
200 QMetaType::Void, 0x80000000 | 7, 8,-
201 QMetaType::Void, 0x80000000 | 7, 8,-
202 QMetaType::Void, QMetaType::Bool, 8,-
203-
204-
205 QMetaType::Void, 0x80000000 | 7, 8,-
206 QMetaType::Void, 0x80000000 | 7, 8,-
207 QMetaType::Void, 0x80000000 | 7, 8,-
208 QMetaType::Void, QMetaType::Bool, 8,-
209-
210-
211 16, QMetaType::Bool, 0x00495103,-
212 17, 0x80000000 | 7, 0x0049510f,-
213 18, 0x80000000 | 7, 0x0049510f,-
214 19, 0x80000000 | 7, 0x0049510f,-
215-
216-
217 4,-
218 1,-
219 2,-
220 3,-
221-
222 0-
223};-
224-
225void QQuickCustomAffector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
226{-
227 if (_c == QMetaObject::InvokeMetaMethod) {-
228 QQuickCustomAffector *_t = static_cast<QQuickCustomAffector *>(_o);-
229 (void)_t;-
230 switch (_id) {-
231 case 0: _t->affectParticles((*reinterpret_cast< QQmlV4Handle(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2]))); break;-
232 case 1: _t->positionChanged((*reinterpret_cast< QQuickDirection*(*)>(_a[1]))); break;-
233 case 2: _t->velocityChanged((*reinterpret_cast< QQuickDirection*(*)>(_a[1]))); break;-
234 case 3: _t->accelerationChanged((*reinterpret_cast< QQuickDirection*(*)>(_a[1]))); break;-
235 case 4: _t->relativeChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;-
236 case 5: _t->setPosition((*reinterpret_cast< QQuickDirection*(*)>(_a[1]))); break;-
237 case 6: _t->setVelocity((*reinterpret_cast< QQuickDirection*(*)>(_a[1]))); break;-
238 case 7: _t->setAcceleration((*reinterpret_cast< QQuickDirection*(*)>(_a[1]))); break;-
239 case 8: _t->setRelative((*reinterpret_cast< bool(*)>(_a[1]))); break;-
240 default: ;-
241 }-
242 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
243 switch (_id) {-
244 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
245 case 0:-
246 switch (*reinterpret_cast<int*>(_a[1])) {-
247 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
248 case 0:-
249 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlV4Handle >(); break;-
250 }-
251 break;-
252 case 1:-
253 switch (*reinterpret_cast<int*>(_a[1])) {-
254 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
255 case 0:-
256 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break;-
257 }-
258 break;-
259 case 2:-
260 switch (*reinterpret_cast<int*>(_a[1])) {-
261 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
262 case 0:-
263 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break;-
264 }-
265 break;-
266 case 3:-
267 switch (*reinterpret_cast<int*>(_a[1])) {-
268 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
269 case 0:-
270 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break;-
271 }-
272 break;-
273 case 5:-
274 switch (*reinterpret_cast<int*>(_a[1])) {-
275 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
276 case 0:-
277 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break;-
278 }-
279 break;-
280 case 6:-
281 switch (*reinterpret_cast<int*>(_a[1])) {-
282 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
283 case 0:-
284 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break;-
285 }-
286 break;-
287 case 7:-
288 switch (*reinterpret_cast<int*>(_a[1])) {-
289 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
290 case 0:-
291 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break;-
292 }-
293 break;-
294 }-
295 } else if (_c == QMetaObject::IndexOfMethod) {-
296 int *result = reinterpret_cast<int *>(_a[0]);-
297 {-
298 using _t = void (QQuickCustomAffector::*)(QQmlV4Handle , qreal );-
299 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickCustomAffector::affectParticles)) {-
300 *result = 0;-
301 return;-
302 }-
303 }-
304 {-
305 using _t = void (QQuickCustomAffector::*)(QQuickDirection * );-
306 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickCustomAffector::positionChanged)) {-
307 *result = 1;-
308 return;-
309 }-
310 }-
311 {-
312 using _t = void (QQuickCustomAffector::*)(QQuickDirection * );-
313 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickCustomAffector::velocityChanged)) {-
314 *result = 2;-
315 return;-
316 }-
317 }-
318 {-
319 using _t = void (QQuickCustomAffector::*)(QQuickDirection * );-
320 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickCustomAffector::accelerationChanged)) {-
321 *result = 3;-
322 return;-
323 }-
324 }-
325 {-
326 using _t = void (QQuickCustomAffector::*)(bool );-
327 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickCustomAffector::relativeChanged)) {-
328 *result = 4;-
329 return;-
330 }-
331 }-
332 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
333 switch (_id) {-
334 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
335 case 3:-
336 case 2:-
337 case 1:-
338 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break;-
339 }-
340 }-
341-
342-
343 else if (_c == QMetaObject::ReadProperty) {-
344 QQuickCustomAffector *_t = static_cast<QQuickCustomAffector *>(_o);-
345 (void)_t;-
346 void *_v = _a[0];-
347 switch (_id) {-
348 case 0: *reinterpret_cast< bool*>(_v) = _t->relative(); break;-
349 case 1: *reinterpret_cast< QQuickDirection**>(_v) = _t->position(); break;-
350 case 2: *reinterpret_cast< QQuickDirection**>(_v) = _t->velocity(); break;-
351 case 3: *reinterpret_cast< QQuickDirection**>(_v) = _t->acceleration(); break;-
352 default: break;-
353 }-
354 } else if (_c == QMetaObject::WriteProperty) {-
355 QQuickCustomAffector *_t = static_cast<QQuickCustomAffector *>(_o);-
356 (void)_t;-
357 void *_v = _a[0];-
358 switch (_id) {-
359 case 0: _t->setRelative(*reinterpret_cast< bool*>(_v)); break;-
360 case 1: _t->setPosition(*reinterpret_cast< QQuickDirection**>(_v)); break;-
361 case 2: _t->setVelocity(*reinterpret_cast< QQuickDirection**>(_v)); break;-
362 case 3: _t->setAcceleration(*reinterpret_cast< QQuickDirection**>(_v)); break;-
363 default: break;-
364 }-
365 } else if (_c == QMetaObject::ResetProperty) {-
366 QQuickCustomAffector *_t = static_cast<QQuickCustomAffector *>(_o);-
367 (void)_t;-
368 switch (_id) {-
369 case 1: _t->positionReset(); break;-
370 case 2: _t->velocityReset(); break;-
371 case 3: _t->accelerationReset(); break;-
372 default: break;-
373 }-
374 }-
375-
376}-
377-
378 const QMetaObject QQuickCustomAffector::staticMetaObject = {-
379 { &QQuickParticleAffector::staticMetaObject, qt_meta_stringdata_QQuickCustomAffector.data,-
380 qt_meta_data_QQuickCustomAffector, qt_static_metacall, nullptr, nullptr}-
381};-
382-
383-
384const QMetaObject *QQuickCustomAffector::metaObject() const-
385{-
386 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
387}-
388-
389void *QQuickCustomAffector::qt_metacast(const char *_clname)-
390{-
391 if (!_clname) return nullptr;-
392 if (!strcmp(_clname, qt_meta_stringdata_QQuickCustomAffector.stringdata0))-
393 return static_cast<void*>(this);-
394 return QQuickParticleAffector::qt_metacast(_clname);-
395}-
396-
397int QQuickCustomAffector::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
398{-
399 _id = QQuickParticleAffector::qt_metacall(_c, _id, _a);-
400 if (_id < 0)-
401 return _id;-
402 if (_c == QMetaObject::InvokeMetaMethod) {-
403 if (_id < 9)-
404 qt_static_metacall(this, _c, _id, _a);-
405 _id -= 9;-
406 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
407 if (_id < 9)-
408 qt_static_metacall(this, _c, _id, _a);-
409 _id -= 9;-
410 }-
411-
412 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
413 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
414 qt_static_metacall(this, _c, _id, _a);-
415 _id -= 4;-
416 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
417 _id -= 4;-
418 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
419 _id -= 4;-
420 } else if (_c == QMetaObject::QueryPropertyStored) {-
421 _id -= 4;-
422 } else if (_c == QMetaObject::QueryPropertyEditable) {-
423 _id -= 4;-
424 } else if (_c == QMetaObject::QueryPropertyUser) {-
425 _id -= 4;-
426 }-
427-
428 return _id;-
429}-
430-
431-
432void QQuickCustomAffector::affectParticles(QQmlV4Handle _t1, qreal _t2)-
433{-
434 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
435 QMetaObject::activate(this, &staticMetaObject, 0, _a);-
436}
executed 77 times by 1 test: end of block
Executed by:
  • tst_qquickcustomaffector
77
437-
438-
439void QQuickCustomAffector::positionChanged(QQuickDirection * _t1)-
440{-
441 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
442 QMetaObject::activate(this, &staticMetaObject, 1, _a);-
443}
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomaffector
6
444-
445-
446void QQuickCustomAffector::velocityChanged(QQuickDirection * _t1)-
447{-
448 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
449 QMetaObject::activate(this, &staticMetaObject, 2, _a);-
450}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomaffector
4
451-
452-
453void QQuickCustomAffector::accelerationChanged(QQuickDirection * _t1)-
454{-
455 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
456 QMetaObject::activate(this, &staticMetaObject, 3, _a);-
457}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomaffector
4
458-
459-
460void QQuickCustomAffector::relativeChanged(bool _t1)-
461{-
462 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
463 QMetaObject::activate(this, &staticMetaObject, 4, _a);-
464}
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomaffector
6
465-
466#pragma GCC diagnostic pop-
467-
468-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0