OpenCoverage

moc_qquickitemparticle_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/.moc/moc_qquickitemparticle_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_QQuickItemParticle_t {-
9 QByteArrayData data[17];-
10 char stringdata0[155];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQuickItemParticle_t qt_meta_stringdata_QQuickItemParticle = {-
18 {-
19{ { { -1 } }, 18, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQuickItemParticle_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 11, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQuickItemParticle_t-
29, -
30stringdata0-
31) -
32+ 19 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQuickItemParticle_t-
36, -
37stringdata0-
38) -
39+ 31 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 15, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQuickItemParticle_t-
43, -
44stringdata0-
45) -
46+ 32 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 14, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQuickItemParticle_t-
50, -
51stringdata0-
52) -
53+ 48 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 3, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QQuickItemParticle_t-
57, -
58stringdata0-
59) -
60+ 63 - 5 * sizeof(QByteArrayData)) },-
61{ { { -1 } }, 6, 0, 0, qptrdiff(-
62__builtin_offsetof (-
63qt_meta_stringdata_QQuickItemParticle_t-
64, -
65stringdata0-
66) -
67+ 67 - 6 * sizeof(QByteArrayData)) },-
68{ { { -1 } }, 11, 0, 0, qptrdiff(-
69__builtin_offsetof (-
70qt_meta_stringdata_QQuickItemParticle_t-
71, -
72stringdata0-
73) -
74+ 74 - 7 * sizeof(QByteArrayData)) },-
75{ { { -1 } }, 4, 0, 0, qptrdiff(-
76__builtin_offsetof (-
77qt_meta_stringdata_QQuickItemParticle_t-
78, -
79stringdata0-
80) -
81+ 86 - 8 * sizeof(QByteArrayData)) },-
82{ { { -1 } }, 8, 0, 0, qptrdiff(-
83__builtin_offsetof (-
84qt_meta_stringdata_QQuickItemParticle_t-
85, -
86stringdata0-
87) -
88+ 91 - 9 * sizeof(QByteArrayData)) },-
89{ { { -1 } }, 4, 0, 0, qptrdiff(-
90__builtin_offsetof (-
91qt_meta_stringdata_QQuickItemParticle_t-
92, -
93stringdata0-
94) -
95+ 100 - 10 * sizeof(QByteArrayData)) },-
96{ { { -1 } }, 10, 0, 0, qptrdiff(-
97__builtin_offsetof (-
98qt_meta_stringdata_QQuickItemParticle_t-
99, -
100stringdata0-
101) -
102+ 105 - 11 * sizeof(QByteArrayData)) },-
103{ { { -1 } }, 4, 0, 0, qptrdiff(-
104__builtin_offsetof (-
105qt_meta_stringdata_QQuickItemParticle_t-
106, -
107stringdata0-
108) -
109+ 116 - 12 * sizeof(QByteArrayData)) },-
110{ { { -1 } }, 7, 0, 0, qptrdiff(-
111__builtin_offsetof (-
112qt_meta_stringdata_QQuickItemParticle_t-
113, -
114stringdata0-
115) -
116+ 121 - 13 * sizeof(QByteArrayData)) },-
117{ { { -1 } }, 11, 0, 0, qptrdiff(-
118__builtin_offsetof (-
119qt_meta_stringdata_QQuickItemParticle_t-
120, -
121stringdata0-
122) -
123+ 129 - 14 * sizeof(QByteArrayData)) },-
124{ { { -1 } }, 4, 0, 0, qptrdiff(-
125__builtin_offsetof (-
126qt_meta_stringdata_QQuickItemParticle_t-
127, -
128stringdata0-
129) -
130+ 141 - 15 * sizeof(QByteArrayData)) },-
131{ { { -1 } }, 8, 0, 0, qptrdiff(-
132__builtin_offsetof (-
133qt_meta_stringdata_QQuickItemParticle_t-
134, -
135stringdata0-
136) -
137+ 146 - 16 * sizeof(QByteArrayData)) }-
138-
139 },-
140 "QQuickItemParticle\0fadeChanged\0\0"-
141 "delegateChanged\0QQmlComponent*\0arg\0"-
142 "freeze\0QQuickItem*\0item\0unfreeze\0take\0"-
143 "prioritize\0give\0setFade\0setDelegate\0"-
144 "fade\0delegate"-
145};-
146-
147-
148static const uint qt_meta_data_QQuickItemParticle[] = {-
149-
150-
151 7,-
152 0,-
153 0, 0,-
154 9, 14,-
155 2, 86,-
156 0, 0,-
157 0, 0,-
158 0,-
159 2,-
160-
161-
162 1, 0, 59, 2, 0x06 ,-
163 3, 1, 60, 2, 0x06 ,-
164-
165-
166 6, 1, 63, 2, 0x0a ,-
167 9, 1, 66, 2, 0x0a ,-
168 10, 2, 69, 2, 0x0a ,-
169 10, 1, 74, 2, 0x2a ,-
170 12, 1, 77, 2, 0x0a ,-
171 13, 1, 80, 2, 0x0a ,-
172 14, 1, 83, 2, 0x0a ,-
173-
174-
175 QMetaType::Void,-
176 QMetaType::Void, 0x80000000 | 4, 5,-
177-
178-
179 QMetaType::Void, 0x80000000 | 7, 8,-
180 QMetaType::Void, 0x80000000 | 7, 8,-
181 QMetaType::Void, 0x80000000 | 7, QMetaType::Bool, 8, 11,-
182 QMetaType::Void, 0x80000000 | 7, 8,-
183 QMetaType::Void, 0x80000000 | 7, 8,-
184 QMetaType::Void, QMetaType::Bool, 5,-
185 QMetaType::Void, 0x80000000 | 4, 5,-
186-
187-
188 15, QMetaType::Bool, 0x00495103,-
189 16, 0x80000000 | 4, 0x0049510b,-
190-
191-
192 0,-
193 1,-
194-
195 0-
196};-
197-
198void QQuickItemParticle::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
199{-
200 if (_c == QMetaObject::InvokeMetaMethod) {-
201 QQuickItemParticle *_t = static_cast<QQuickItemParticle *>(_o);-
202 (void)_t;-
203 switch (_id) {-
204 case 0: _t->fadeChanged(); break;-
205 case 1: _t->delegateChanged((*reinterpret_cast< QQmlComponent*(*)>(_a[1]))); break;-
206 case 2: _t->freeze((*reinterpret_cast< QQuickItem*(*)>(_a[1]))); break;-
207 case 3: _t->unfreeze((*reinterpret_cast< QQuickItem*(*)>(_a[1]))); break;-
208 case 4: _t->take((*reinterpret_cast< QQuickItem*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;-
209 case 5: _t->take((*reinterpret_cast< QQuickItem*(*)>(_a[1]))); break;-
210 case 6: _t->give((*reinterpret_cast< QQuickItem*(*)>(_a[1]))); break;-
211 case 7: _t->setFade((*reinterpret_cast< bool(*)>(_a[1]))); break;-
212 case 8: _t->setDelegate((*reinterpret_cast< QQmlComponent*(*)>(_a[1]))); break;-
213 default: ;-
214 }-
215 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
216 switch (_id) {-
217 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
218 case 1:-
219 switch (*reinterpret_cast<int*>(_a[1])) {-
220 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
221 case 0:-
222 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlComponent* >(); break;-
223 }-
224 break;-
225 case 2:-
226 switch (*reinterpret_cast<int*>(_a[1])) {-
227 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
228 case 0:-
229 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItem* >(); break;-
230 }-
231 break;-
232 case 3:-
233 switch (*reinterpret_cast<int*>(_a[1])) {-
234 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
235 case 0:-
236 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItem* >(); break;-
237 }-
238 break;-
239 case 4:-
240 switch (*reinterpret_cast<int*>(_a[1])) {-
241 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
242 case 0:-
243 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItem* >(); break;-
244 }-
245 break;-
246 case 5:-
247 switch (*reinterpret_cast<int*>(_a[1])) {-
248 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
249 case 0:-
250 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItem* >(); break;-
251 }-
252 break;-
253 case 6:-
254 switch (*reinterpret_cast<int*>(_a[1])) {-
255 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
256 case 0:-
257 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItem* >(); break;-
258 }-
259 break;-
260 case 8:-
261 switch (*reinterpret_cast<int*>(_a[1])) {-
262 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
263 case 0:-
264 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlComponent* >(); break;-
265 }-
266 break;-
267 }-
268 } else if (_c == QMetaObject::IndexOfMethod) {-
269 int *result = reinterpret_cast<int *>(_a[0]);-
270 {-
271 using _t = void (QQuickItemParticle::*)();-
272 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickItemParticle::fadeChanged)) {-
273 *result = 0;-
274 return;-
275 }-
276 }-
277 {-
278 using _t = void (QQuickItemParticle::*)(QQmlComponent * );-
279 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickItemParticle::delegateChanged)) {-
280 *result = 1;-
281 return;-
282 }-
283 }-
284 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
285 switch (_id) {-
286 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
287 case 1:-
288 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlComponent* >(); break;-
289 }-
290 }-
291-
292-
293 else if (_c == QMetaObject::ReadProperty) {-
294 QQuickItemParticle *_t = static_cast<QQuickItemParticle *>(_o);-
295 (void)_t;-
296 void *_v = _a[0];-
297 switch (_id) {-
298 case 0: *reinterpret_cast< bool*>(_v) = _t->fade(); break;-
299 case 1: *reinterpret_cast< QQmlComponent**>(_v) = _t->delegate(); break;-
300 default: break;-
301 }-
302 } else if (_c == QMetaObject::WriteProperty) {-
303 QQuickItemParticle *_t = static_cast<QQuickItemParticle *>(_o);-
304 (void)_t;-
305 void *_v = _a[0];-
306 switch (_id) {-
307 case 0: _t->setFade(*reinterpret_cast< bool*>(_v)); break;-
308 case 1: _t->setDelegate(*reinterpret_cast< QQmlComponent**>(_v)); break;-
309 default: break;-
310 }-
311 } else if (_c == QMetaObject::ResetProperty) {-
312 }-
313-
314}-
315-
316 const QMetaObject QQuickItemParticle::staticMetaObject = {-
317 { &QQuickParticlePainter::staticMetaObject, qt_meta_stringdata_QQuickItemParticle.data,-
318 qt_meta_data_QQuickItemParticle, qt_static_metacall, nullptr, nullptr}-
319};-
320-
321-
322const QMetaObject *QQuickItemParticle::metaObject() const-
323{-
324 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
325}-
326-
327void *QQuickItemParticle::qt_metacast(const char *_clname)-
328{-
329 if (!_clname) return nullptr;-
330 if (!strcmp(_clname, qt_meta_stringdata_QQuickItemParticle.stringdata0))-
331 return static_cast<void*>(this);-
332 return QQuickParticlePainter::qt_metacast(_clname);-
333}-
334-
335int QQuickItemParticle::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
336{-
337 _id = QQuickParticlePainter::qt_metacall(_c, _id, _a);-
338 if (_id < 0)-
339 return _id;-
340 if (_c == QMetaObject::InvokeMetaMethod) {-
341 if (_id < 9)-
342 qt_static_metacall(this, _c, _id, _a);-
343 _id -= 9;-
344 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
345 if (_id < 9)-
346 qt_static_metacall(this, _c, _id, _a);-
347 _id -= 9;-
348 }-
349-
350 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
351 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
352 qt_static_metacall(this, _c, _id, _a);-
353 _id -= 2;-
354 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
355 _id -= 2;-
356 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
357 _id -= 2;-
358 } else if (_c == QMetaObject::QueryPropertyStored) {-
359 _id -= 2;-
360 } else if (_c == QMetaObject::QueryPropertyEditable) {-
361 _id -= 2;-
362 } else if (_c == QMetaObject::QueryPropertyUser) {-
363 _id -= 2;-
364 }-
365-
366 return _id;-
367}-
368-
369-
370void QQuickItemParticle::fadeChanged()-
371{-
372 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
373}
never executed: end of block
0
374-
375-
376void QQuickItemParticle::delegateChanged(QQmlComponent * _t1)-
377{-
378 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
379 QMetaObject::activate(this, &staticMetaObject, 1, _a);-
380}
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickitemparticle
6
381struct qt_meta_stringdata_QQuickItemParticleAttached_t {-
382 QByteArrayData data[6];-
383 char stringdata0[75];-
384};-
385-
386-
387-
388-
389-
390static const qt_meta_stringdata_QQuickItemParticleAttached_t qt_meta_stringdata_QQuickItemParticleAttached = {-
391 {-
392{ { { -1 } }, 26, 0, 0, qptrdiff(-
393__builtin_offsetof (-
394qt_meta_stringdata_QQuickItemParticleAttached_t-
395, -
396stringdata0-
397) -
398+ 0 - 0 * sizeof(QByteArrayData)) },-
399{ { { -1 } }, 8, 0, 0, qptrdiff(-
400__builtin_offsetof (-
401qt_meta_stringdata_QQuickItemParticleAttached_t-
402, -
403stringdata0-
404) -
405+ 27 - 1 * sizeof(QByteArrayData)) },-
406{ { { -1 } }, 0, 0, 0, qptrdiff(-
407__builtin_offsetof (-
408qt_meta_stringdata_QQuickItemParticleAttached_t-
409, -
410stringdata0-
411) -
412+ 36 - 2 * sizeof(QByteArrayData)) },-
413{ { { -1 } }, 8, 0, 0, qptrdiff(-
414__builtin_offsetof (-
415qt_meta_stringdata_QQuickItemParticleAttached_t-
416, -
417stringdata0-
418) -
419+ 37 - 3 * sizeof(QByteArrayData)) },-
420{ { { -1 } }, 8, 0, 0, qptrdiff(-
421__builtin_offsetof (-
422qt_meta_stringdata_QQuickItemParticleAttached_t-
423, -
424stringdata0-
425) -
426+ 46 - 4 * sizeof(QByteArrayData)) },-
427{ { { -1 } }, 19, 0, 0, qptrdiff(-
428__builtin_offsetof (-
429qt_meta_stringdata_QQuickItemParticleAttached_t-
430, -
431stringdata0-
432) -
433+ 55 - 5 * sizeof(QByteArrayData)) }-
434-
435 },-
436 "QQuickItemParticleAttached\0detached\0"-
437 "\0attached\0particle\0QQuickItemParticle*"-
438};-
439-
440-
441static const uint qt_meta_data_QQuickItemParticleAttached[] = {-
442-
443-
444 7,-
445 0,-
446 0, 0,-
447 2, 14,-
448 1, 26,-
449 0, 0,-
450 0, 0,-
451 0,-
452 2,-
453-
454-
455 1, 0, 24, 2, 0x06 ,-
456 3, 0, 25, 2, 0x06 ,-
457-
458-
459 QMetaType::Void,-
460 QMetaType::Void,-
461-
462-
463 4, 0x80000000 | 5, 0x00095409,-
464-
465 0-
466};-
467-
468void QQuickItemParticleAttached::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
469{-
470 if (_c == QMetaObject::InvokeMetaMethod) {-
471 QQuickItemParticleAttached *_t = static_cast<QQuickItemParticleAttached *>(_o);-
472 (void)_t;-
473 switch (_id) {-
474 case 0: _t->detached(); break;-
475 case 1: _t->attached(); break;-
476 default: ;-
477 }-
478 } else if (_c == QMetaObject::IndexOfMethod) {-
479 int *result = reinterpret_cast<int *>(_a[0]);-
480 {-
481 using _t = void (QQuickItemParticleAttached::*)();-
482 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickItemParticleAttached::detached)) {-
483 *result = 0;-
484 return;-
485 }-
486 }-
487 {-
488 using _t = void (QQuickItemParticleAttached::*)();-
489 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickItemParticleAttached::attached)) {-
490 *result = 1;-
491 return;-
492 }-
493 }-
494 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
495 switch (_id) {-
496 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
497 case 0:-
498 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItemParticle* >(); break;-
499 }-
500 }-
501-
502-
503 else if (_c == QMetaObject::ReadProperty) {-
504 QQuickItemParticleAttached *_t = static_cast<QQuickItemParticleAttached *>(_o);-
505 (void)_t;-
506 void *_v = _a[0];-
507 switch (_id) {-
508 case 0: *reinterpret_cast< QQuickItemParticle**>(_v) = _t->particle(); break;-
509 default: break;-
510 }-
511 } else if (_c == QMetaObject::WriteProperty) {-
512 } else if (_c == QMetaObject::ResetProperty) {-
513 }-
514-
515}-
516-
517 const QMetaObject QQuickItemParticleAttached::staticMetaObject = {-
518 { &QObject::staticMetaObject, qt_meta_stringdata_QQuickItemParticleAttached.data,-
519 qt_meta_data_QQuickItemParticleAttached, qt_static_metacall, nullptr, nullptr}-
520};-
521-
522-
523const QMetaObject *QQuickItemParticleAttached::metaObject() const-
524{-
525 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
526}-
527-
528void *QQuickItemParticleAttached::qt_metacast(const char *_clname)-
529{-
530 if (!_clname) return nullptr;-
531 if (!strcmp(_clname, qt_meta_stringdata_QQuickItemParticleAttached.stringdata0))-
532 return static_cast<void*>(this);-
533 return QObject::qt_metacast(_clname);-
534}-
535-
536int QQuickItemParticleAttached::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
537{-
538 _id = QObject::qt_metacall(_c, _id, _a);-
539 if (_id < 0)-
540 return _id;-
541 if (_c == QMetaObject::InvokeMetaMethod) {-
542 if (_id < 2)-
543 qt_static_metacall(this, _c, _id, _a);-
544 _id -= 2;-
545 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
546 if (_id < 2)-
547 *reinterpret_cast<int*>(_a[0]) = -1;-
548 _id -= 2;-
549 }-
550-
551 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
552 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
553 qt_static_metacall(this, _c, _id, _a);-
554 _id -= 1;-
555 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
556 _id -= 1;-
557 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
558 _id -= 1;-
559 } else if (_c == QMetaObject::QueryPropertyStored) {-
560 _id -= 1;-
561 } else if (_c == QMetaObject::QueryPropertyEditable) {-
562 _id -= 1;-
563 } else if (_c == QMetaObject::QueryPropertyUser) {-
564 _id -= 1;-
565 }-
566-
567 return _id;-
568}-
569-
570-
571void QQuickItemParticleAttached::detached()-
572{-
573 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
574}
executed 1716 times by 1 test: end of block
Executed by:
  • tst_qquickitemparticle
1716
575-
576-
577void QQuickItemParticleAttached::attached()-
578{-
579 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
580}
executed 3176 times by 1 test: end of block
Executed by:
  • tst_qquickitemparticle
3176
581-
582#pragma GCC diagnostic pop-
583-
584-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0