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
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qqmldelegatemodel_p_p.h'-
3**-
4** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.0)-
5**-
6** WARNING! All changes made in this file will be lost!-
7*****************************************************************************/-
8-
9#include "../types/qqmldelegatemodel_p_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qqmldelegatemodel_p_p.h' doesn't include <QObject>."-
14#elif Q_MOC_OUTPUT_REVISION != 67-
15#error "This file was generated using the moc from 5.12.0. It"-
16#error "cannot be used with the include files from this version of Qt."-
17#error "(The moc has changed too much.)"-
18#endif-
19-
20QT_BEGIN_MOC_NAMESPACE-
21QT_WARNING_PUSH-
22QT_WARNING_DISABLE_DEPRECATED-
23struct qt_meta_stringdata_QQmlDelegateModelItem_t {-
24 QByteArrayData data[9];-
25 char stringdata0[89];-
26};-
27#define QT_MOC_LITERAL(idx, ofs, len) \-
28 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \-
29 qptrdiff(offsetof(qt_meta_stringdata_QQmlDelegateModelItem_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQmlDelegateModelItem_t qt_meta_stringdata_QQmlDelegateModelItem = {-
33 {-
34QT_MOC_LITERAL(0, 0, 21), // "QQmlDelegateModelItem"-
35QT_MOC_LITERAL(1, 22, 17), // "modelIndexChanged"-
36QT_MOC_LITERAL(2, 40, 0), // ""-
37QT_MOC_LITERAL(3, 41, 10), // "rowChanged"-
38QT_MOC_LITERAL(4, 52, 13), // "columnChanged"-
39QT_MOC_LITERAL(5, 66, 5), // "index"-
40QT_MOC_LITERAL(6, 72, 3), // "row"-
41QT_MOC_LITERAL(7, 76, 6), // "column"-
42QT_MOC_LITERAL(8, 83, 5) // "model"-
43-
44 },-
45 "QQmlDelegateModelItem\0modelIndexChanged\0"-
46 "\0rowChanged\0columnChanged\0index\0row\0"-
47 "column\0model"-
48};-
49#undef QT_MOC_LITERAL-
50-
51static const uint qt_meta_data_QQmlDelegateModelItem[] = {-
52-
53 // content:-
54 7, // revision-
55 0, // classname-
56 0, 0, // classinfo-
57 3, 14, // methods-
58 4, 32, // properties-
59 0, 0, // enums/sets-
60 0, 0, // constructors-
61 0, // flags-
62 3, // signalCount-
63-
64 // signals: name, argc, parameters, tag, flags-
65 1, 0, 29, 2, 0x06 /* Public */,-
66 3, 0, 30, 2, 0x06 /* Public */,-
67 4, 0, 31, 2, 0x06 /* Public */,-
68-
69 // signals: parameters-
70 QMetaType::Void,-
71 QMetaType::Void,-
72 QMetaType::Void,-
73-
74 // properties: name, type, flags-
75 5, QMetaType::Int, 0x00495001,-
76 6, QMetaType::Int, 0x00495003,-
77 7, QMetaType::Int, 0x00495003,-
78 8, QMetaType::QObjectStar, 0x00095401,-
79-
80 // properties: notify_signal_id-
81 0,-
82 1,-
83 2,-
84 0,-
85-
86 0 // eod-
87};-
88-
89void QQmlDelegateModelItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
90{-
91 if (_c == QMetaObject::InvokeMetaMethod) {-
92 QQmlDelegateModelItem *_t = static_cast<QQmlDelegateModelItem *>(_o);-
93 Q_UNUSED(_t)-
94 switch (_id) {-
95 case 0: _t->modelIndexChanged(); break;-
96 case 1: _t->rowChanged(); break;-
97 case 2: _t->columnChanged(); break;-
98 default: ;-
99 }-
100 } else if (_c == QMetaObject::IndexOfMethod) {-
101 int *result = reinterpret_cast<int *>(_a[0]);-
102 {-
103 using _t = void (QQmlDelegateModelItem::*)();-
104 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModelItem::modelIndexChanged)) {-
105 *result = 0;-
106 return;-
107 }-
108 }-
109 {-
110 using _t = void (QQmlDelegateModelItem::*)();-
111 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModelItem::rowChanged)) {-
112 *result = 1;-
113 return;-
114 }-
115 }-
116 {-
117 using _t = void (QQmlDelegateModelItem::*)();-
118 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModelItem::columnChanged)) {-
119 *result = 2;-
120 return;-
121 }-
122 }-
123 }-
124#ifndef QT_NO_PROPERTIES-
125 else if (_c == QMetaObject::ReadProperty) {-
126 QQmlDelegateModelItem *_t = static_cast<QQmlDelegateModelItem *>(_o);-
127 Q_UNUSED(_t)-
128 void *_v = _a[0];-
129 switch (_id) {-
130 case 0: *reinterpret_cast< int*>(_v) = _t->modelIndex(); break;-
131 case 1: *reinterpret_cast< int*>(_v) = _t->row; break;-
132 case 2: *reinterpret_cast< int*>(_v) = _t->column; break;-
133 case 3: *reinterpret_cast< QObject**>(_v) = _t->modelObject(); break;-
134 default: break;-
135 }-
136 } else if (_c == QMetaObject::WriteProperty) {-
137 QQmlDelegateModelItem *_t = static_cast<QQmlDelegateModelItem *>(_o);-
138 Q_UNUSED(_t)-
139 void *_v = _a[0];-
140 switch (_id) {-
141 case 1:-
142 if (_t->row != *reinterpret_cast< int*>(_v)) {-
143 _t->row = *reinterpret_cast< int*>(_v);-
144 Q_EMIT _t->rowChanged();-
145 }-
146 break;-
147 case 2:-
148 if (_t->column != *reinterpret_cast< int*>(_v)) {-
149 _t->column = *reinterpret_cast< int*>(_v);-
150 Q_EMIT _t->columnChanged();-
151 }-
152 break;-
153 default: break;-
154 }-
155 } else if (_c == QMetaObject::ResetProperty) {-
156 }-
157#endif // QT_NO_PROPERTIES-
158 Q_UNUSED(_a);-
159}-
160-
161QT_INIT_METAOBJECT const QMetaObject QQmlDelegateModelItem::staticMetaObject = {-
162 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlDelegateModelItem.data,-
163 qt_meta_data_QQmlDelegateModelItem, qt_static_metacall, nullptr, nullptr}-
164};-
165-
166-
167const QMetaObject *QQmlDelegateModelItem::metaObject() const-
168{-
169 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
170}-
171-
172void *QQmlDelegateModelItem::qt_metacast(const char *_clname)-
173{-
174 if (!_clname) return nullptr;-
175 if (!strcmp(_clname, qt_meta_stringdata_QQmlDelegateModelItem.stringdata0))-
176 return static_cast<void*>(this);-
177 return QObject::qt_metacast(_clname);-
178}-
179-
180int QQmlDelegateModelItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
181{-
182 _id = QObject::qt_metacall(_c, _id, _a);-
183 if (_id < 0)-
184 return _id;-
185 if (_c == QMetaObject::InvokeMetaMethod) {-
186 if (_id < 3)-
187 qt_static_metacall(this, _c, _id, _a);-
188 _id -= 3;-
189 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
190 if (_id < 3)-
191 *reinterpret_cast<int*>(_a[0]) = -1;-
192 _id -= 3;-
193 }-
194#ifndef QT_NO_PROPERTIES-
195 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
196 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
197 qt_static_metacall(this, _c, _id, _a);-
198 _id -= 4;-
199 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
200 _id -= 4;-
201 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
202 _id -= 4;-
203 } else if (_c == QMetaObject::QueryPropertyStored) {-
204 _id -= 4;-
205 } else if (_c == QMetaObject::QueryPropertyEditable) {-
206 _id -= 4;-
207 } else if (_c == QMetaObject::QueryPropertyUser) {-
208 _id -= 4;-
209 }-
210#endif // QT_NO_PROPERTIES-
211 return _id;-
212}-
213-
214// SIGNAL 0-
215void QQmlDelegateModelItem::modelIndexChanged()-
216{-
217 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
218}
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
219-
220// SIGNAL 1-
221void QQmlDelegateModelItem::rowChanged()-
222{-
223 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
224}
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
225-
226// SIGNAL 2-
227void QQmlDelegateModelItem::columnChanged()-
228{-
229 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
230}
executed 1193 times by 5 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1193
231struct qt_meta_stringdata_QQmlPartsModel_t {-
232 QByteArrayData data[4];-
233 char stringdata0[49];-
234};-
235#define QT_MOC_LITERAL(idx, ofs, len) \-
236 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \-
237 qptrdiff(offsetof(qt_meta_stringdata_QQmlPartsModel_t, stringdata0) + ofs \-
238 - idx * sizeof(QByteArrayData)) \-
239 )-
240static const qt_meta_stringdata_QQmlPartsModel_t qt_meta_stringdata_QQmlPartsModel = {-
241 {-
242QT_MOC_LITERAL(0, 0, 14), // "QQmlPartsModel"-
243QT_MOC_LITERAL(1, 15, 18), // "filterGroupChanged"-
244QT_MOC_LITERAL(2, 34, 0), // ""-
245QT_MOC_LITERAL(3, 35, 13) // "filterOnGroup"-
246-
247 },-
248 "QQmlPartsModel\0filterGroupChanged\0\0"-
249 "filterOnGroup"-
250};-
251#undef QT_MOC_LITERAL-
252-
253static const uint qt_meta_data_QQmlPartsModel[] = {-
254-
255 // content:-
256 7, // revision-
257 0, // classname-
258 0, 0, // classinfo-
259 1, 14, // methods-
260 1, 20, // properties-
261 0, 0, // enums/sets-
262 0, 0, // constructors-
263 0, // flags-
264 1, // signalCount-
265-
266 // signals: name, argc, parameters, tag, flags-
267 1, 0, 19, 2, 0x06 /* Public */,-
268-
269 // signals: parameters-
270 QMetaType::Void,-
271-
272 // properties: name, type, flags-
273 3, QMetaType::QString, 0x00495007,-
274-
275 // properties: notify_signal_id-
276 0,-
277-
278 0 // eod-
279};-
280-
281void QQmlPartsModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
282{-
283 if (_c == QMetaObject::InvokeMetaMethod) {-
284 QQmlPartsModel *_t = static_cast<QQmlPartsModel *>(_o);-
285 Q_UNUSED(_t)-
286 switch (_id) {-
287 case 0: _t->filterGroupChanged(); break;-
288 default: ;-
289 }-
290 } else if (_c == QMetaObject::IndexOfMethod) {-
291 int *result = reinterpret_cast<int *>(_a[0]);-
292 {-
293 using _t = void (QQmlPartsModel::*)();-
294 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlPartsModel::filterGroupChanged)) {-
295 *result = 0;-
296 return;-
297 }-
298 }-
299 }-
300#ifndef QT_NO_PROPERTIES-
301 else if (_c == QMetaObject::ReadProperty) {-
302 QQmlPartsModel *_t = static_cast<QQmlPartsModel *>(_o);-
303 Q_UNUSED(_t)-
304 void *_v = _a[0];-
305 switch (_id) {-
306 case 0: *reinterpret_cast< QString*>(_v) = _t->filterGroup(); break;-
307 default: break;-
308 }-
309 } else if (_c == QMetaObject::WriteProperty) {-
310 QQmlPartsModel *_t = static_cast<QQmlPartsModel *>(_o);-
311 Q_UNUSED(_t)-
312 void *_v = _a[0];-
313 switch (_id) {-
314 case 0: _t->setFilterGroup(*reinterpret_cast< QString*>(_v)); break;-
315 default: break;-
316 }-
317 } else if (_c == QMetaObject::ResetProperty) {-
318 QQmlPartsModel *_t = static_cast<QQmlPartsModel *>(_o);-
319 Q_UNUSED(_t)-
320 switch (_id) {-
321 case 0: _t->resetFilterGroup(); break;-
322 default: break;-
323 }-
324 }-
325#endif // QT_NO_PROPERTIES-
326 Q_UNUSED(_a);-
327}-
328-
329QT_INIT_METAOBJECT const QMetaObject QQmlPartsModel::staticMetaObject = {-
330 { &QQmlInstanceModel::staticMetaObject, qt_meta_stringdata_QQmlPartsModel.data,-
331 qt_meta_data_QQmlPartsModel, qt_static_metacall, nullptr, nullptr}-
332};-
333-
334-
335const QMetaObject *QQmlPartsModel::metaObject() const-
336{-
337 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
338}-
339-
340void *QQmlPartsModel::qt_metacast(const char *_clname)-
341{-
342 if (!_clname) return nullptr;-
343 if (!strcmp(_clname, qt_meta_stringdata_QQmlPartsModel.stringdata0))-
344 return static_cast<void*>(this);-
345 if (!strcmp(_clname, "QQmlDelegateModelGroupEmitter"))-
346 return static_cast< QQmlDelegateModelGroupEmitter*>(this);-
347 return QQmlInstanceModel::qt_metacast(_clname);-
348}-
349-
350int QQmlPartsModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
351{-
352 _id = QQmlInstanceModel::qt_metacall(_c, _id, _a);-
353 if (_id < 0)-
354 return _id;-
355 if (_c == QMetaObject::InvokeMetaMethod) {-
356 if (_id < 1)-
357 qt_static_metacall(this, _c, _id, _a);-
358 _id -= 1;-
359 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
360 if (_id < 1)-
361 *reinterpret_cast<int*>(_a[0]) = -1;-
362 _id -= 1;-
363 }-
364#ifndef QT_NO_PROPERTIES-
365 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
366 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
367 qt_static_metacall(this, _c, _id, _a);-
368 _id -= 1;-
369 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
370 _id -= 1;-
371 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
372 _id -= 1;-
373 } else if (_c == QMetaObject::QueryPropertyStored) {-
374 _id -= 1;-
375 } else if (_c == QMetaObject::QueryPropertyEditable) {-
376 _id -= 1;-
377 } else if (_c == QMetaObject::QueryPropertyUser) {-
378 _id -= 1;-
379 }-
380#endif // QT_NO_PROPERTIES-
381 return _id;-
382}-
383-
384// SIGNAL 0-
385void QQmlPartsModel::filterGroupChanged()-
386{-
387 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
388}
executed 376 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
376
389struct qt_meta_stringdata_QQmlDelegateModelParts_t {-
390 QByteArrayData data[1];-
391 char stringdata0[23];-
392};-
393#define QT_MOC_LITERAL(idx, ofs, len) \-
394 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \-
395 qptrdiff(offsetof(qt_meta_stringdata_QQmlDelegateModelParts_t, stringdata0) + ofs \-
396 - idx * sizeof(QByteArrayData)) \-
397 )-
398static const qt_meta_stringdata_QQmlDelegateModelParts_t qt_meta_stringdata_QQmlDelegateModelParts = {-
399 {-
400QT_MOC_LITERAL(0, 0, 22) // "QQmlDelegateModelParts"-
401-
402 },-
403 "QQmlDelegateModelParts"-
404};-
405#undef QT_MOC_LITERAL-
406-
407static const uint qt_meta_data_QQmlDelegateModelParts[] = {-
408-
409 // content:-
410 7, // revision-
411 0, // classname-
412 0, 0, // classinfo-
413 0, 0, // methods-
414 0, 0, // properties-
415 0, 0, // enums/sets-
416 0, 0, // constructors-
417 0, // flags-
418 0, // signalCount-
419-
420 0 // eod-
421};-
422-
423void QQmlDelegateModelParts::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
424{-
425 Q_UNUSED(_o);-
426 Q_UNUSED(_id);-
427 Q_UNUSED(_c);-
428 Q_UNUSED(_a);-
429}-
430-
431QT_INIT_METAOBJECT const QMetaObject QQmlDelegateModelParts::staticMetaObject = {-
432 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlDelegateModelParts.data,-
433 qt_meta_data_QQmlDelegateModelParts, qt_static_metacall, nullptr, nullptr}-
434};-
435-
436-
437const QMetaObject *QQmlDelegateModelParts::metaObject() const-
438{-
439 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
440}-
441-
442void *QQmlDelegateModelParts::qt_metacast(const char *_clname)-
443{-
444 if (!_clname) return nullptr;-
445 if (!strcmp(_clname, qt_meta_stringdata_QQmlDelegateModelParts.stringdata0))-
446 return static_cast<void*>(this);-
447 return QObject::qt_metacast(_clname);-
448}-
449-
450int QQmlDelegateModelParts::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
451{-
452 _id = QObject::qt_metacall(_c, _id, _a);-
453 return _id;-
454}-
455QT_WARNING_POP-
456QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0