OpenCoverage

moc_qqmldelegatemodel_p_p.cpp

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

Generated by Squish Coco 4.2.0