OpenCoverage

moc_qqmlinstantiator_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmlinstantiator_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qqmlinstantiator_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/qqmlinstantiator_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qqmlinstantiator_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_QQmlInstantiator_t {-
24 QByteArrayData data[23];-
25 char stringdata0[273];-
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_QQmlInstantiator_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQmlInstantiator_t qt_meta_stringdata_QQmlInstantiator = {-
33 {-
34QT_MOC_LITERAL(0, 0, 16), // "QQmlInstantiator"-
35QT_MOC_LITERAL(1, 17, 15), // "DefaultProperty"-
36QT_MOC_LITERAL(2, 33, 8), // "delegate"-
37QT_MOC_LITERAL(3, 42, 12), // "modelChanged"-
38QT_MOC_LITERAL(4, 55, 0), // ""-
39QT_MOC_LITERAL(5, 56, 15), // "delegateChanged"-
40QT_MOC_LITERAL(6, 72, 12), // "countChanged"-
41QT_MOC_LITERAL(7, 85, 13), // "objectChanged"-
42QT_MOC_LITERAL(8, 99, 13), // "activeChanged"-
43QT_MOC_LITERAL(9, 113, 19), // "asynchronousChanged"-
44QT_MOC_LITERAL(10, 133, 11), // "objectAdded"-
45QT_MOC_LITERAL(11, 145, 5), // "index"-
46QT_MOC_LITERAL(12, 151, 6), // "object"-
47QT_MOC_LITERAL(13, 158, 13), // "objectRemoved"-
48QT_MOC_LITERAL(14, 172, 14), // "_q_createdItem"-
49QT_MOC_LITERAL(15, 187, 15), // "_q_modelUpdated"-
50QT_MOC_LITERAL(16, 203, 13), // "QQmlChangeSet"-
51QT_MOC_LITERAL(17, 217, 8), // "objectAt"-
52QT_MOC_LITERAL(18, 226, 6), // "active"-
53QT_MOC_LITERAL(19, 233, 12), // "asynchronous"-
54QT_MOC_LITERAL(20, 246, 5), // "model"-
55QT_MOC_LITERAL(21, 252, 5), // "count"-
56QT_MOC_LITERAL(22, 258, 14) // "QQmlComponent*"-
57-
58 },-
59 "QQmlInstantiator\0DefaultProperty\0"-
60 "delegate\0modelChanged\0\0delegateChanged\0"-
61 "countChanged\0objectChanged\0activeChanged\0"-
62 "asynchronousChanged\0objectAdded\0index\0"-
63 "object\0objectRemoved\0_q_createdItem\0"-
64 "_q_modelUpdated\0QQmlChangeSet\0objectAt\0"-
65 "active\0asynchronous\0model\0count\0"-
66 "QQmlComponent*"-
67};-
68#undef QT_MOC_LITERAL-
69-
70static const uint qt_meta_data_QQmlInstantiator[] = {-
71-
72 // content:-
73 7, // revision-
74 0, // classname-
75 1, 14, // classinfo-
76 11, 16, // methods-
77 6, 100, // properties-
78 0, 0, // enums/sets-
79 0, 0, // constructors-
80 0, // flags-
81 8, // signalCount-
82-
83 // classinfo: key, value-
84 1, 2,-
85-
86 // signals: name, argc, parameters, tag, flags-
87 3, 0, 71, 4, 0x06 /* Public */,-
88 5, 0, 72, 4, 0x06 /* Public */,-
89 6, 0, 73, 4, 0x06 /* Public */,-
90 7, 0, 74, 4, 0x06 /* Public */,-
91 8, 0, 75, 4, 0x06 /* Public */,-
92 9, 0, 76, 4, 0x06 /* Public */,-
93 10, 2, 77, 4, 0x06 /* Public */,-
94 13, 2, 82, 4, 0x06 /* Public */,-
95-
96 // slots: name, argc, parameters, tag, flags-
97 14, 2, 87, 4, 0x08 /* Private */,-
98 15, 2, 92, 4, 0x08 /* Private */,-
99-
100 // methods: name, argc, parameters, tag, flags-
101 17, 1, 97, 4, 0x02 /* Public */,-
102-
103 // signals: parameters-
104 QMetaType::Void,-
105 QMetaType::Void,-
106 QMetaType::Void,-
107 QMetaType::Void,-
108 QMetaType::Void,-
109 QMetaType::Void,-
110 QMetaType::Void, QMetaType::Int, QMetaType::QObjectStar, 11, 12,-
111 QMetaType::Void, QMetaType::Int, QMetaType::QObjectStar, 11, 12,-
112-
113 // slots: parameters-
114 QMetaType::Void, QMetaType::Int, QMetaType::QObjectStar, 4, 4,-
115 QMetaType::Void, 0x80000000 | 16, QMetaType::Bool, 4, 4,-
116-
117 // methods: parameters-
118 QMetaType::QObjectStar, QMetaType::Int, 11,-
119-
120 // properties: name, type, flags-
121 18, QMetaType::Bool, 0x00495103,-
122 19, QMetaType::Bool, 0x00495003,-
123 20, QMetaType::QVariant, 0x00495103,-
124 21, QMetaType::Int, 0x00495001,-
125 2, 0x80000000 | 22, 0x0049510b,-
126 12, QMetaType::QObjectStar, 0x00495001,-
127-
128 // properties: notify_signal_id-
129 4,-
130 5,-
131 0,-
132 2,-
133 1,-
134 3,-
135-
136 0 // eod-
137};-
138-
139void QQmlInstantiator::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
140{-
141 if (_c == QMetaObject::InvokeMetaMethod) {-
142 QQmlInstantiator *_t = static_cast<QQmlInstantiator *>(_o);-
143 Q_UNUSED(_t)-
144 switch (_id) {-
145 case 0: _t->modelChanged(); break;-
146 case 1: _t->delegateChanged(); break;-
147 case 2: _t->countChanged(); break;-
148 case 3: _t->objectChanged(); break;-
149 case 4: _t->activeChanged(); break;-
150 case 5: _t->asynchronousChanged(); break;-
151 case 6: _t->objectAdded((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QObject*(*)>(_a[2]))); break;-
152 case 7: _t->objectRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QObject*(*)>(_a[2]))); break;-
153 case 8: _t->d_func()->_q_createdItem((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QObject*(*)>(_a[2]))); break;-
154 case 9: _t->d_func()->_q_modelUpdated((*reinterpret_cast< const QQmlChangeSet(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;-
155 case 10: { QObject* _r = _t->objectAt((*reinterpret_cast< int(*)>(_a[1])));-
156 if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); } break;-
157 default: ;-
158 }-
159 } else if (_c == QMetaObject::IndexOfMethod) {-
160 int *result = reinterpret_cast<int *>(_a[0]);-
161 {-
162 using _t = void (QQmlInstantiator::*)();-
163 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstantiator::modelChanged)) {-
164 *result = 0;-
165 return;-
166 }-
167 }-
168 {-
169 using _t = void (QQmlInstantiator::*)();-
170 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstantiator::delegateChanged)) {-
171 *result = 1;-
172 return;-
173 }-
174 }-
175 {-
176 using _t = void (QQmlInstantiator::*)();-
177 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstantiator::countChanged)) {-
178 *result = 2;-
179 return;-
180 }-
181 }-
182 {-
183 using _t = void (QQmlInstantiator::*)();-
184 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstantiator::objectChanged)) {-
185 *result = 3;-
186 return;-
187 }-
188 }-
189 {-
190 using _t = void (QQmlInstantiator::*)();-
191 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstantiator::activeChanged)) {-
192 *result = 4;-
193 return;-
194 }-
195 }-
196 {-
197 using _t = void (QQmlInstantiator::*)();-
198 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstantiator::asynchronousChanged)) {-
199 *result = 5;-
200 return;-
201 }-
202 }-
203 {-
204 using _t = void (QQmlInstantiator::*)(int , QObject * );-
205 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstantiator::objectAdded)) {-
206 *result = 6;-
207 return;-
208 }-
209 }-
210 {-
211 using _t = void (QQmlInstantiator::*)(int , QObject * );-
212 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlInstantiator::objectRemoved)) {-
213 *result = 7;-
214 return;-
215 }-
216 }-
217 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
218 switch (_id) {-
219 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
220 case 4:-
221 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlComponent* >(); break;-
222 }-
223 }-
224-
225#ifndef QT_NO_PROPERTIES-
226 else if (_c == QMetaObject::ReadProperty) {-
227 QQmlInstantiator *_t = static_cast<QQmlInstantiator *>(_o);-
228 Q_UNUSED(_t)-
229 void *_v = _a[0];-
230 switch (_id) {-
231 case 0: *reinterpret_cast< bool*>(_v) = _t->isActive(); break;-
232 case 1: *reinterpret_cast< bool*>(_v) = _t->isAsync(); break;-
233 case 2: *reinterpret_cast< QVariant*>(_v) = _t->model(); break;-
234 case 3: *reinterpret_cast< int*>(_v) = _t->count(); break;-
235 case 4: *reinterpret_cast< QQmlComponent**>(_v) = _t->delegate(); break;-
236 case 5: *reinterpret_cast< QObject**>(_v) = _t->object(); break;-
237 default: break;-
238 }-
239 } else if (_c == QMetaObject::WriteProperty) {-
240 QQmlInstantiator *_t = static_cast<QQmlInstantiator *>(_o);-
241 Q_UNUSED(_t)-
242 void *_v = _a[0];-
243 switch (_id) {-
244 case 0: _t->setActive(*reinterpret_cast< bool*>(_v)); break;-
245 case 1: _t->setAsync(*reinterpret_cast< bool*>(_v)); break;-
246 case 2: _t->setModel(*reinterpret_cast< QVariant*>(_v)); break;-
247 case 4: _t->setDelegate(*reinterpret_cast< QQmlComponent**>(_v)); break;-
248 default: break;-
249 }-
250 } else if (_c == QMetaObject::ResetProperty) {-
251 }-
252#endif // QT_NO_PROPERTIES-
253}-
254-
255QT_INIT_METAOBJECT const QMetaObject QQmlInstantiator::staticMetaObject = {-
256 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlInstantiator.data,-
257 qt_meta_data_QQmlInstantiator, qt_static_metacall, nullptr, nullptr}-
258};-
259-
260-
261const QMetaObject *QQmlInstantiator::metaObject() const-
262{-
263 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
264}-
265-
266void *QQmlInstantiator::qt_metacast(const char *_clname)-
267{-
268 if (!_clname) return nullptr;-
269 if (!strcmp(_clname, qt_meta_stringdata_QQmlInstantiator.stringdata0))-
270 return static_cast<void*>(this);-
271 if (!strcmp(_clname, "QQmlParserStatus"))-
272 return static_cast< QQmlParserStatus*>(this);-
273 if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))-
274 return static_cast< QQmlParserStatus*>(this);-
275 return QObject::qt_metacast(_clname);-
276}-
277-
278int QQmlInstantiator::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
279{-
280 _id = QObject::qt_metacall(_c, _id, _a);-
281 if (_id < 0)-
282 return _id;-
283 if (_c == QMetaObject::InvokeMetaMethod) {-
284 if (_id < 11)-
285 qt_static_metacall(this, _c, _id, _a);-
286 _id -= 11;-
287 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
288 if (_id < 11)-
289 *reinterpret_cast<int*>(_a[0]) = -1;-
290 _id -= 11;-
291 }-
292#ifndef QT_NO_PROPERTIES-
293 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
294 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
295 qt_static_metacall(this, _c, _id, _a);-
296 _id -= 6;-
297 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
298 _id -= 6;-
299 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
300 _id -= 6;-
301 } else if (_c == QMetaObject::QueryPropertyStored) {-
302 _id -= 6;-
303 } else if (_c == QMetaObject::QueryPropertyEditable) {-
304 _id -= 6;-
305 } else if (_c == QMetaObject::QueryPropertyUser) {-
306 _id -= 6;-
307 }-
308#endif // QT_NO_PROPERTIES-
309 return _id;-
310}-
311-
312// SIGNAL 0-
313void QQmlInstantiator::modelChanged()-
314{-
315 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
316}
executed 18 times by 1 test: end of block
Executed by:
  • tst_qqmlinstantiator
