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