OpenCoverage

moc_qqmldelegatemodel_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmldelegatemodel_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qqmldelegatemodel_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.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#include <QtCore/QList>-
13#include <QtCore/QVector>-
14#if !defined(Q_MOC_OUTPUT_REVISION)-
15#error "The header file 'qqmldelegatemodel_p.h' doesn't include <QObject>."-
16#elif Q_MOC_OUTPUT_REVISION != 67-
17#error "This file was generated using the moc from 5.12.0. It"-
18#error "cannot be used with the include files from this version of Qt."-
19#error "(The moc has changed too much.)"-
20#endif-
21-
22QT_BEGIN_MOC_NAMESPACE-
23QT_WARNING_PUSH-
24QT_WARNING_DISABLE_DEPRECATED-
25struct qt_meta_stringdata_QQmlDelegateModel_t {-
26 QByteArrayData data[47];-
27 char stringdata0[628];-
28};-
29#define QT_MOC_LITERAL(idx, ofs, len) \-
30 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \-
31 qptrdiff(offsetof(qt_meta_stringdata_QQmlDelegateModel_t, stringdata0) + ofs \-
32 - idx * sizeof(QByteArrayData)) \-
33 )-
34static const qt_meta_stringdata_QQmlDelegateModel_t qt_meta_stringdata_QQmlDelegateModel = {-
35 {-
36QT_MOC_LITERAL(0, 0, 17), // "QQmlDelegateModel"-
37QT_MOC_LITERAL(1, 18, 15), // "DefaultProperty"-
38QT_MOC_LITERAL(2, 34, 8), // "delegate"-
39QT_MOC_LITERAL(3, 43, 18), // "filterGroupChanged"-
40QT_MOC_LITERAL(4, 62, 0), // ""-
41QT_MOC_LITERAL(5, 63, 20), // "defaultGroupsChanged"-
42QT_MOC_LITERAL(6, 84, 16), // "rootIndexChanged"-
43QT_MOC_LITERAL(7, 101, 11), // "rowsChanged"-
44QT_MOC_LITERAL(8, 113, 14), // "columnsChanged"-
45QT_MOC_LITERAL(9, 128, 15), // "_q_itemsChanged"-
46QT_MOC_LITERAL(10, 144, 5), // "index"-
47QT_MOC_LITERAL(11, 150, 5), // "count"-
48QT_MOC_LITERAL(12, 156, 12), // "QVector<int>"-
49QT_MOC_LITERAL(13, 169, 5), // "roles"-
50QT_MOC_LITERAL(14, 175, 16), // "_q_itemsInserted"-
51QT_MOC_LITERAL(15, 192, 15), // "_q_itemsRemoved"-
52QT_MOC_LITERAL(16, 208, 13), // "_q_itemsMoved"-
53QT_MOC_LITERAL(17, 222, 4), // "from"-
54QT_MOC_LITERAL(18, 227, 2), // "to"-
55QT_MOC_LITERAL(19, 230, 13), // "_q_modelReset"-
56QT_MOC_LITERAL(20, 244, 15), // "_q_rowsInserted"-
57QT_MOC_LITERAL(21, 260, 11), // "QModelIndex"-
58QT_MOC_LITERAL(22, 272, 23), // "_q_rowsAboutToBeRemoved"-
59QT_MOC_LITERAL(23, 296, 6), // "parent"-
60QT_MOC_LITERAL(24, 303, 5), // "begin"-
61QT_MOC_LITERAL(25, 309, 3), // "end"-
62QT_MOC_LITERAL(26, 313, 14), // "_q_rowsRemoved"-
63QT_MOC_LITERAL(27, 328, 12), // "_q_rowsMoved"-
64QT_MOC_LITERAL(28, 341, 14), // "_q_dataChanged"-
65QT_MOC_LITERAL(29, 356, 16), // "_q_layoutChanged"-
66QT_MOC_LITERAL(30, 373, 28), // "QList<QPersistentModelIndex>"-
67QT_MOC_LITERAL(31, 402, 36), // "QAbstractItemModel::LayoutCha..."-
68QT_MOC_LITERAL(32, 439, 10), // "modelIndex"-
69QT_MOC_LITERAL(33, 450, 3), // "idx"-
70QT_MOC_LITERAL(34, 454, 16), // "parentModelIndex"-
71QT_MOC_LITERAL(35, 471, 5), // "model"-
72QT_MOC_LITERAL(36, 477, 14), // "QQmlComponent*"-
73QT_MOC_LITERAL(37, 492, 13), // "filterOnGroup"-
74QT_MOC_LITERAL(38, 506, 5), // "items"-
75QT_MOC_LITERAL(39, 512, 23), // "QQmlDelegateModelGroup*"-
76QT_MOC_LITERAL(40, 536, 14), // "persistedItems"-
77QT_MOC_LITERAL(41, 551, 6), // "groups"-
78QT_MOC_LITERAL(42, 558, 40), // "QQmlListProperty<QQmlDelegate..."-
79QT_MOC_LITERAL(43, 599, 5), // "parts"-
80QT_MOC_LITERAL(44, 605, 9), // "rootIndex"-
81QT_MOC_LITERAL(45, 615, 4), // "rows"-
82QT_MOC_LITERAL(46, 620, 7) // "columns"-
83-
84 },-
85 "QQmlDelegateModel\0DefaultProperty\0"-
86 "delegate\0filterGroupChanged\0\0"-
87 "defaultGroupsChanged\0rootIndexChanged\0"-
88 "rowsChanged\0columnsChanged\0_q_itemsChanged\0"-
89 "index\0count\0QVector<int>\0roles\0"-
90 "_q_itemsInserted\0_q_itemsRemoved\0"-
91 "_q_itemsMoved\0from\0to\0_q_modelReset\0"-
92 "_q_rowsInserted\0QModelIndex\0"-
93 "_q_rowsAboutToBeRemoved\0parent\0begin\0"-
94 "end\0_q_rowsRemoved\0_q_rowsMoved\0"-
95 "_q_dataChanged\0_q_layoutChanged\0"-
96 "QList<QPersistentModelIndex>\0"-
97 "QAbstractItemModel::LayoutChangeHint\0"-
98 "modelIndex\0idx\0parentModelIndex\0model\0"-
99 "QQmlComponent*\0filterOnGroup\0items\0"-
100 "QQmlDelegateModelGroup*\0persistedItems\0"-
101 "groups\0QQmlListProperty<QQmlDelegateModelGroup>\0"-
102 "parts\0rootIndex\0rows\0columns"-
103};-
104#undef QT_MOC_LITERAL-
105-
106static const uint qt_meta_data_QQmlDelegateModel[] = {-
107-
108 // content:-
109 7, // revision-
110 0, // classname-
111 1, 14, // classinfo-
112 18, 16, // methods-
113 10, 202, // properties-
114 0, 0, // enums/sets-
115 0, 0, // constructors-
116 0, // flags-
117 5, // signalCount-
118-
119 // classinfo: key, value-
120 1, 2,-
121-
122 // signals: name, argc, parameters, tag, flags-
123 3, 0, 124, 4, 0x06 /* Public */,-
124 5, 0, 125, 4, 0x06 /* Public */,-
125 6, 0, 126, 4, 0x06 /* Public */,-
126 7, 0, 127, 4, 0x86 /* Public | MethodRevisioned */,-
127 8, 0, 128, 4, 0x86 /* Public | MethodRevisioned */,-
128-
129 // slots: name, argc, parameters, tag, flags-
130 9, 3, 129, 4, 0x08 /* Private */,-
131 14, 2, 136, 4, 0x08 /* Private */,-
132 15, 2, 141, 4, 0x08 /* Private */,-
133 16, 3, 146, 4, 0x08 /* Private */,-
134 19, 0, 153, 4, 0x08 /* Private */,-
135 20, 3, 154, 4, 0x08 /* Private */,-
136 22, 3, 161, 4, 0x08 /* Private */,-
137 26, 3, 168, 4, 0x08 /* Private */,-
138 27, 5, 175, 4, 0x08 /* Private */,-
139 28, 3, 186, 4, 0x08 /* Private */,-
140 29, 2, 193, 4, 0x08 /* Private */,-
141-
142 // methods: name, argc, parameters, tag, flags-
143 32, 1, 198, 4, 0x02 /* Public */,-
144 34, 0, 201, 4, 0x02 /* Public */,-
145-
146 // signals: revision-
147 0,-
148 0,-
149 0,-
150 12,-
151 12,-
152-
153 // slots: revision-
154 0,-
155 0,-
156 0,-
157 0,-
158 0,-
159 0,-
160 0,-
161 0,-
162 0,-
163 0,-
164 0,-
165-
166 // methods: revision-
167 0,-
168 0,-
169-
170 // signals: parameters-
171 QMetaType::Void,-
172 QMetaType::Void,-
173 QMetaType::Void,-
174 QMetaType::Void,-
175 QMetaType::Void,-
176-
177 // slots: parameters-
178 QMetaType::Void, QMetaType::Int, QMetaType::Int, 0x80000000 | 12, 10, 11, 13,-
179 QMetaType::Void, QMetaType::Int, QMetaType::Int, 10, 11,-
180 QMetaType::Void, QMetaType::Int, QMetaType::Int, 10, 11,-
181 QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 17, 18, 11,-
182 QMetaType::Void,-
183 QMetaType::Void, 0x80000000 | 21, QMetaType::Int, QMetaType::Int, 4, 4, 4,-
184 QMetaType::Void, 0x80000000 | 21, QMetaType::Int, QMetaType::Int, 23, 24, 25,-
185 QMetaType::Void, 0x80000000 | 21, QMetaType::Int, QMetaType::Int, 4, 4, 4,-
186 QMetaType::Void, 0x80000000 | 21, QMetaType::Int, QMetaType::Int, 0x80000000 | 21, QMetaType::Int, 4, 4, 4, 4, 4,-
187 QMetaType::Void, 0x80000000 | 21, 0x80000000 | 21, 0x80000000 | 12, 4, 4, 4,-
188 QMetaType::Void, 0x80000000 | 30, 0x80000000 | 31, 4, 4,-
189-
190 // methods: parameters-
191 QMetaType::QVariant, QMetaType::Int, 33,-
192 QMetaType::QVariant,-
193-
194 // properties: name, type, flags-
195 35, QMetaType::QVariant, 0x00095103,-
196 2, 0x80000000 | 36, 0x0009510b,-
197 37, QMetaType::QString, 0x00495007,-
198 38, 0x80000000 | 39, 0x00095409,-
199 40, 0x80000000 | 39, 0x00095409,-
200 41, 0x80000000 | 42, 0x00095409,-
201 43, QMetaType::QObjectStar, 0x00095401,-
202 44, QMetaType::QVariant, 0x00495103,-
203 45, QMetaType::Int, 0x00c95001,-
204 46, QMetaType::Int, 0x00c95001,-
205-
206 // properties: notify_signal_id-
207 0,-
208 0,-
209 0,-
210 0,-
211 0,-
212 0,-
213 0,-
214 2,-
215 3,-
216 4,-
217-
218 // properties: revision-
219 0,-
220 0,-
221 0,-
222 0,-
223 0,-
224 0,-
225 0,-
226 0,-
227 12,-
228 12,-
229-
230 0 // eod-
231};-
232-
233void QQmlDelegateModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
234{-
235 if (_c == QMetaObject::InvokeMetaMethod) {-
236 QQmlDelegateModel *_t = static_cast<QQmlDelegateModel *>(_o);-
237 Q_UNUSED(_t)-
238 switch (_id) {-
239 case 0: _t->filterGroupChanged(); break;-
240 case 1: _t->defaultGroupsChanged(); break;-
241 case 2: _t->rootIndexChanged(); break;-
242 case 3: _t->rowsChanged(); break;-
243 case 4: _t->columnsChanged(); break;-
244 case 5: _t->_q_itemsChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< const QVector<int>(*)>(_a[3]))); break;-
245 case 6: _t->_q_itemsInserted((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;-
246 case 7: _t->_q_itemsRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;-
247 case 8: _t->_q_itemsMoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;-
248 case 9: _t->_q_modelReset(); break;-
249 case 10: _t->_q_rowsInserted((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;-
250 case 11: _t->_q_rowsAboutToBeRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;-
251 case 12: _t->_q_rowsRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;-
252 case 13: _t->_q_rowsMoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< const QModelIndex(*)>(_a[4])),(*reinterpret_cast< int(*)>(_a[5]))); break;-
253 case 14: _t->_q_dataChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2])),(*reinterpret_cast< const QVector<int>(*)>(_a[3]))); break;-
254 case 15: _t->_q_layoutChanged((*reinterpret_cast< const QList<QPersistentModelIndex>(*)>(_a[1])),(*reinterpret_cast< QAbstractItemModel::LayoutChangeHint(*)>(_a[2]))); break;-
255 case 16: { QVariant _r = _t->modelIndex((*reinterpret_cast< int(*)>(_a[1])));-
256 if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); } break;-
257 case 17: { QVariant _r = _t->parentModelIndex();-
258 if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); } break;-
259 default: ;-
260 }-
261 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
262 switch (_id) {-
263 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
264 case 5:-
265 switch (*reinterpret_cast<int*>(_a[1])) {-
266 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
267 case 2:-
268 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<int> >(); break;-
269 }-
270 break;-
271 case 14:-
272 switch (*reinterpret_cast<int*>(_a[1])) {-
273 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
274 case 2:-
275 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<int> >(); break;-
276 }-
277 break;-
278 }-
279 } else if (_c == QMetaObject::IndexOfMethod) {-
280 int *result = reinterpret_cast<int *>(_a[0]);-
281 {-
282 using _t = void (QQmlDelegateModel::*)();-
283 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModel::filterGroupChanged)) {-
284 *result = 0;-
285 return;-
286 }-
287 }-
288 {-
289 using _t = void (QQmlDelegateModel::*)();-
290 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModel::defaultGroupsChanged)) {-
291 *result = 1;-
292 return;-
293 }-
294 }-
295 {-
296 using _t = void (QQmlDelegateModel::*)();-
297 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModel::rootIndexChanged)) {-
298 *result = 2;-
299 return;-
300 }-
301 }-
302 {-
303 using _t = void (QQmlDelegateModel::*)();-
304 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModel::rowsChanged)) {-
305 *result = 3;-
306 return;-
307 }-
308 }-
309 {-
310 using _t = void (QQmlDelegateModel::*)();-
311 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModel::columnsChanged)) {-
312 *result = 4;-
313 return;-
314 }-
315 }-
316 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
317 switch (_id) {-
318 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
319 case 4:-
320 case 3:-
321 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlDelegateModelGroup* >(); break;-
322 case 5:-
323 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlListProperty<QQmlDelegateModelGroup> >(); break;-
324 }-
325 }-
326-
327#ifndef QT_NO_PROPERTIES-
328 else if (_c == QMetaObject::ReadProperty) {-
329 QQmlDelegateModel *_t = static_cast<QQmlDelegateModel *>(_o);-
330 Q_UNUSED(_t)-
331 void *_v = _a[0];-
332 switch (_id) {-
333 case 0: *reinterpret_cast< QVariant*>(_v) = _t->model(); break;-
334 case 1: *reinterpret_cast< QQmlComponent**>(_v) = _t->delegate(); break;-
335 case 2: *reinterpret_cast< QString*>(_v) = _t->filterGroup(); break;-
336 case 3: *reinterpret_cast< QQmlDelegateModelGroup**>(_v) = _t->items(); break;-
337 case 4: *reinterpret_cast< QQmlDelegateModelGroup**>(_v) = _t->persistedItems(); break;-
338 case 5: *reinterpret_cast< QQmlListProperty<QQmlDelegateModelGroup>*>(_v) = _t->groups(); break;-
339 case 6: *reinterpret_cast< QObject**>(_v) = _t->parts(); break;-
340 case 7: *reinterpret_cast< QVariant*>(_v) = _t->rootIndex(); break;-
341 case 8: *reinterpret_cast< int*>(_v) = _t->rows(); break;-
342 case 9: *reinterpret_cast< int*>(_v) = _t->columns(); break;-
343 default: break;-
344 }-
345 } else if (_c == QMetaObject::WriteProperty) {-
346 QQmlDelegateModel *_t = static_cast<QQmlDelegateModel *>(_o);-
347 Q_UNUSED(_t)-
348 void *_v = _a[0];-
349 switch (_id) {-
350 case 0: _t->setModel(*reinterpret_cast< QVariant*>(_v)); break;-
351 case 1: _t->setDelegate(*reinterpret_cast< QQmlComponent**>(_v)); break;-
352 case 2: _t->setFilterGroup(*reinterpret_cast< QString*>(_v)); break;-
353 case 7: _t->setRootIndex(*reinterpret_cast< QVariant*>(_v)); break;-
354 default: break;-
355 }-
356 } else if (_c == QMetaObject::ResetProperty) {-
357 QQmlDelegateModel *_t = static_cast<QQmlDelegateModel *>(_o);-
358 Q_UNUSED(_t)-
359 switch (_id) {-
360 case 2: _t->resetFilterGroup(); break;-
361 default: break;-
362 }-
363 }-
364#endif // QT_NO_PROPERTIES-
365}-
366-
367QT_INIT_METAOBJECT const QMetaObject QQmlDelegateModel::staticMetaObject = {-
368 { &QQmlInstanceModel::staticMetaObject, qt_meta_stringdata_QQmlDelegateModel.data,-
369 qt_meta_data_QQmlDelegateModel, qt_static_metacall, nullptr, nullptr}-
370};-
371-
372-
373const QMetaObject *QQmlDelegateModel::metaObject() const-
374{-
375 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
376}-
377-
378void *QQmlDelegateModel::qt_metacast(const char *_clname)-
379{-
380 if (!_clname) return nullptr;-
381 if (!strcmp(_clname, qt_meta_stringdata_QQmlDelegateModel.stringdata0))-
382 return static_cast<void*>(this);-
383 if (!strcmp(_clname, "QQmlParserStatus"))-
384 return static_cast< QQmlParserStatus*>(this);-
385 if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))-
386 return static_cast< QQmlParserStatus*>(this);-
387 return QQmlInstanceModel::qt_metacast(_clname);-
388}-
389-
390int QQmlDelegateModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
391{-
392 _id = QQmlInstanceModel::qt_metacall(_c, _id, _a);-
393 if (_id < 0)-
394 return _id;-
395 if (_c == QMetaObject::InvokeMetaMethod) {-
396 if (_id < 18)-
397 qt_static_metacall(this, _c, _id, _a);-
398 _id -= 18;-
399 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
400 if (_id < 18)-
401 qt_static_metacall(this, _c, _id, _a);-
402 _id -= 18;-
403 }-
404#ifndef QT_NO_PROPERTIES-
405 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
406 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
407 qt_static_metacall(this, _c, _id, _a);-
408 _id -= 10;-
409 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
410 _id -= 10;-
411 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
412 _id -= 10;-
413 } else if (_c == QMetaObject::QueryPropertyStored) {-
414 _id -= 10;-
415 } else if (_c == QMetaObject::QueryPropertyEditable) {-
416 _id -= 10;-
417 } else if (_c == QMetaObject::QueryPropertyUser) {-
418 _id -= 10;-
419 }-
420#endif // QT_NO_PROPERTIES-
421 return _id;-
422}-
423-
424// SIGNAL 0-
425void QQmlDelegateModel::filterGroupChanged()-
426{-
427 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
428}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
6
429-
430// SIGNAL 1-
431void QQmlDelegateModel::defaultGroupsChanged()-
432{-
433 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
434}
never executed: end of block
0
435-
436// SIGNAL 2-
437void QQmlDelegateModel::rootIndexChanged()-
438{-
439 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
440}
executed 78 times by 5 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
78
441-
442// SIGNAL 3-
443void QQmlDelegateModel::rowsChanged()-
444{-
445 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);-
446}
never executed: end of block
0
447-
448// SIGNAL 4-
449void QQmlDelegateModel::columnsChanged()-
450{-
451 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);-
452}
never executed: end of block
0
453struct qt_meta_stringdata_QQmlDelegateModelGroup_t {-
454 QByteArrayData data[23];-
455 char stringdata0[230];-
456};-
457#define QT_MOC_LITERAL(idx, ofs, len) \-
458 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \-
459 qptrdiff(offsetof(qt_meta_stringdata_QQmlDelegateModelGroup_t, stringdata0) + ofs \-
460 - idx * sizeof(QByteArrayData)) \-
461 )-
462static const qt_meta_stringdata_QQmlDelegateModelGroup_t qt_meta_stringdata_QQmlDelegateModelGroup = {-
463 {-
464QT_MOC_LITERAL(0, 0, 22), // "QQmlDelegateModelGroup"-
465QT_MOC_LITERAL(1, 23, 12), // "countChanged"-
466QT_MOC_LITERAL(2, 36, 0), // ""-
467QT_MOC_LITERAL(3, 37, 11), // "nameChanged"-
468QT_MOC_LITERAL(4, 49, 21), // "defaultIncludeChanged"-
469QT_MOC_LITERAL(5, 71, 7), // "changed"-
470QT_MOC_LITERAL(6, 79, 12), // "QQmlV4Handle"-
471QT_MOC_LITERAL(7, 92, 7), // "removed"-
472QT_MOC_LITERAL(8, 100, 8), // "inserted"-
473QT_MOC_LITERAL(9, 109, 6), // "insert"-
474QT_MOC_LITERAL(10, 116, 15), // "QQmlV4Function*"-
475QT_MOC_LITERAL(11, 132, 6), // "create"-
476QT_MOC_LITERAL(12, 139, 7), // "resolve"-
477QT_MOC_LITERAL(13, 147, 6), // "remove"-
478QT_MOC_LITERAL(14, 154, 9), // "addGroups"-
479QT_MOC_LITERAL(15, 164, 12), // "removeGroups"-
480QT_MOC_LITERAL(16, 177, 9), // "setGroups"-
481QT_MOC_LITERAL(17, 187, 4), // "move"-
482QT_MOC_LITERAL(18, 192, 3), // "get"-
483QT_MOC_LITERAL(19, 196, 5), // "index"-
484QT_MOC_LITERAL(20, 202, 5), // "count"-
485QT_MOC_LITERAL(21, 208, 4), // "name"-
486QT_MOC_LITERAL(22, 213, 16) // "includeByDefault"-
487-
488 },-
489 "QQmlDelegateModelGroup\0countChanged\0"-
490 "\0nameChanged\0defaultIncludeChanged\0"-
491 "changed\0QQmlV4Handle\0removed\0inserted\0"-
492 "insert\0QQmlV4Function*\0create\0resolve\0"-
493 "remove\0addGroups\0removeGroups\0setGroups\0"-
494 "move\0get\0index\0count\0name\0includeByDefault"-
495};-
496#undef QT_MOC_LITERAL-
497-
498static const uint qt_meta_data_QQmlDelegateModelGroup[] = {-
499-
500 // content:-
501 7, // revision-
502 0, // classname-
503 0, 0, // classinfo-
504 13, 14, // methods-
505 3, 114, // properties-
506 0, 0, // enums/sets-
507 0, 0, // constructors-
508 0, // flags-
509 4, // signalCount-
510-
511 // signals: name, argc, parameters, tag, flags-
512 1, 0, 79, 2, 0x06 /* Public */,-
513 3, 0, 80, 2, 0x06 /* Public */,-
514 4, 0, 81, 2, 0x06 /* Public */,-
515 5, 2, 82, 2, 0x06 /* Public */,-
516-
517 // slots: name, argc, parameters, tag, flags-
518 9, 1, 87, 2, 0x0a /* Public */,-
519 11, 1, 90, 2, 0x0a /* Public */,-
520 12, 1, 93, 2, 0x0a /* Public */,-
521 13, 1, 96, 2, 0x0a /* Public */,-
522 14, 1, 99, 2, 0x0a /* Public */,-
523 15, 1, 102, 2, 0x0a /* Public */,-
524 16, 1, 105, 2, 0x0a /* Public */,-
525 17, 1, 108, 2, 0x0a /* Public */,-
526-
527 // methods: name, argc, parameters, tag, flags-
528 18, 1, 111, 2, 0x02 /* Public */,-
529-
530 // signals: parameters-
531 QMetaType::Void,-
532 QMetaType::Void,-
533 QMetaType::Void,-
534 QMetaType::Void, 0x80000000 | 6, 0x80000000 | 6, 7, 8,-
535-
536 // slots: parameters-
537 QMetaType::Void, 0x80000000 | 10, 2,-
538 QMetaType::Void, 0x80000000 | 10, 2,-
539 QMetaType::Void, 0x80000000 | 10, 2,-
540 QMetaType::Void, 0x80000000 | 10, 2,-
541 QMetaType::Void, 0x80000000 | 10, 2,-
542 QMetaType::Void, 0x80000000 | 10, 2,-
543 QMetaType::Void, 0x80000000 | 10, 2,-
544 QMetaType::Void, 0x80000000 | 10, 2,-
545-
546 // methods: parameters-
547 0x80000000 | 6, QMetaType::Int, 19,-
548-
549 // properties: name, type, flags-
550 20, QMetaType::Int, 0x00495001,-
551 21, QMetaType::QString, 0x00495103,-
552 22, QMetaType::Bool, 0x00495003,-
553-
554 // properties: notify_signal_id-
555 0,-
556 1,-
557 2,-
558-
559 0 // eod-
560};-
561-
562void QQmlDelegateModelGroup::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
563{-
564 if (_c == QMetaObject::InvokeMetaMethod) {-
565 QQmlDelegateModelGroup *_t = static_cast<QQmlDelegateModelGroup *>(_o);-
566 Q_UNUSED(_t)-
567 switch (_id) {-
568 case 0: _t->countChanged(); break;-
569 case 1: _t->nameChanged(); break;-
570 case 2: _t->defaultIncludeChanged(); break;-
571 case 3: _t->changed((*reinterpret_cast< const QQmlV4Handle(*)>(_a[1])),(*reinterpret_cast< const QQmlV4Handle(*)>(_a[2]))); break;-
572 case 4: _t->insert((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
573 case 5: _t->create((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
574 case 6: _t->resolve((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
575 case 7: _t->remove((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
576 case 8: _t->addGroups((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
577 case 9: _t->removeGroups((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
578 case 10: _t->setGroups((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
579 case 11: _t->move((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
580 case 12: { QQmlV4Handle _r = _t->get((*reinterpret_cast< int(*)>(_a[1])));-
581 if (_a[0]) *reinterpret_cast< QQmlV4Handle*>(_a[0]) = std::move(_r); } break;-
582 default: ;-
583 }-
584 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
585 switch (_id) {-
586 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
587 case 3:-
588 switch (*reinterpret_cast<int*>(_a[1])) {-
589 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
590 case 1:-
591 case 0:-
592 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlV4Handle >(); break;-
593 }-
594 break;-
595 }-
596 } else if (_c == QMetaObject::IndexOfMethod) {-
597 int *result = reinterpret_cast<int *>(_a[0]);-
598 {-
599 using _t = void (QQmlDelegateModelGroup::*)();-
600 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModelGroup::countChanged)) {-
601 *result = 0;-
602 return;-
603 }-
604 }-
605 {-
606 using _t = void (QQmlDelegateModelGroup::*)();-
607 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModelGroup::nameChanged)) {-
608 *result = 1;-
609 return;-
610 }-
611 }-
612 {-
613 using _t = void (QQmlDelegateModelGroup::*)();-
614 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModelGroup::defaultIncludeChanged)) {-
615 *result = 2;-
616 return;-
617 }-
618 }-
619 {-
620 using _t = void (QQmlDelegateModelGroup::*)(const QQmlV4Handle & , const QQmlV4Handle & );-
621 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModelGroup::changed)) {-
622 *result = 3;-
623 return;-
624 }-
625 }-
626 }-
627#ifndef QT_NO_PROPERTIES-
628 else if (_c == QMetaObject::ReadProperty) {-
629 QQmlDelegateModelGroup *_t = static_cast<QQmlDelegateModelGroup *>(_o);-
630 Q_UNUSED(_t)-
631 void *_v = _a[0];-
632 switch (_id) {-
633 case 0: *reinterpret_cast< int*>(_v) = _t->count(); break;-
634 case 1: *reinterpret_cast< QString*>(_v) = _t->name(); break;-
635 case 2: *reinterpret_cast< bool*>(_v) = _t->defaultInclude(); break;-
636 default: break;-
637 }-
638 } else if (_c == QMetaObject::WriteProperty) {-
639 QQmlDelegateModelGroup *_t = static_cast<QQmlDelegateModelGroup *>(_o);-
640 Q_UNUSED(_t)-
641 void *_v = _a[0];-
642 switch (_id) {-
643 case 1: _t->setName(*reinterpret_cast< QString*>(_v)); break;-
644 case 2: _t->setDefaultInclude(*reinterpret_cast< bool*>(_v)); break;-
645 default: break;-
646 }-
647 } else if (_c == QMetaObject::ResetProperty) {-
648 }-
649#endif // QT_NO_PROPERTIES-
650}-
651-
652QT_INIT_METAOBJECT const QMetaObject QQmlDelegateModelGroup::staticMetaObject = {-
653 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlDelegateModelGroup.data,-
654 qt_meta_data_QQmlDelegateModelGroup, qt_static_metacall, nullptr, nullptr}-
655};-
656-
657-
658const QMetaObject *QQmlDelegateModelGroup::metaObject() const-
659{-
660 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
661}-
662-
663void *QQmlDelegateModelGroup::qt_metacast(const char *_clname)-
664{-
665 if (!_clname) return nullptr;-
666 if (!strcmp(_clname, qt_meta_stringdata_QQmlDelegateModelGroup.stringdata0))-
667 return static_cast<void*>(this);-
668 return QObject::qt_metacast(_clname);-
669}-
670-
671int QQmlDelegateModelGroup::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
672{-
673 _id = QObject::qt_metacall(_c, _id, _a);-
674 if (_id < 0)-
675 return _id;-
676 if (_c == QMetaObject::InvokeMetaMethod) {-
677 if (_id < 13)-
678 qt_static_metacall(this, _c, _id, _a);-
679 _id -= 13;-
680 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
681 if (_id < 13)-
682 qt_static_metacall(this, _c, _id, _a);-
683 _id -= 13;-
684 }-
685#ifndef QT_NO_PROPERTIES-
686 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
687 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
688 qt_static_metacall(this, _c, _id, _a);-
689 _id -= 3;-
690 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
691 _id -= 3;-
692 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
693 _id -= 3;-
694 } else if (_c == QMetaObject::QueryPropertyStored) {-
695 _id -= 3;-
696 } else if (_c == QMetaObject::QueryPropertyEditable) {-
697 _id -= 3;-
698 } else if (_c == QMetaObject::QueryPropertyUser) {-
699 _id -= 3;-
700 }-
701#endif // QT_NO_PROPERTIES-
702 return _id;-
703}-
704-
705// SIGNAL 0-
706void QQmlDelegateModelGroup::countChanged()-
707{-
708 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
709}
executed 16458 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
16458
710-
711// SIGNAL 1-
712void QQmlDelegateModelGroup::nameChanged()-
713{-
714 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
715}
executed 1074 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
1074
716-
717// SIGNAL 2-
718void QQmlDelegateModelGroup::defaultIncludeChanged()-
719{-
720 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
721}
executed 6164 times by 27 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_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
6164
722-
723// SIGNAL 3-
724void QQmlDelegateModelGroup::changed(const QQmlV4Handle & _t1, const QQmlV4Handle & _t2)-
725{-
726 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
727 QMetaObject::activate(this, &staticMetaObject, 3, _a);-
728}
executed 82 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
82
729struct qt_meta_stringdata_QQmlDelegateModelAttached_t {-
730 QByteArrayData data[8];-
731 char stringdata0[104];-
732};-
733#define QT_MOC_LITERAL(idx, ofs, len) \-
734 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \-
735 qptrdiff(offsetof(qt_meta_stringdata_QQmlDelegateModelAttached_t, stringdata0) + ofs \-
736 - idx * sizeof(QByteArrayData)) \-
737 )-
738static const qt_meta_stringdata_QQmlDelegateModelAttached_t qt_meta_stringdata_QQmlDelegateModelAttached = {-
739 {-
740QT_MOC_LITERAL(0, 0, 25), // "QQmlDelegateModelAttached"-
741QT_MOC_LITERAL(1, 26, 13), // "groupsChanged"-
742QT_MOC_LITERAL(2, 40, 0), // ""-
743QT_MOC_LITERAL(3, 41, 17), // "unresolvedChanged"-
744QT_MOC_LITERAL(4, 59, 5), // "model"-
745QT_MOC_LITERAL(5, 65, 18), // "QQmlDelegateModel*"-
746QT_MOC_LITERAL(6, 84, 6), // "groups"-
747QT_MOC_LITERAL(7, 91, 12) // "isUnresolved"-
748-
749 },-
750 "QQmlDelegateModelAttached\0groupsChanged\0"-
751 "\0unresolvedChanged\0model\0QQmlDelegateModel*\0"-
752 "groups\0isUnresolved"-
753};-
754#undef QT_MOC_LITERAL-
755-
756static const uint qt_meta_data_QQmlDelegateModelAttached[] = {-
757-
758 // content:-
759 7, // revision-
760 0, // classname-
761 0, 0, // classinfo-
762 2, 14, // methods-
763 3, 26, // properties-
764 0, 0, // enums/sets-
765 0, 0, // constructors-
766 0, // flags-
767 2, // signalCount-
768-
769 // signals: name, argc, parameters, tag, flags-
770 1, 0, 24, 2, 0x06 /* Public */,-
771 3, 0, 25, 2, 0x06 /* Public */,-
772-
773 // signals: parameters-
774 QMetaType::Void,-
775 QMetaType::Void,-
776-
777 // properties: name, type, flags-
778 4, 0x80000000 | 5, 0x00095409,-
779 6, QMetaType::QStringList, 0x00495103,-
780 7, QMetaType::Bool, 0x00495001,-
781-
782 // properties: notify_signal_id-
783 0,-
784 0,-
785 1,-
786-
787 0 // eod-
788};-
789-
790void QQmlDelegateModelAttached::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
791{-
792 if (_c == QMetaObject::InvokeMetaMethod) {-
793 QQmlDelegateModelAttached *_t = static_cast<QQmlDelegateModelAttached *>(_o);-
794 Q_UNUSED(_t)-
795 switch (_id) {-
796 case 0: _t->groupsChanged(); break;-
797 case 1: _t->unresolvedChanged(); break;-
798 default: ;-
799 }-
800 } else if (_c == QMetaObject::IndexOfMethod) {-
801 int *result = reinterpret_cast<int *>(_a[0]);-
802 {-
803 using _t = void (QQmlDelegateModelAttached::*)();-
804 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModelAttached::groupsChanged)) {-
805 *result = 0;-
806 return;-
807 }-
808 }-
809 {-
810 using _t = void (QQmlDelegateModelAttached::*)();-
811 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlDelegateModelAttached::unresolvedChanged)) {-
812 *result = 1;-
813 return;-
814 }-
815 }-
816 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
817 switch (_id) {-
818 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
819 case 0:-
820 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlDelegateModel* >(); break;-
821 }-
822 }-
823-
824#ifndef QT_NO_PROPERTIES-
825 else if (_c == QMetaObject::ReadProperty) {-
826 QQmlDelegateModelAttached *_t = static_cast<QQmlDelegateModelAttached *>(_o);-
827 Q_UNUSED(_t)-
828 void *_v = _a[0];-
829 switch (_id) {-
830 case 0: *reinterpret_cast< QQmlDelegateModel**>(_v) = _t->model(); break;-
831 case 1: *reinterpret_cast< QStringList*>(_v) = _t->groups(); break;-
832 case 2: *reinterpret_cast< bool*>(_v) = _t->isUnresolved(); break;-
833 default: break;-
834 }-
835 } else if (_c == QMetaObject::WriteProperty) {-
836 QQmlDelegateModelAttached *_t = static_cast<QQmlDelegateModelAttached *>(_o);-
837 Q_UNUSED(_t)-
838 void *_v = _a[0];-
839 switch (_id) {-
840 case 1: _t->setGroups(*reinterpret_cast< QStringList*>(_v)); break;-
841 default: break;-
842 }-
843 } else if (_c == QMetaObject::ResetProperty) {-
844 }-
845#endif // QT_NO_PROPERTIES-
846}-
847-
848QT_INIT_METAOBJECT const QMetaObject QQmlDelegateModelAttached::staticMetaObject = {-
849 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlDelegateModelAttached.data,-
850 qt_meta_data_QQmlDelegateModelAttached, qt_static_metacall, nullptr, nullptr}-
851};-
852-
853-
854const QMetaObject *QQmlDelegateModelAttached::metaObject() const-
855{-
856 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
857}-
858-
859void *QQmlDelegateModelAttached::qt_metacast(const char *_clname)-
860{-
861 if (!_clname) return nullptr;-
862 if (!strcmp(_clname, qt_meta_stringdata_QQmlDelegateModelAttached.stringdata0))-
863 return static_cast<void*>(this);-
864 return QObject::qt_metacast(_clname);-
865}-
866-
867int QQmlDelegateModelAttached::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
868{-
869 _id = QObject::qt_metacall(_c, _id, _a);-
870 if (_id < 0)-
871 return _id;-
872 if (_c == QMetaObject::InvokeMetaMethod) {-
873 if (_id < 2)-
874 qt_static_metacall(this, _c, _id, _a);-
875 _id -= 2;-
876 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
877 if (_id < 2)-
878 *reinterpret_cast<int*>(_a[0]) = -1;-
879 _id -= 2;-
880 }-
881#ifndef QT_NO_PROPERTIES-
882 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
883 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
884 qt_static_metacall(this, _c, _id, _a);-
885 _id -= 3;-
886 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
887 _id -= 3;-
888 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
889 _id -= 3;-
890 } else if (_c == QMetaObject::QueryPropertyStored) {-
891 _id -= 3;-
892 } else if (_c == QMetaObject::QueryPropertyEditable) {-
893 _id -= 3;-
894 } else if (_c == QMetaObject::QueryPropertyUser) {-
895 _id -= 3;-
896 }-
897#endif // QT_NO_PROPERTIES-
898 return _id;-
899}-
900-
901// SIGNAL 0-
902void QQmlDelegateModelAttached::groupsChanged()-
903{-
904 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
905}
executed 92 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
92
906-
907// SIGNAL 1-
908void QQmlDelegateModelAttached::unresolvedChanged()-
909{-
910 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
911}
never executed: end of block
0
912QT_WARNING_POP-
913QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0