OpenCoverage

moc_qqmlobjectmodel_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmlobjectmodel_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_QQmlInstanceModel_t {-
9 QByteArrayData data[13];-
10 char stringdata0[130];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQmlInstanceModel_t qt_meta_stringdata_QQmlInstanceModel = {-
18 {-
19{ { { -1 } }, 17, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQmlInstanceModel_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 12, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQmlInstanceModel_t-
29, -
30stringdata0-
31) -
32+ 18 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQmlInstanceModel_t-
36, -
37stringdata0-
38) -
39+ 31 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 12, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQmlInstanceModel_t-
43, -
44stringdata0-
45) -
46+ 32 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 13, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQmlInstanceModel_t-
50, -
51stringdata0-
52) -
53+ 45 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 9, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QQmlInstanceModel_t-
57, -
58stringdata0-
59) -
60+ 59 - 5 * sizeof(QByteArrayData)) },-
61{ { { -1 } }, 5, 0, 0, qptrdiff(-
62__builtin_offsetof (-
63qt_meta_stringdata_QQmlInstanceModel_t-
64, -
65stringdata0-
66) -
67+ 69 - 6 * sizeof(QByteArrayData)) },-
68{ { { -1 } }, 11, 0, 0, qptrdiff(-
69__builtin_offsetof (-
70qt_meta_stringdata_QQmlInstanceModel_t-
71, -
72stringdata0-
73) -
74+ 75 - 7 * sizeof(QByteArrayData)) },-
75{ { { -1 } }, 5, 0, 0, qptrdiff(-
76__builtin_offsetof (-
77qt_meta_stringdata_QQmlInstanceModel_t-
78, -
79stringdata0-
80) -
81+ 87 - 8 * sizeof(QByteArrayData)) },-
82{ { { -1 } }, 6, 0, 0, qptrdiff(-
83__builtin_offsetof (-
84qt_meta_stringdata_QQmlInstanceModel_t-
85, -
86stringdata0-
87) -
88+ 93 - 9 * sizeof(QByteArrayData)) },-
89{ { { -1 } }, 8, 0, 0, qptrdiff(-
90__builtin_offsetof (-
91qt_meta_stringdata_QQmlInstanceModel_t-
92, -
93stringdata0-
94) -
95+ 100 - 10 * sizeof(QByteArrayData)) },-
96{ { { -1 } }, 14, 0, 0, qptrdiff(-
97__builtin_offsetof (-
98qt_meta_stringdata_QQmlInstanceModel_t-
99, -
100stringdata0-
101) -
102+ 109 - 11 * sizeof(QByteArrayData)) },-
103{ { { -1 } }, 5, 0, 0, qptrdiff(-
104__builtin_offsetof (-
105qt_meta_stringdata_QQmlInstanceModel_t-
106, -
107stringdata0-
108) -
109+ 124 - 12 * sizeof(QByteArrayData)) }-
110-
111 },-
112 "QQmlInstanceModel\0countChanged\0\0"-
113 "modelUpdated\0QQmlChangeSet\0changeSet\0"-
114 "reset\0createdItem\0index\0object\0initItem\0"-
115 "destroyingItem\0count"-
116};-
117-
118-
119static const uint qt_meta_data_QQmlInstanceModel[] = {-
120-
121-
122 7,-
123 0,-
124 0, 0,-
125 5, 14,-
126 1, 58,-
127 0, 0,-
128 0, 0,-
129 0,-
130 5,-
131-
132-
133 1, 0, 39, 2, 0x06 ,-
134 3, 2, 40, 2, 0x06 ,-
135 7, 2, 45, 2, 0x06 ,-
136 10, 2, 50, 2, 0x06 ,-
137 11, 1, 55, 2, 0x06 ,-
138-
139-
140 QMetaType::Void,-
141 QMetaType::Void, 0x80000000 | 4, QMetaType::Bool, 5, 6,-
142 QMetaType::Void, QMetaType::Int, QMetaType::QObjectStar, 8, 9,-
143 QMetaType::Void, QMetaType::Int, QMetaType::QObjectStar, 8, 9,-
144 QMetaType::Void, QMetaType::QObjectStar, 9,-
145-
146-
147 12, QMetaType::Int, 0x00495001,-
148-
149-
150 0,-
151-
152 0-
153};-
154-
155void QQmlInstanceModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
156{-
157 if (_c == QMetaObject::InvokeMetaMethod) {-
158 QQmlInstanceModel *_t = static_cast<QQmlInstanceModel *>(_o);-
159 (void)_t;-
160 switch (_id) {-
161 case 0: _t->countChanged(); break;-
162 case 1: _t->modelUpdated((*reinterpret_cast< const QQmlChangeSet(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;-
163 case 2: _t->createdItem((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QObject*(*)>(_a[2]))); break;-
164 case 3: _t->initItem((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QObject*(*)>(_a[2]))); break;-
165 case 4: _t->destroyingItem((*reinterpret_cast< QObject*(*)>(_a[1]))); break;-
166 default: ;-
167 }-
168 } else if (_c == QMetaObject::IndexOfMethod) {-
169 int *result = reinterpret_cast<int *>(_a[0]);-
170 {-
171 using _t = void (QQmlInstanceModel::*)();-
172 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstanceModel::countChanged)) {-
173 *result = 0;-
174 return;-
175 }-
176 }-
177 {-
178 using _t = void (QQmlInstanceModel::*)(const QQmlChangeSet & , bool );-
179 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstanceModel::modelUpdated)) {-
180 *result = 1;-
181 return;-
182 }-
183 }-
184 {-
185 using _t = void (QQmlInstanceModel::*)(int , QObject * );-
186 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstanceModel::createdItem)) {-
187 *result = 2;-
188 return;-
189 }-
190 }-
191 {-
192 using _t = void (QQmlInstanceModel::*)(int , QObject * );-
193 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstanceModel::initItem)) {-
194 *result = 3;-
195 return;-
196 }-
197 }-
198 {-
199 using _t = void (QQmlInstanceModel::*)(QObject * );-
200 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstanceModel::destroyingItem)) {-
201 *result = 4;-
202 return;-
203 }-
204 }-
205 }-
206-
207 else if (_c == QMetaObject::ReadProperty) {-
208 QQmlInstanceModel *_t = static_cast<QQmlInstanceModel *>(_o);-
209 (void)_t;-
210 void *_v = _a[0];-
211 switch (_id) {-
212 case 0: *reinterpret_cast< int*>(_v) = _t->count(); break;-
213 default: break;-
214 }-
215 } else if (_c == QMetaObject::WriteProperty) {-
216 } else if (_c == QMetaObject::ResetProperty) {-
217 }-
218-
219}-
220-
221 const QMetaObject QQmlInstanceModel::staticMetaObject = {-
222 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlInstanceModel.data,-
223 qt_meta_data_QQmlInstanceModel, qt_static_metacall, nullptr, nullptr}-
224};-
225-
226-
227const QMetaObject *QQmlInstanceModel::metaObject() const-
228{-
229 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
230}-
231-
232void *QQmlInstanceModel::qt_metacast(const char *_clname)-
233{-
234 if (!_clname) return nullptr;-
235 if (!strcmp(_clname, qt_meta_stringdata_QQmlInstanceModel.stringdata0))-
236 return static_cast<void*>(this);-
237 return QObject::qt_metacast(_clname);-
238}-
239-
240int QQmlInstanceModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
241{-
242 _id = QObject::qt_metacall(_c, _id, _a);-
243 if (_id < 0)-
244 return _id;-
245 if (_c == QMetaObject::InvokeMetaMethod) {-
246 if (_id < 5)-
247 qt_static_metacall(this, _c, _id, _a);-
248 _id -= 5;-
249 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
250 if (_id < 5)-
251 *reinterpret_cast<int*>(_a[0]) = -1;-
252 _id -= 5;-
253 }-
254-
255 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
256 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
257 qt_static_metacall(this, _c, _id, _a);-
258 _id -= 1;-
259 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
260 _id -= 1;-
261 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
262 _id -= 1;-
263 } else if (_c == QMetaObject::QueryPropertyStored) {-
264 _id -= 1;-
265 } else if (_c == QMetaObject::QueryPropertyEditable) {-
266 _id -= 1;-
267 } else if (_c == QMetaObject::QueryPropertyUser) {-
268 _id -= 1;-
269 }-
270-
271 return _id;-
272}-
273-
274-
275void QQmlInstanceModel::countChanged()-
276{-
277 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
278}
executed 16492 times by 26 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • ...
16492
279-
280-
281void QQmlInstanceModel::modelUpdated(const QQmlChangeSet & _t1, bool _t2)-
282{-
283 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
284 QMetaObject::activate(this, &staticMetaObject, 1, _a);-
285}
executed 26164 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • ...
26164
286-
287-
288void QQmlInstanceModel::createdItem(int _t1, QObject * _t2)-
289{-
290 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
291 QMetaObject::activate(this, &staticMetaObject, 2, _a);-
292}
executed 88813 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
88813
293-
294-
295void QQmlInstanceModel::initItem(int _t1, QObject * _t2)-
296{-
297 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
298 QMetaObject::activate(this, &staticMetaObject, 3, _a);-
299}
executed 88813 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
88813
300-
301-
302void QQmlInstanceModel::destroyingItem(QObject * _t1)-
303{-
304 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
305 QMetaObject::activate(this, &staticMetaObject, 4, _a);-
306}
executed 24011 times by 13 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
24011
307struct qt_meta_stringdata_QQmlObjectModel_t {-
308 QByteArrayData data[17];-
309 char stringdata0[143];-
310};-
311-
312-
313-
314-
315-
316static const qt_meta_stringdata_QQmlObjectModel_t qt_meta_stringdata_QQmlObjectModel = {-
317 {-
318{ { { -1 } }, 15, 0, 0, qptrdiff(-
319__builtin_offsetof (-
320qt_meta_stringdata_QQmlObjectModel_t-
321, -
322stringdata0-
323) -
324+ 0 - 0 * sizeof(QByteArrayData)) },-
325{ { { -1 } }, 15, 0, 0, qptrdiff(-
326__builtin_offsetof (-
327qt_meta_stringdata_QQmlObjectModel_t-
328, -
329stringdata0-
330) -
331+ 16 - 1 * sizeof(QByteArrayData)) },-
332{ { { -1 } }, 8, 0, 0, qptrdiff(-
333__builtin_offsetof (-
334qt_meta_stringdata_QQmlObjectModel_t-
335, -
336stringdata0-
337) -
338+ 32 - 2 * sizeof(QByteArrayData)) },-
339{ { { -1 } }, 15, 0, 0, qptrdiff(-
340__builtin_offsetof (-
341qt_meta_stringdata_QQmlObjectModel_t-
342, -
343stringdata0-
344) -
345+ 41 - 3 * sizeof(QByteArrayData)) },-
346{ { { -1 } }, 0, 0, 0, qptrdiff(-
347__builtin_offsetof (-
348qt_meta_stringdata_QQmlObjectModel_t-
349, -
350stringdata0-
351) -
352+ 57 - 4 * sizeof(QByteArrayData)) },-
353{ { { -1 } }, 5, 0, 0, qptrdiff(-
354__builtin_offsetof (-
355qt_meta_stringdata_QQmlObjectModel_t-
356, -
357stringdata0-
358) -
359+ 58 - 5 * sizeof(QByteArrayData)) },-
360{ { { -1 } }, 3, 0, 0, qptrdiff(-
361__builtin_offsetof (-
362qt_meta_stringdata_QQmlObjectModel_t-
363, -
364stringdata0-
365) -
366+ 64 - 6 * sizeof(QByteArrayData)) },-
367{ { { -1 } }, 5, 0, 0, qptrdiff(-
368__builtin_offsetof (-
369qt_meta_stringdata_QQmlObjectModel_t-
370, -
371stringdata0-
372) -
373+ 68 - 7 * sizeof(QByteArrayData)) },-
374{ { { -1 } }, 6, 0, 0, qptrdiff(-
375__builtin_offsetof (-
376qt_meta_stringdata_QQmlObjectModel_t-
377, -
378stringdata0-
379) -
380+ 74 - 8 * sizeof(QByteArrayData)) },-
381{ { { -1 } }, 6, 0, 0, qptrdiff(-
382__builtin_offsetof (-
383qt_meta_stringdata_QQmlObjectModel_t-
384, -
385stringdata0-
386) -
387+ 81 - 9 * sizeof(QByteArrayData)) },-
388{ { { -1 } }, 6, 0, 0, qptrdiff(-
389__builtin_offsetof (-
390qt_meta_stringdata_QQmlObjectModel_t-
391, -
392stringdata0-
393) -
394+ 88 - 10 * sizeof(QByteArrayData)) },-
395{ { { -1 } }, 4, 0, 0, qptrdiff(-
396__builtin_offsetof (-
397qt_meta_stringdata_QQmlObjectModel_t-
398, -
399stringdata0-
400) -
401+ 95 - 11 * sizeof(QByteArrayData)) },-
402{ { { -1 } }, 4, 0, 0, qptrdiff(-
403__builtin_offsetof (-
404qt_meta_stringdata_QQmlObjectModel_t-
405, -
406stringdata0-
407) -
408+ 100 - 12 * sizeof(QByteArrayData)) },-
409{ { { -1 } }, 2, 0, 0, qptrdiff(-
410__builtin_offsetof (-
411qt_meta_stringdata_QQmlObjectModel_t-
412, -
413stringdata0-
414) -
415+ 105 - 13 * sizeof(QByteArrayData)) },-
416{ { { -1 } }, 1, 0, 0, qptrdiff(-
417__builtin_offsetof (-
418qt_meta_stringdata_QQmlObjectModel_t-
419, -
420stringdata0-
421) -
422+ 108 - 14 * sizeof(QByteArrayData)) },-
423{ { { -1 } }, 6, 0, 0, qptrdiff(-
424__builtin_offsetof (-
425qt_meta_stringdata_QQmlObjectModel_t-
426, -
427stringdata0-
428) -
429+ 110 - 15 * sizeof(QByteArrayData)) },-
430{ { { -1 } }, 25, 0, 0, qptrdiff(-
431__builtin_offsetof (-
432qt_meta_stringdata_QQmlObjectModel_t-
433, -
434stringdata0-
435) -
436+ 117 - 16 * sizeof(QByteArrayData)) }-
437-
438 },-
439 "QQmlObjectModel\0DefaultProperty\0"-
440 "children\0childrenChanged\0\0clear\0get\0"-
441 "index\0append\0object\0insert\0move\0from\0"-
442 "to\0n\0remove\0QQmlListProperty<QObject>"-
443};-
444-
445-
446static const uint qt_meta_data_QQmlObjectModel[] = {-
447-
448-
449 7,-
450 0,-
451 1, 14,-
452 9, 16,-
453 1, 103,-
454 0, 0,-
455 0, 0,-
456 0,-
457 1,-
458-
459-
460 1, 2,-
461-
462-
463 3, 0, 70, 4, 0x06 ,-
464-
465-
466 5, 0, 71, 4, 0x8a ,-
467-
468-
469 6, 1, 72, 4, 0x82 ,-
470 8, 1, 75, 4, 0x82 ,-
471 10, 2, 78, 4, 0x82 ,-
472 11, 3, 83, 4, 0x82 ,-
473 11, 2, 90, 4, 0xa2 ,-
474 15, 2, 95, 4, 0x82 ,-
475 15, 1, 100, 4, 0xa2 ,-
476-
477-
478 0,-
479-
480-
481 3,-
482-
483-
484 3,-
485 3,-
486 3,-
487 3,-
488 3,-
489 3,-
490 3,-
491-
492-
493 QMetaType::Void,-
494-
495-
496 QMetaType::Void,-
497-
498-
499 QMetaType::QObjectStar, QMetaType::Int, 7,-
500 QMetaType::Void, QMetaType::QObjectStar, 9,-
501 QMetaType::Void, QMetaType::Int, QMetaType::QObjectStar, 7, 9,-
502 QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 12, 13, 14,-
503 QMetaType::Void, QMetaType::Int, QMetaType::Int, 12, 13,-
504 QMetaType::Void, QMetaType::Int, QMetaType::Int, 7, 14,-
505 QMetaType::Void, QMetaType::Int, 7,-
506-
507-
508 2, 0x80000000 | 16, 0x00494009,-
509-
510-
511 0,-
512-
513 0-
514};-
515-
516void QQmlObjectModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
517{-
518 if (_c == QMetaObject::InvokeMetaMethod) {-
519 QQmlObjectModel *_t = static_cast<QQmlObjectModel *>(_o);-
520 (void)_t;-
521 switch (_id) {-
522 case 0: _t->childrenChanged(); break;-
523 case 1: _t->clear(); break;-
524 case 2: { QObject* _r = _t->get((*reinterpret_cast< int(*)>(_a[1])));-
525 if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); } break;-
526 case 3: _t->append((*reinterpret_cast< QObject*(*)>(_a[1]))); break;-
527 case 4: _t->insert((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QObject*(*)>(_a[2]))); break;-
528 case 5: _t->move((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;-
529 case 6: _t->move((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;-
530 case 7: _t->remove((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;-
531 case 8: _t->remove((*reinterpret_cast< int(*)>(_a[1]))); break;-
532 default: ;-
533 }-
534 } else if (_c == QMetaObject::IndexOfMethod) {-
535 int *result = reinterpret_cast<int *>(_a[0]);-
536 {-
537 using _t = void (QQmlObjectModel::*)();-
538 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlObjectModel::childrenChanged)) {-
539 *result = 0;-
540 return;-
541 }-
542 }-
543 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
544 switch (_id) {-
545 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
546 case 0:-
547 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlListProperty<QObject> >(); break;-
548 }-
549 }-
550-
551-
552 else if (_c == QMetaObject::ReadProperty) {-
553 QQmlObjectModel *_t = static_cast<QQmlObjectModel *>(_o);-
554 (void)_t;-
555 void *_v = _a[0];-
556 switch (_id) {-
557 case 0: *reinterpret_cast< QQmlListProperty<QObject>*>(_v) = _t->children(); break;-
558 default: break;-
559 }-
560 } else if (_c == QMetaObject::WriteProperty) {-
561 } else if (_c == QMetaObject::ResetProperty) {-
562 }-
563-
564}-
565-
566 const QMetaObject QQmlObjectModel::staticMetaObject = {-
567 { &QQmlInstanceModel::staticMetaObject, qt_meta_stringdata_QQmlObjectModel.data,-
568 qt_meta_data_QQmlObjectModel, qt_static_metacall, nullptr, nullptr}-
569};-
570-
571-
572const QMetaObject *QQmlObjectModel::metaObject() const-
573{-
574 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
575}-
576-
577void *QQmlObjectModel::qt_metacast(const char *_clname)-
578{-
579 if (!_clname) return nullptr;-
580 if (!strcmp(_clname, qt_meta_stringdata_QQmlObjectModel.stringdata0))-
581 return static_cast<void*>(this);-
582 return QQmlInstanceModel::qt_metacast(_clname);-
583}-
584-
585int QQmlObjectModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
586{-
587 _id = QQmlInstanceModel::qt_metacall(_c, _id, _a);-
588 if (_id < 0)-
589 return _id;-
590 if (_c == QMetaObject::InvokeMetaMethod) {-
591 if (_id < 9)-
592 qt_static_metacall(this, _c, _id, _a);-
593 _id -= 9;-
594 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
595 if (_id < 9)-
596 *reinterpret_cast<int*>(_a[0]) = -1;-
597 _id -= 9;-
598 }-
599-
600 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
601 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
602 qt_static_metacall(this, _c, _id, _a);-
603 _id -= 1;-
604 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
605 _id -= 1;-
606 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
607 _id -= 1;-
608 } else if (_c == QMetaObject::QueryPropertyStored) {-
609 _id -= 1;-
610 } else if (_c == QMetaObject::QueryPropertyEditable) {-
611 _id -= 1;-
612 } else if (_c == QMetaObject::QueryPropertyUser) {-
613 _id -= 1;-
614 }-
615-
616 return _id;-
617}-
618-
619-
620void QQmlObjectModel::childrenChanged()-
621{-
622 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
623}
executed 178 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlobjectmodel
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
178
624struct qt_meta_stringdata_QQmlObjectModelAttached_t {-
625 QByteArrayData data[4];-
626 char stringdata0[44];-
627};-
628-
629-
630-
631-
632-
633static const qt_meta_stringdata_QQmlObjectModelAttached_t qt_meta_stringdata_QQmlObjectModelAttached = {-
634 {-
635{ { { -1 } }, 23, 0, 0, qptrdiff(-
636__builtin_offsetof (-
637qt_meta_stringdata_QQmlObjectModelAttached_t-
638, -
639stringdata0-
640) -
641+ 0 - 0 * sizeof(QByteArrayData)) },-
642{ { { -1 } }, 12, 0, 0, qptrdiff(-
643__builtin_offsetof (-
644qt_meta_stringdata_QQmlObjectModelAttached_t-
645, -
646stringdata0-
647) -
648+ 24 - 1 * sizeof(QByteArrayData)) },-
649{ { { -1 } }, 0, 0, 0, qptrdiff(-
650__builtin_offsetof (-
651qt_meta_stringdata_QQmlObjectModelAttached_t-
652, -
653stringdata0-
654) -
655+ 37 - 2 * sizeof(QByteArrayData)) },-
656{ { { -1 } }, 5, 0, 0, qptrdiff(-
657__builtin_offsetof (-
658qt_meta_stringdata_QQmlObjectModelAttached_t-
659, -
660stringdata0-
661) -
662+ 38 - 3 * sizeof(QByteArrayData)) }-
663-
664 },-
665 "QQmlObjectModelAttached\0indexChanged\0"-
666 "\0index"-
667};-
668-
669-
670static const uint qt_meta_data_QQmlObjectModelAttached[] = {-
671-
672-
673 7,-
674 0,-
675 0, 0,-
676 1, 14,-
677 1, 20,-
678 0, 0,-
679 0, 0,-
680 0,-
681 1,-
682-
683-
684 1, 0, 19, 2, 0x06 ,-
685-
686-
687 QMetaType::Void,-
688-
689-
690 3, QMetaType::Int, 0x00495001,-
691-
692-
693 0,-
694-
695 0-
696};-
697-
698void QQmlObjectModelAttached::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
699{-
700 if (_c == QMetaObject::InvokeMetaMethod) {-
701 QQmlObjectModelAttached *_t = static_cast<QQmlObjectModelAttached *>(_o);-
702 (void)_t;-
703 switch (_id) {-
704 case 0: _t->indexChanged(); break;-
705 default: ;-
706 }-
707 } else if (_c == QMetaObject::IndexOfMethod) {-
708 int *result = reinterpret_cast<int *>(_a[0]);-
709 {-
710 using _t = void (QQmlObjectModelAttached::*)();-
711 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlObjectModelAttached::indexChanged)) {-
712 *result = 0;-
713 return;-
714 }-
715 }-
716 }-
717-
718 else if (_c == QMetaObject::ReadProperty) {-
719 QQmlObjectModelAttached *_t = static_cast<QQmlObjectModelAttached *>(_o);-
720 (void)_t;-
721 void *_v = _a[0];-
722 switch (_id) {-
723 case 0: *reinterpret_cast< int*>(_v) = _t->index(); break;-
724 default: break;-
725 }-
726 } else if (_c == QMetaObject::WriteProperty) {-
727 } else if (_c == QMetaObject::ResetProperty) {-
728 }-
729-
730 (void)_a;;-
731}-
732-
733 const QMetaObject QQmlObjectModelAttached::staticMetaObject = {-
734 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlObjectModelAttached.data,-
735 qt_meta_data_QQmlObjectModelAttached, qt_static_metacall, nullptr, nullptr}-
736};-
737-
738-
739const QMetaObject *QQmlObjectModelAttached::metaObject() const-
740{-
741 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
742}-
743-
744void *QQmlObjectModelAttached::qt_metacast(const char *_clname)-
745{-
746 if (!_clname) return nullptr;-
747 if (!strcmp(_clname, qt_meta_stringdata_QQmlObjectModelAttached.stringdata0))-
748 return static_cast<void*>(this);-
749 return QObject::qt_metacast(_clname);-
750}-
751-
752int QQmlObjectModelAttached::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
753{-
754 _id = QObject::qt_metacall(_c, _id, _a);-
755 if (_id < 0)-
756 return _id;-
757 if (_c == QMetaObject::InvokeMetaMethod) {-
758 if (_id < 1)-
759 qt_static_metacall(this, _c, _id, _a);-
760 _id -= 1;-
761 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
762 if (_id < 1)-
763 *reinterpret_cast<int*>(_a[0]) = -1;-
764 _id -= 1;-
765 }-
766-
767 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
768 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
769 qt_static_metacall(this, _c, _id, _a);-
770 _id -= 1;-
771 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
772 _id -= 1;-
773 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
774 _id -= 1;-
775 } else if (_c == QMetaObject::QueryPropertyStored) {-
776 _id -= 1;-
777 } else if (_c == QMetaObject::QueryPropertyEditable) {-
778 _id -= 1;-
779 } else if (_c == QMetaObject::QueryPropertyUser) {-
780 _id -= 1;-
781 }-
782-
783 return _id;-
784}-
785-
786-
787void QQmlObjectModelAttached::indexChanged()-
788{-
789 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
790}
executed 240 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlobjectmodel
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
240
791-
792#pragma GCC diagnostic pop-
793-
794-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0