OpenCoverage

moc_qqmlobjectmodel_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmlobjectmodel_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qqmlobjectmodel_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/qqmlobjectmodel_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qqmlobjectmodel_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_QQmlInstanceModel_t {-
24 QByteArrayData data[13];-
25 char stringdata0[130];-
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_QQmlInstanceModel_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQmlInstanceModel_t qt_meta_stringdata_QQmlInstanceModel = {-
33 {-
34QT_MOC_LITERAL(0, 0, 17), // "QQmlInstanceModel"-
35QT_MOC_LITERAL(1, 18, 12), // "countChanged"-
36QT_MOC_LITERAL(2, 31, 0), // ""-
37QT_MOC_LITERAL(3, 32, 12), // "modelUpdated"-
38QT_MOC_LITERAL(4, 45, 13), // "QQmlChangeSet"-
39QT_MOC_LITERAL(5, 59, 9), // "changeSet"-
40QT_MOC_LITERAL(6, 69, 5), // "reset"-
41QT_MOC_LITERAL(7, 75, 11), // "createdItem"-
42QT_MOC_LITERAL(8, 87, 5), // "index"-
43QT_MOC_LITERAL(9, 93, 6), // "object"-
44QT_MOC_LITERAL(10, 100, 8), // "initItem"-
45QT_MOC_LITERAL(11, 109, 14), // "destroyingItem"-
46QT_MOC_LITERAL(12, 124, 5) // "count"-
47-
48 },-
49 "QQmlInstanceModel\0countChanged\0\0"-
50 "modelUpdated\0QQmlChangeSet\0changeSet\0"-
51 "reset\0createdItem\0index\0object\0initItem\0"-
52 "destroyingItem\0count"-
53};-
54#undef QT_MOC_LITERAL-
55-
56static const uint qt_meta_data_QQmlInstanceModel[] = {-
57-
58 // content:-
59 7, // revision-
60 0, // classname-
61 0, 0, // classinfo-
62 5, 14, // methods-
63 1, 58, // properties-
64 0, 0, // enums/sets-
65 0, 0, // constructors-
66 0, // flags-
67 5, // signalCount-
68-
69 // signals: name, argc, parameters, tag, flags-
70 1, 0, 39, 2, 0x06 /* Public */,-
71 3, 2, 40, 2, 0x06 /* Public */,-
72 7, 2, 45, 2, 0x06 /* Public */,-
73 10, 2, 50, 2, 0x06 /* Public */,-
74 11, 1, 55, 2, 0x06 /* Public */,-
75-
76 // signals: parameters-
77 QMetaType::Void,-
78 QMetaType::Void, 0x80000000 | 4, QMetaType::Bool, 5, 6,-
79 QMetaType::Void, QMetaType::Int, QMetaType::QObjectStar, 8, 9,-
80 QMetaType::Void, QMetaType::Int, QMetaType::QObjectStar, 8, 9,-
81 QMetaType::Void, QMetaType::QObjectStar, 9,-
82-
83 // properties: name, type, flags-
84 12, QMetaType::Int, 0x00495001,-
85-
86 // properties: notify_signal_id-
87 0,-
88-
89 0 // eod-
90};-
91-
92void QQmlInstanceModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
93{-
94 if (_c == QMetaObject::InvokeMetaMethod) {-
95 QQmlInstanceModel *_t = static_cast<QQmlInstanceModel *>(_o);-
96 Q_UNUSED(_t)-
97 switch (_id) {-
98 case 0: _t->countChanged(); break;-
99 case 1: _t->modelUpdated((*reinterpret_cast< const QQmlChangeSet(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;-
100 case 2: _t->createdItem((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QObject*(*)>(_a[2]))); break;-
101 case 3: _t->initItem((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QObject*(*)>(_a[2]))); break;-
102 case 4: _t->destroyingItem((*reinterpret_cast< QObject*(*)>(_a[1]))); break;-
103 default: ;-
104 }-
105 } else if (_c == QMetaObject::IndexOfMethod) {-
106 int *result = reinterpret_cast<int *>(_a[0]);-
107 {-
108 using _t = void (QQmlInstanceModel::*)();-
109 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstanceModel::countChanged)) {-
110 *result = 0;-
111 return;-
112 }-
113 }-
114 {-
115 using _t = void (QQmlInstanceModel::*)(const QQmlChangeSet & , bool );-
116 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstanceModel::modelUpdated)) {-
117 *result = 1;-
118 return;-
119 }-
120 }-
121 {-
122 using _t = void (QQmlInstanceModel::*)(int , QObject * );-
123 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstanceModel::createdItem)) {-
124 *result = 2;-
125 return;-
126 }-
127 }-
128 {-
129 using _t = void (QQmlInstanceModel::*)(int , QObject * );-
130 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstanceModel::initItem)) {-
131 *result = 3;-
132 return;-
133 }-
134 }-
135 {-
136 using _t = void (QQmlInstanceModel::*)(QObject * );-
137 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstanceModel::destroyingItem)) {-
138 *result = 4;-
139 return;-
140 }-
141 }-
142 }-
143#ifndef QT_NO_PROPERTIES-
144 else if (_c == QMetaObject::ReadProperty) {-
145 QQmlInstanceModel *_t = static_cast<QQmlInstanceModel *>(_o);-
146 Q_UNUSED(_t)-
147 void *_v = _a[0];-
148 switch (_id) {-
149 case 0: *reinterpret_cast< int*>(_v) = _t->count(); break;-
150 default: break;-
151 }-
152 } else if (_c == QMetaObject::WriteProperty) {-
153 } else if (_c == QMetaObject::ResetProperty) {-
154 }-
155#endif // QT_NO_PROPERTIES-
156}-
157-
158QT_INIT_METAOBJECT const QMetaObject QQmlInstanceModel::staticMetaObject = {-
159 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlInstanceModel.data,-
160 qt_meta_data_QQmlInstanceModel, qt_static_metacall, nullptr, nullptr}-
161};-
162-
163-
164const QMetaObject *QQmlInstanceModel::metaObject() const-
165{-
166 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
167}-
168-
169void *QQmlInstanceModel::qt_metacast(const char *_clname)-
170{-
171 if (!_clname) return nullptr;-
172 if (!strcmp(_clname, qt_meta_stringdata_QQmlInstanceModel.stringdata0))-
173 return static_cast<void*>(this);-
174 return QObject::qt_metacast(_clname);-
175}-
176-
177int QQmlInstanceModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
178{-
179 _id = QObject::qt_metacall(_c, _id, _a);-
180 if (_id < 0)-
181 return _id;-
182 if (_c == QMetaObject::InvokeMetaMethod) {-
183 if (_id < 5)-
184 qt_static_metacall(this, _c, _id, _a);-
185 _id -= 5;-
186 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
187 if (_id < 5)-
188 *reinterpret_cast<int*>(_a[0]) = -1;-
189 _id -= 5;-
190 }-
191#ifndef QT_NO_PROPERTIES-
192 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
193 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
194 qt_static_metacall(this, _c, _id, _a);-
195 _id -= 1;-
196 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
197 _id -= 1;-
198 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
199 _id -= 1;-
200 } else if (_c == QMetaObject::QueryPropertyStored) {-
201 _id -= 1;-
202 } else if (_c == QMetaObject::QueryPropertyEditable) {-
203 _id -= 1;-
204 } else if (_c == QMetaObject::QueryPropertyUser) {-
205 _id -= 1;-
206 }-
207#endif // QT_NO_PROPERTIES-
208 return _id;-
209}-
210-
211// SIGNAL 0-
212void QQmlInstanceModel::countChanged()-
213{-
214 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
215}
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
216-
217// SIGNAL 1-
218void QQmlInstanceModel::modelUpdated(const QQmlChangeSet & _t1, bool _t2)-
219{-
220 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
221 QMetaObject::activate(this, &staticMetaObject, 1, _a);-
222}
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
223-
224// SIGNAL 2-
225void QQmlInstanceModel::createdItem(int _t1, QObject * _t2)-
226{-
227 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
228 QMetaObject::activate(this, &staticMetaObject, 2, _a);-
229}
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
230-
231// SIGNAL 3-
232void QQmlInstanceModel::initItem(int _t1, QObject * _t2)-
233{-
234 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
235 QMetaObject::activate(this, &staticMetaObject, 3, _a);-
236}
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
237-
238// SIGNAL 4-
239void QQmlInstanceModel::destroyingItem(QObject * _t1)-
240{-
241 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
242 QMetaObject::activate(this, &staticMetaObject, 4, _a);-
243}
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
244struct qt_meta_stringdata_QQmlObjectModel_t {-
245 QByteArrayData data[17];-
246 char stringdata0[143];-
247};-
248#define QT_MOC_LITERAL(idx, ofs, len) \-
249 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \-
250 qptrdiff(offsetof(qt_meta_stringdata_QQmlObjectModel_t, stringdata0) + ofs \-
251 - idx * sizeof(QByteArrayData)) \-
252 )-
253static const qt_meta_stringdata_QQmlObjectModel_t qt_meta_stringdata_QQmlObjectModel = {-
254 {-
255QT_MOC_LITERAL(0, 0, 15), // "QQmlObjectModel"-
256QT_MOC_LITERAL(1, 16, 15), // "DefaultProperty"-
257QT_MOC_LITERAL(2, 32, 8), // "children"-
258QT_MOC_LITERAL(3, 41, 15), // "childrenChanged"-
259QT_MOC_LITERAL(4, 57, 0), // ""-
260QT_MOC_LITERAL(5, 58, 5), // "clear"-
261QT_MOC_LITERAL(6, 64, 3), // "get"-
262QT_MOC_LITERAL(7, 68, 5), // "index"-
263QT_MOC_LITERAL(8, 74, 6), // "append"-
264QT_MOC_LITERAL(9, 81, 6), // "object"-
265QT_MOC_LITERAL(10, 88, 6), // "insert"-
266QT_MOC_LITERAL(11, 95, 4), // "move"-
267QT_MOC_LITERAL(12, 100, 4), // "from"-
268QT_MOC_LITERAL(13, 105, 2), // "to"-
269QT_MOC_LITERAL(14, 108, 1), // "n"-
270QT_MOC_LITERAL(15, 110, 6), // "remove"-
271QT_MOC_LITERAL(16, 117, 25) // "QQmlListProperty<QObject>"-
272-
273 },-
274 "QQmlObjectModel\0DefaultProperty\0"-
275 "children\0childrenChanged\0\0clear\0get\0"-
276 "index\0append\0object\0insert\0move\0from\0"-
277 "to\0n\0remove\0QQmlListProperty<QObject>"-
278};-
279#undef QT_MOC_LITERAL-
280-
281static const uint qt_meta_data_QQmlObjectModel[] = {-
282-
283 // content:-
284 7, // revision-
285 0, // classname-
286 1, 14, // classinfo-
287 9, 16, // methods-
288 1, 103, // properties-
289 0, 0, // enums/sets-
290 0, 0, // constructors-
291 0, // flags-
292 1, // signalCount-
293-
294 // classinfo: key, value-
295 1, 2,-
296-
297 // signals: name, argc, parameters, tag, flags-
298 3, 0, 70, 4, 0x06 /* Public */,-
299-
300 // slots: name, argc, parameters, tag, flags-
301 5, 0, 71, 4, 0x8a /* Public | MethodRevisioned */,-
302-
303 // methods: name, argc, parameters, tag, flags-
304 6, 1, 72, 4, 0x82 /* Public | MethodRevisioned */,-
305 8, 1, 75, 4, 0x82 /* Public | MethodRevisioned */,-
306 10, 2, 78, 4, 0x82 /* Public | MethodRevisioned */,-
307 11, 3, 83, 4, 0x82 /* Public | MethodRevisioned */,-
308 11, 2, 90, 4, 0xa2 /* Public | MethodCloned | MethodRevisioned */,-
309 15, 2, 95, 4, 0x82 /* Public | MethodRevisioned */,-
310 15, 1, 100, 4, 0xa2 /* Public | MethodCloned | MethodRevisioned */,-
311-
312 // signals: revision-
313 0,-
314-
315 // slots: revision-
316 3,-
317-
318 // methods: revision-
319 3,-
320 3,-
321 3,-
322 3,-
323 3,-
324 3,-
325 3,-
326-
327 // signals: parameters-
328 QMetaType::Void,-
329-
330 // slots: parameters-
331 QMetaType::Void,-
332-
333 // methods: parameters-
334 QMetaType::QObjectStar, QMetaType::Int, 7,-
335 QMetaType::Void, QMetaType::QObjectStar, 9,-
336 QMetaType::Void, QMetaType::Int, QMetaType::QObjectStar, 7, 9,-
337 QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 12, 13, 14,-
338 QMetaType::Void, QMetaType::Int, QMetaType::Int, 12, 13,-
339 QMetaType::Void, QMetaType::Int, QMetaType::Int, 7, 14,-
340 QMetaType::Void, QMetaType::Int, 7,-
341-
342 // properties: name, type, flags-
343 2, 0x80000000 | 16, 0x00494009,-
344-
345 // properties: notify_signal_id-
346 0,-
347-
348 0 // eod-
349};-
350-
351void QQmlObjectModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
352{-
353 if (_c == QMetaObject::InvokeMetaMethod) {-
354 QQmlObjectModel *_t = static_cast<QQmlObjectModel *>(_o);-
355 Q_UNUSED(_t)-
356 switch (_id) {-
357 case 0: _t->childrenChanged(); break;-
358 case 1: _t->clear(); break;-
359 case 2: { QObject* _r = _t->get((*reinterpret_cast< int(*)>(_a[1])));-
360 if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); } break;-
361 case 3: _t->append((*reinterpret_cast< QObject*(*)>(_a[1]))); break;-
362 case 4: _t->insert((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QObject*(*)>(_a[2]))); break;-
363 case 5: _t->move((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;-
364 case 6: _t->move((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;-
365 case 7: _t->remove((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;-
366 case 8: _t->remove((*reinterpret_cast< int(*)>(_a[1]))); break;-
367 default: ;-
368 }-
369 } else if (_c == QMetaObject::IndexOfMethod) {-
370 int *result = reinterpret_cast<int *>(_a[0]);-
371 {-
372 using _t = void (QQmlObjectModel::*)();-
373 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlObjectModel::childrenChanged)) {-
374 *result = 0;-
375 return;-
376 }-
377 }-
378 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
379 switch (_id) {-
380 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
381 case 0:-
382 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlListProperty<QObject> >(); break;-
383 }-
384 }-
385-
386#ifndef QT_NO_PROPERTIES-
387 else if (_c == QMetaObject::ReadProperty) {-
388 QQmlObjectModel *_t = static_cast<QQmlObjectModel *>(_o);-
389 Q_UNUSED(_t)-
390 void *_v = _a[0];-
391 switch (_id) {-
392 case 0: *reinterpret_cast< QQmlListProperty<QObject>*>(_v) = _t->children(); break;-
393 default: break;-
394 }-
395 } else if (_c == QMetaObject::WriteProperty) {-
396 } else if (_c == QMetaObject::ResetProperty) {-
397 }-
398#endif // QT_NO_PROPERTIES-
399}-
400-
401QT_INIT_METAOBJECT const QMetaObject QQmlObjectModel::staticMetaObject = {-
402 { &QQmlInstanceModel::staticMetaObject, qt_meta_stringdata_QQmlObjectModel.data,-
403 qt_meta_data_QQmlObjectModel, qt_static_metacall, nullptr, nullptr}-
404};-
405-
406-
407const QMetaObject *QQmlObjectModel::metaObject() const-
408{-
409 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
410}-
411-
412void *QQmlObjectModel::qt_metacast(const char *_clname)-
413{-
414 if (!_clname) return nullptr;-
415 if (!strcmp(_clname, qt_meta_stringdata_QQmlObjectModel.stringdata0))-
416 return static_cast<void*>(this);-
417 return QQmlInstanceModel::qt_metacast(_clname);-
418}-
419-
420int QQmlObjectModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
421{-
422 _id = QQmlInstanceModel::qt_metacall(_c, _id, _a);-
423 if (_id < 0)-
424 return _id;-
425 if (_c == QMetaObject::InvokeMetaMethod) {-
426 if (_id < 9)-
427 qt_static_metacall(this, _c, _id, _a);-
428 _id -= 9;-
429 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
430 if (_id < 9)-
431 *reinterpret_cast<int*>(_a[0]) = -1;-
432 _id -= 9;-
433 }-
434#ifndef QT_NO_PROPERTIES-
435 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
436 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
437 qt_static_metacall(this, _c, _id, _a);-
438 _id -= 1;-
439 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
440 _id -= 1;-
441 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
442 _id -= 1;-
443 } else if (_c == QMetaObject::QueryPropertyStored) {-
444 _id -= 1;-
445 } else if (_c == QMetaObject::QueryPropertyEditable) {-
446 _id -= 1;-
447 } else if (_c == QMetaObject::QueryPropertyUser) {-
448 _id -= 1;-
449 }-
450#endif // QT_NO_PROPERTIES-
451 return _id;-
452}-
453-
454// SIGNAL 0-
455void QQmlObjectModel::childrenChanged()-
456{-
457 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
458}
executed 178 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlobjectmodel
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
178
459struct qt_meta_stringdata_QQmlObjectModelAttached_t {-
460 QByteArrayData data[4];-
461 char stringdata0[44];-
462};-
463#define QT_MOC_LITERAL(idx, ofs, len) \-
464 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \-
465 qptrdiff(offsetof(qt_meta_stringdata_QQmlObjectModelAttached_t, stringdata0) + ofs \-
466 - idx * sizeof(QByteArrayData)) \-
467 )-
468static const qt_meta_stringdata_QQmlObjectModelAttached_t qt_meta_stringdata_QQmlObjectModelAttached = {-
469 {-
470QT_MOC_LITERAL(0, 0, 23), // "QQmlObjectModelAttached"-
471QT_MOC_LITERAL(1, 24, 12), // "indexChanged"-
472QT_MOC_LITERAL(2, 37, 0), // ""-
473QT_MOC_LITERAL(3, 38, 5) // "index"-
474-
475 },-
476 "QQmlObjectModelAttached\0indexChanged\0"-
477 "\0index"-
478};-
479#undef QT_MOC_LITERAL-
480-
481static const uint qt_meta_data_QQmlObjectModelAttached[] = {-
482-
483 // content:-
484 7, // revision-
485 0, // classname-
486 0, 0, // classinfo-
487 1, 14, // methods-
488 1, 20, // properties-
489 0, 0, // enums/sets-
490 0, 0, // constructors-
491 0, // flags-
492 1, // signalCount-
493-
494 // signals: name, argc, parameters, tag, flags-
495 1, 0, 19, 2, 0x06 /* Public */,-
496-
497 // signals: parameters-
498 QMetaType::Void,-
499-
500 // properties: name, type, flags-
501 3, QMetaType::Int, 0x00495001,-
502-
503 // properties: notify_signal_id-
504 0,-
505-
506 0 // eod-
507};-
508-
509void QQmlObjectModelAttached::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
510{-
511 if (_c == QMetaObject::InvokeMetaMethod) {-
512 QQmlObjectModelAttached *_t = static_cast<QQmlObjectModelAttached *>(_o);-
513 Q_UNUSED(_t)-
514 switch (_id) {-
515 case 0: _t->indexChanged(); break;-
516 default: ;-
517 }-
518 } else if (_c == QMetaObject::IndexOfMethod) {-
519 int *result = reinterpret_cast<int *>(_a[0]);-
520 {-
521 using _t = void (QQmlObjectModelAttached::*)();-
522 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlObjectModelAttached::indexChanged)) {-
523 *result = 0;-
524 return;-
525 }-
526 }-
527 }-
528#ifndef QT_NO_PROPERTIES-
529 else if (_c == QMetaObject::ReadProperty) {-
530 QQmlObjectModelAttached *_t = static_cast<QQmlObjectModelAttached *>(_o);-
531 Q_UNUSED(_t)-
532 void *_v = _a[0];-
533 switch (_id) {-
534 case 0: *reinterpret_cast< int*>(_v) = _t->index(); break;-
535 default: break;-
536 }-
537 } else if (_c == QMetaObject::WriteProperty) {-
538 } else if (_c == QMetaObject::ResetProperty) {-
539 }-
540#endif // QT_NO_PROPERTIES-
541 Q_UNUSED(_a);-
542}-
543-
544QT_INIT_METAOBJECT const QMetaObject QQmlObjectModelAttached::staticMetaObject = {-
545 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlObjectModelAttached.data,-
546 qt_meta_data_QQmlObjectModelAttached, qt_static_metacall, nullptr, nullptr}-
547};-
548-
549-
550const QMetaObject *QQmlObjectModelAttached::metaObject() const-
551{-
552 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
553}-
554-
555void *QQmlObjectModelAttached::qt_metacast(const char *_clname)-
556{-
557 if (!_clname) return nullptr;-
558 if (!strcmp(_clname, qt_meta_stringdata_QQmlObjectModelAttached.stringdata0))-
559 return static_cast<void*>(this);-
560 return QObject::qt_metacast(_clname);-
561}-
562-
563int QQmlObjectModelAttached::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
564{-
565 _id = QObject::qt_metacall(_c, _id, _a);-
566 if (_id < 0)-
567 return _id;-
568 if (_c == QMetaObject::InvokeMetaMethod) {-
569 if (_id < 1)-
570 qt_static_metacall(this, _c, _id, _a);-
571 _id -= 1;-
572 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
573 if (_id < 1)-
574 *reinterpret_cast<int*>(_a[0]) = -1;-
575 _id -= 1;-
576 }-
577#ifndef QT_NO_PROPERTIES-
578 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
579 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
580 qt_static_metacall(this, _c, _id, _a);-
581 _id -= 1;-
582 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
583 _id -= 1;-
584 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
585 _id -= 1;-
586 } else if (_c == QMetaObject::QueryPropertyStored) {-
587 _id -= 1;-
588 } else if (_c == QMetaObject::QueryPropertyEditable) {-
589 _id -= 1;-
590 } else if (_c == QMetaObject::QueryPropertyUser) {-
591 _id -= 1;-
592 }-
593#endif // QT_NO_PROPERTIES-
594 return _id;-
595}-
596-
597// SIGNAL 0-
598void QQmlObjectModelAttached::indexChanged()-
599{-
600 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
601}
executed 240 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlobjectmodel
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
240
602QT_WARNING_POP-
603QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0