OpenCoverage

moc_qqmlcomponent.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmlcomponent.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_QQmlComponent_t {-
9 QByteArrayData data[24];-
10 char stringdata0[251];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQmlComponent_t qt_meta_stringdata_QQmlComponent = {-
18 {-
19{ { { -1 } }, 13, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQmlComponent_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 13, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQmlComponent_t-
29, -
30stringdata0-
31) -
32+ 14 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQmlComponent_t-
36, -
37stringdata0-
38) -
39+ 28 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 21, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQmlComponent_t-
43, -
44stringdata0-
45) -
46+ 29 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 15, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQmlComponent_t-
50, -
51stringdata0-
52) -
53+ 51 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 7, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QQmlComponent_t-
57, -
58stringdata0-
59) -
60+ 67 - 5 * sizeof(QByteArrayData)) },-
61{ { { -1 } }, 3, 0, 0, qptrdiff(-
62__builtin_offsetof (-
63qt_meta_stringdata_QQmlComponent_t-
64, -
65stringdata0-
66) -
67+ 75 - 6 * sizeof(QByteArrayData)) },-
68{ { { -1 } }, 15, 0, 0, qptrdiff(-
69__builtin_offsetof (-
70qt_meta_stringdata_QQmlComponent_t-
71, -
72stringdata0-
73) -
74+ 79 - 7 * sizeof(QByteArrayData)) },-
75{ { { -1 } }, 4, 0, 0, qptrdiff(-
76__builtin_offsetof (-
77qt_meta_stringdata_QQmlComponent_t-
78, -
79stringdata0-
80) -
81+ 95 - 8 * sizeof(QByteArrayData)) },-
82{ { { -1 } }, 7, 0, 0, qptrdiff(-
83__builtin_offsetof (-
84qt_meta_stringdata_QQmlComponent_t-
85, -
86stringdata0-
87) -
88+ 100 - 9 * sizeof(QByteArrayData)) },-
89{ { { -1 } }, 7, 0, 0, qptrdiff(-
90__builtin_offsetof (-
91qt_meta_stringdata_QQmlComponent_t-
92, -
93stringdata0-
94) -
95+ 108 - 10 * sizeof(QByteArrayData)) },-
96{ { { -1 } }, 11, 0, 0, qptrdiff(-
97__builtin_offsetof (-
98qt_meta_stringdata_QQmlComponent_t-
99, -
100stringdata0-
101) -
102+ 116 - 11 * sizeof(QByteArrayData)) },-
103{ { { -1 } }, 12, 0, 0, qptrdiff(-
104__builtin_offsetof (-
105qt_meta_stringdata_QQmlComponent_t-
106, -
107stringdata0-
108) -
109+ 128 - 12 * sizeof(QByteArrayData)) },-
110{ { { -1 } }, 15, 0, 0, qptrdiff(-
111__builtin_offsetof (-
112qt_meta_stringdata_QQmlComponent_t-
113, -
114stringdata0-
115) -
116+ 141 - 13 * sizeof(QByteArrayData)) },-
117{ { { -1 } }, 14, 0, 0, qptrdiff(-
118__builtin_offsetof (-
119qt_meta_stringdata_QQmlComponent_t-
120, -
121stringdata0-
122) -
123+ 157 - 14 * sizeof(QByteArrayData)) },-
124{ { { -1 } }, 8, 0, 0, qptrdiff(-
125__builtin_offsetof (-
126qt_meta_stringdata_QQmlComponent_t-
127, -
128stringdata0-
129) -
130+ 172 - 15 * sizeof(QByteArrayData)) },-
131{ { { -1 } }, 6, 0, 0, qptrdiff(-
132__builtin_offsetof (-
133qt_meta_stringdata_QQmlComponent_t-
134, -
135stringdata0-
136) -
137+ 181 - 16 * sizeof(QByteArrayData)) },-
138{ { { -1 } }, 6, 0, 0, qptrdiff(-
139__builtin_offsetof (-
140qt_meta_stringdata_QQmlComponent_t-
141, -
142stringdata0-
143) -
144+ 188 - 17 * sizeof(QByteArrayData)) },-
145{ { { -1 } }, 17, 0, 0, qptrdiff(-
146__builtin_offsetof (-
147qt_meta_stringdata_QQmlComponent_t-
148, -
149stringdata0-
150) -
151+ 195 - 18 * sizeof(QByteArrayData)) },-
152{ { { -1 } }, 12, 0, 0, qptrdiff(-
153__builtin_offsetof (-
154qt_meta_stringdata_QQmlComponent_t-
155, -
156stringdata0-
157) -
158+ 213 - 19 * sizeof(QByteArrayData)) },-
159{ { { -1 } }, 4, 0, 0, qptrdiff(-
160__builtin_offsetof (-
161qt_meta_stringdata_QQmlComponent_t-
162, -
163stringdata0-
164) -
165+ 226 - 20 * sizeof(QByteArrayData)) },-
166{ { { -1 } }, 5, 0, 0, qptrdiff(-
167__builtin_offsetof (-
168qt_meta_stringdata_QQmlComponent_t-
169, -
170stringdata0-
171) -
172+ 231 - 21 * sizeof(QByteArrayData)) },-
173{ { { -1 } }, 7, 0, 0, qptrdiff(-
174__builtin_offsetof (-
175qt_meta_stringdata_QQmlComponent_t-
176, -
177stringdata0-
178) -
179+ 237 - 22 * sizeof(QByteArrayData)) },-
180{ { { -1 } }, 5, 0, 0, qptrdiff(-
181__builtin_offsetof (-
182qt_meta_stringdata_QQmlComponent_t-
183, -
184stringdata0-
185) -
186+ 245 - 23 * sizeof(QByteArrayData)) }-
187-
188 },-
189 "QQmlComponent\0statusChanged\0\0"-
190 "QQmlComponent::Status\0progressChanged\0"-
191 "loadUrl\0url\0CompilationMode\0mode\0"-
192 "setData\0baseUrl\0errorString\0createObject\0"-
193 "QQmlV4Function*\0incubateObject\0progress\0"-
194 "status\0Status\0PreferSynchronous\0"-
195 "Asynchronous\0Null\0Ready\0Loading\0Error"-
196};-
197-
198-
199static const uint qt_meta_data_QQmlComponent[] = {-
200-
201-
202 7,-
203 0,-
204 0, 0,-
205 8, 14,-
206 3, 80,-
207 2, 92,-
208 0, 0,-
209 0,-
210 2,-
211-
212-
213 1, 1, 54, 2, 0x06 ,-
214 4, 1, 57, 2, 0x06 ,-
215-
216-
217 5, 1, 60, 2, 0x0a ,-
218 5, 2, 63, 2, 0x0a ,-
219 9, 2, 68, 2, 0x0a ,-
220-
221-
222 11, 0, 73, 2, 0x02 ,-
223 12, 1, 74, 2, 0x01 ,-
224 14, 1, 77, 2, 0x01 ,-
225-
226-
227 QMetaType::Void, 0x80000000 | 3, 2,-
228 QMetaType::Void, QMetaType::QReal, 2,-
229-
230-
231 QMetaType::Void, QMetaType::QUrl, 6,-
232 QMetaType::Void, QMetaType::QUrl, 0x80000000 | 7, 6, 8,-
233 QMetaType::Void, QMetaType::QByteArray, QMetaType::QUrl, 2, 10,-
234-
235-
236 QMetaType::QString,-
237 QMetaType::Void, 0x80000000 | 13, 2,-
238 QMetaType::Void, 0x80000000 | 13, 2,-
239-
240-
241 15, QMetaType::QReal, 0x00495001,-
242 16, 0x80000000 | 17, 0x00495009,-
243 6, QMetaType::QUrl, 0x00095401,-
244-
245-
246 1,-
247 0,-
248 0,-
249-
250-
251 7, 0x0, 2, 100,-
252 17, 0x0, 4, 104,-
253-
254-
255 18, uint(QQmlComponent::PreferSynchronous),-
256 19, uint(QQmlComponent::Asynchronous),-
257 20, uint(QQmlComponent::Null),-
258 21, uint(QQmlComponent::Ready),-
259 22, uint(QQmlComponent::Loading),-
260 23, uint(QQmlComponent::Error),-
261-
262 0-
263};-
264-
265void QQmlComponent::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
266{-
267 if (_c == QMetaObject::InvokeMetaMethod) {-
268 QQmlComponent *_t = static_cast<QQmlComponent *>(_o);-
269 (void)_t;-
270 switch (_id) {-
271 case 0: _t->statusChanged((*reinterpret_cast< QQmlComponent::Status(*)>(_a[1]))); break;-
272 case 1: _t->progressChanged((*reinterpret_cast< qreal(*)>(_a[1]))); break;-
273 case 2: _t->loadUrl((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;-
274 case 3: _t->loadUrl((*reinterpret_cast< const QUrl(*)>(_a[1])),(*reinterpret_cast< CompilationMode(*)>(_a[2]))); break;-
275 case 4: _t->setData((*reinterpret_cast< const QByteArray(*)>(_a[1])),(*reinterpret_cast< const QUrl(*)>(_a[2]))); break;-
276 case 5: { QString _r = _t->errorString();-
277 if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); } break;-
278 case 6: _t->createObject((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
279 case 7: _t->incubateObject((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
280 default: ;-
281 }-
282 } else if (_c == QMetaObject::IndexOfMethod) {-
283 int *result = reinterpret_cast<int *>(_a[0]);-
284 {-
285 using _t = void (QQmlComponent::*)(QQmlComponent::Status );-
286 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlComponent::statusChanged)) {-
287 *result = 0;-
288 return;-
289 }-
290 }-
291 {-
292 using _t = void (QQmlComponent::*)(qreal );-
293 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlComponent::progressChanged)) {-
294 *result = 1;-
295 return;-
296 }-
297 }-
298 }-
299-
300 else if (_c == QMetaObject::ReadProperty) {-
301 QQmlComponent *_t = static_cast<QQmlComponent *>(_o);-
302 (void)_t;-
303 void *_v = _a[0];-
304 switch (_id) {-
305 case 0: *reinterpret_cast< qreal*>(_v) = _t->progress(); break;-
306 case 1: *reinterpret_cast< Status*>(_v) = _t->status(); break;-
307 case 2: *reinterpret_cast< QUrl*>(_v) = _t->url(); break;-
308 default: break;-
309 }-
310 } else if (_c == QMetaObject::WriteProperty) {-
311 } else if (_c == QMetaObject::ResetProperty) {-
312 }-
313-
314}-
315-
316 const QMetaObject QQmlComponent::staticMetaObject = {-
317 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlComponent.data,-
318 qt_meta_data_QQmlComponent, qt_static_metacall, nullptr, nullptr}-
319};-
320-
321-
322const QMetaObject *QQmlComponent::metaObject() const-
323{-
324 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
325}-
326-
327void *QQmlComponent::qt_metacast(const char *_clname)-
328{-
329 if (!_clname) return nullptr;-
330 if (!strcmp(_clname, qt_meta_stringdata_QQmlComponent.stringdata0))-
331 return static_cast<void*>(this);-
332 return QObject::qt_metacast(_clname);-
333}-
334-
335int QQmlComponent::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
336{-
337 _id = QObject::qt_metacall(_c, _id, _a);-
338 if (_id < 0)-
339 return _id;-
340 if (_c == QMetaObject::InvokeMetaMethod) {-
341 if (_id < 8)-
342 qt_static_metacall(this, _c, _id, _a);-
343 _id -= 8;-
344 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
345 if (_id < 8)-
346 *reinterpret_cast<int*>(_a[0]) = -1;-
347 _id -= 8;-
348 }-
349-
350 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
351 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
352 qt_static_metacall(this, _c, _id, _a);-
353 _id -= 3;-
354 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
355 _id -= 3;-
356 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
357 _id -= 3;-
358 } else if (_c == QMetaObject::QueryPropertyStored) {-
359 _id -= 3;-
360 } else if (_c == QMetaObject::QueryPropertyEditable) {-
361 _id -= 3;-
362 } else if (_c == QMetaObject::QueryPropertyUser) {-
363 _id -= 3;-
364 }-
365-
366 return _id;-
367}-
368-
369-
370void QQmlComponent::statusChanged(QQmlComponent::Status _t1)-
371{-
372 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
373 QMetaObject::activate(this, &staticMetaObject, 0, _a);-
374}
executed 58510 times by 141 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
58510
375-
376-
377void QQmlComponent::progressChanged(qreal _t1)-
378{-
379 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
380 QMetaObject::activate(this, &staticMetaObject, 1, _a);-
381}
executed 58490 times by 141 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
58490
382-
383#pragma GCC diagnostic pop-
384-
385-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0