18
317-
318// SIGNAL 1-
319void QQmlInstantiator::delegateChanged()-
320{-
321 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
322}
executed 18 times by 1 test: end of block
Executed by:
  • tst_qqmlinstantiator
18
323-
324// SIGNAL 2-
325void QQmlInstantiator::countChanged()-
326{-
327 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
328}
executed 22 times by 1 test: end of block
Executed by:
  • tst_qqmlinstantiator
22
329-
330// SIGNAL 3-
331void QQmlInstantiator::objectChanged()-
332{-
333 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);-
334}
executed 16 times by 1 test: end of block
Executed by:
  • tst_qqmlinstantiator
16
335-
336// SIGNAL 4-
337void QQmlInstantiator::activeChanged()-
338{-
339 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);-
340}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlinstantiator
4
341-
342// SIGNAL 5-
343void QQmlInstantiator::asynchronousChanged()-
344{-
345 QMetaObject::activate(this, &staticMetaObject, 5, nullptr);-
346}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlinstantiator
2
347-
348// SIGNAL 6-
349void QQmlInstantiator::objectAdded(int _t1, QObject * _t2)-
350{-
351 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
352 QMetaObject::activate(this, &staticMetaObject, 6, _a);-
353}
executed 104 times by 1 test: end of block
Executed by:
  • tst_qqmlinstantiator
104
354-
355// SIGNAL 7-
356void QQmlInstantiator::objectRemoved(int _t1, QObject * _t2)-
357{-
358 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
359 QMetaObject::activate(this, &staticMetaObject, 7, _a);-
360}
executed 22 times by 1 test: end of block
Executed by:
  • tst_qqmlinstantiator
22
361QT_WARNING_POP-
362QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0