OpenCoverage

moc_qqmllistmodel_p.cpp

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

Generated by Squish Coco 4.2.0