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