OpenCoverage

moc_qquickwidget.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quickwidgets/.moc/moc_qquickwidget.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_QQuickWidget_t {-
9 QByteArrayData data[29];-
10 char stringdata0[353];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQuickWidget_t qt_meta_stringdata_QQuickWidget = {-
18 {-
19{ { { -1 } }, 12, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQuickWidget_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 13, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQuickWidget_t-
29, -
30stringdata0-
31) -
32+ 13 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQuickWidget_t-
36, -
37stringdata0-
38) -
39+ 27 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 20, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQuickWidget_t-
43, -
44stringdata0-
45) -
46+ 28 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 15, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQuickWidget_t-
50, -
51stringdata0-
52) -
53+ 49 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 29, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QQuickWidget_t-
57, -
58stringdata0-
59) -
60+ 65 - 5 * sizeof(QByteArrayData)) },-
61{ { { -1 } }, 5, 0, 0, qptrdiff(-
62__builtin_offsetof (-
63qt_meta_stringdata_QQuickWidget_t-
64, -
65stringdata0-
66) -
67+ 95 - 6 * sizeof(QByteArrayData)) },-
68{ { { -1 } }, 7, 0, 0, qptrdiff(-
69__builtin_offsetof (-
70qt_meta_stringdata_QQuickWidget_t-
71, -
72stringdata0-
73) -
74+ 101 - 7 * sizeof(QByteArrayData)) },-
75{ { { -1 } }, 9, 0, 0, qptrdiff(-
76__builtin_offsetof (-
77qt_meta_stringdata_QQuickWidget_t-
78, -
79stringdata0-
80) -
81+ 109 - 8 * sizeof(QByteArrayData)) },-
82{ { { -1 } }, 10, 0, 0, qptrdiff(-
83__builtin_offsetof (-
84qt_meta_stringdata_QQuickWidget_t-
85, -
86stringdata0-
87) -
88+ 119 - 9 * sizeof(QByteArrayData)) },-
89{ { { -1 } }, 3, 0, 0, qptrdiff(-
90__builtin_offsetof (-
91qt_meta_stringdata_QQuickWidget_t-
92, -
93stringdata0-
94) -
95+ 130 - 10 * sizeof(QByteArrayData)) },-
96{ { { -1 } }, 14, 0, 0, qptrdiff(-
97__builtin_offsetof (-
98qt_meta_stringdata_QQuickWidget_t-
99, -
100stringdata0-
101) -
102+ 134 - 11 * sizeof(QByteArrayData)) },-
103{ { { -1 } }, 9, 0, 0, qptrdiff(-
104__builtin_offsetof (-
105qt_meta_stringdata_QQuickWidget_t-
106, -
107stringdata0-
108) -
109+ 149 - 12 * sizeof(QByteArrayData)) },-
110{ { { -1 } }, 4, 0, 0, qptrdiff(-
111__builtin_offsetof (-
112qt_meta_stringdata_QQuickWidget_t-
113, -
114stringdata0-
115) -
116+ 159 - 13 * sizeof(QByteArrayData)) },-
117{ { { -1 } }, 15, 0, 0, qptrdiff(-
118__builtin_offsetof (-
119qt_meta_stringdata_QQuickWidget_t-
120, -
121stringdata0-
122) -
123+ 164 - 14 * sizeof(QByteArrayData)) },-
124{ { { -1 } }, 23, 0, 0, qptrdiff(-
125__builtin_offsetof (-
126qt_meta_stringdata_QQuickWidget_t-
127, -
128stringdata0-
129) -
130+ 180 - 15 * sizeof(QByteArrayData)) },-
131{ { { -1 } }, 24, 0, 0, qptrdiff(-
132__builtin_offsetof (-
133qt_meta_stringdata_QQuickWidget_t-
134, -
135stringdata0-
136) -
137+ 204 - 16 * sizeof(QByteArrayData)) },-
138{ { { -1 } }, 13, 0, 0, qptrdiff(-
139__builtin_offsetof (-
140qt_meta_stringdata_QQuickWidget_t-
141, -
142stringdata0-
143) -
144+ 229 - 17 * sizeof(QByteArrayData)) },-
145{ { { -1 } }, 10, 0, 0, qptrdiff(-
146__builtin_offsetof (-
147qt_meta_stringdata_QQuickWidget_t-
148, -
149stringdata0-
150) -
151+ 243 - 18 * sizeof(QByteArrayData)) },-
152{ { { -1 } }, 10, 0, 0, qptrdiff(-
153__builtin_offsetof (-
154qt_meta_stringdata_QQuickWidget_t-
155, -
156stringdata0-
157) -
158+ 254 - 19 * sizeof(QByteArrayData)) },-
159{ { { -1 } }, 6, 0, 0, qptrdiff(-
160__builtin_offsetof (-
161qt_meta_stringdata_QQuickWidget_t-
162, -
163stringdata0-
164) -
165+ 265 - 20 * sizeof(QByteArrayData)) },-
166{ { { -1 } }, 6, 0, 0, qptrdiff(-
167__builtin_offsetof (-
168qt_meta_stringdata_QQuickWidget_t-
169, -
170stringdata0-
171) -
172+ 272 - 21 * sizeof(QByteArrayData)) },-
173{ { { -1 } }, 6, 0, 0, qptrdiff(-
174__builtin_offsetof (-
175qt_meta_stringdata_QQuickWidget_t-
176, -
177stringdata0-
178) -
179+ 279 - 22 * sizeof(QByteArrayData)) },-
180{ { { -1 } }, 20, 0, 0, qptrdiff(-
181__builtin_offsetof (-
182qt_meta_stringdata_QQuickWidget_t-
183, -
184stringdata0-
185) -
186+ 286 - 23 * sizeof(QByteArrayData)) },-
187{ { { -1 } }, 20, 0, 0, qptrdiff(-
188__builtin_offsetof (-
189qt_meta_stringdata_QQuickWidget_t-
190, -
191stringdata0-
192) -
193+ 307 - 24 * sizeof(QByteArrayData)) },-
194{ { { -1 } }, 4, 0, 0, qptrdiff(-
195__builtin_offsetof (-
196qt_meta_stringdata_QQuickWidget_t-
197, -
198stringdata0-
199) -
200+ 328 - 25 * sizeof(QByteArrayData)) },-
201{ { { -1 } }, 5, 0, 0, qptrdiff(-
202__builtin_offsetof (-
203qt_meta_stringdata_QQuickWidget_t-
204, -
205stringdata0-
206) -
207+ 333 - 26 * sizeof(QByteArrayData)) },-
208{ { { -1 } }, 7, 0, 0, qptrdiff(-
209__builtin_offsetof (-
210qt_meta_stringdata_QQuickWidget_t-
211, -
212stringdata0-
213) -
214+ 339 - 27 * sizeof(QByteArrayData)) },-
215{ { { -1 } }, 5, 0, 0, qptrdiff(-
216__builtin_offsetof (-
217qt_meta_stringdata_QQuickWidget_t-
218, -
219stringdata0-
220) -
221+ 347 - 28 * sizeof(QByteArrayData)) }-
222-
223 },-
224 "QQuickWidget\0statusChanged\0\0"-
225 "QQuickWidget::Status\0sceneGraphError\0"-
226 "QQuickWindow::SceneGraphError\0error\0"-
227 "message\0setSource\0setContent\0url\0"-
228 "QQmlComponent*\0component\0item\0"-
229 "continueExecute\0createFramebufferObject\0"-
230 "destroyFramebufferObject\0triggerUpdate\0"-
231 "resizeMode\0ResizeMode\0status\0Status\0"-
232 "source\0SizeViewToRootObject\0"-
233 "SizeRootObjectToView\0Null\0Ready\0Loading\0"-
234 "Error"-
235};-
236-
237-
238static const uint qt_meta_data_QQuickWidget[] = {-
239-
240-
241 7,-
242 0,-
243 0, 0,-
244 8, 14,-
245 3, 76,-
246 2, 88,-
247 0, 0,-
248 0,-
249 2,-
250-
251-
252 1, 1, 54, 2, 0x06 ,-
253 4, 2, 57, 2, 0x06 ,-
254-
255-
256 8, 1, 62, 2, 0x0a ,-
257 9, 3, 65, 2, 0x0a ,-
258 14, 0, 72, 2, 0x08 ,-
259 15, 0, 73, 2, 0x08 ,-
260 16, 0, 74, 2, 0x08 ,-
261 17, 0, 75, 2, 0x08 ,-
262-
263-
264 QMetaType::Void, 0x80000000 | 3, 2,-
265 QMetaType::Void, 0x80000000 | 5, QMetaType::QString, 6, 7,-
266-
267-
268 QMetaType::Void, QMetaType::QUrl, 2,-
269 QMetaType::Void, QMetaType::QUrl, 0x80000000 | 11, QMetaType::QObjectStar, 10, 12, 13,-
270 QMetaType::Void,-
271 QMetaType::Void,-
272 QMetaType::Void,-
273 QMetaType::Void,-
274-
275-
276 18, 0x80000000 | 19, 0x0009510b,-
277 20, 0x80000000 | 21, 0x00495009,-
278 22, QMetaType::QUrl, 0x00095103,-
279-
280-
281 0,-
282 0,-
283 0,-
284-
285-
286 19, 0x0, 2, 96,-
287 21, 0x0, 4, 100,-
288-
289-
290 23, uint(QQuickWidget::SizeViewToRootObject),-
291 24, uint(QQuickWidget::SizeRootObjectToView),-
292 25, uint(QQuickWidget::Null),-
293 26, uint(QQuickWidget::Ready),-
294 27, uint(QQuickWidget::Loading),-
295 28, uint(QQuickWidget::Error),-
296-
297 0-
298};-
299-
300void QQuickWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
301{-
302 if (_c == QMetaObject::InvokeMetaMethod) {-
303 QQuickWidget *_t = static_cast<QQuickWidget *>(_o);-
304 (void)_t;-
305 switch (_id) {-
306 case 0: _t->statusChanged((*reinterpret_cast< QQuickWidget::Status(*)>(_a[1]))); break;-
307 case 1: _t->sceneGraphError((*reinterpret_cast< QQuickWindow::SceneGraphError(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;-
308 case 2: _t->setSource((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;-
309 case 3: _t->setContent((*reinterpret_cast< const QUrl(*)>(_a[1])),(*reinterpret_cast< QQmlComponent*(*)>(_a[2])),(*reinterpret_cast< QObject*(*)>(_a[3]))); break;-
310 case 4: _t->continueExecute(); break;-
311 case 5: _t->createFramebufferObject(); break;-
312 case 6: _t->destroyFramebufferObject(); break;-
313 case 7: _t->triggerUpdate(); break;-
314 default: ;-
315 }-
316 } else if (_c == QMetaObject::IndexOfMethod) {-
317 int *result = reinterpret_cast<int *>(_a[0]);-
318 {-
319 using _t = void (QQuickWidget::*)(QQuickWidget::Status );-
320 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickWidget::statusChanged)) {-
321 *result = 0;-
322 return;-
323 }-
324 }-
325 {-
326 using _t = void (QQuickWidget::*)(QQuickWindow::SceneGraphError , const QString & );-
327 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickWidget::sceneGraphError)) {-
328 *result = 1;-
329 return;-
330 }-
331 }-
332 }-
333-
334 else if (_c == QMetaObject::ReadProperty) {-
335 QQuickWidget *_t = static_cast<QQuickWidget *>(_o);-
336 (void)_t;-
337 void *_v = _a[0];-
338 switch (_id) {-
339 case 0: *reinterpret_cast< ResizeMode*>(_v) = _t->resizeMode(); break;-
340 case 1: *reinterpret_cast< Status*>(_v) = _t->status(); break;-
341 case 2: *reinterpret_cast< QUrl*>(_v) = _t->source(); break;-
342 default: break;-
343 }-
344 } else if (_c == QMetaObject::WriteProperty) {-
345 QQuickWidget *_t = static_cast<QQuickWidget *>(_o);-
346 (void)_t;-
347 void *_v = _a[0];-
348 switch (_id) {-
349 case 0: _t->setResizeMode(*reinterpret_cast< ResizeMode*>(_v)); break;-
350 case 2: _t->setSource(*reinterpret_cast< QUrl*>(_v)); break;-
351 default: break;-
352 }-
353 } else if (_c == QMetaObject::ResetProperty) {-
354 }-
355-
356}-
357-
358 const QMetaObject QQuickWidget::staticMetaObject = {-
359 { &QWidget::staticMetaObject, qt_meta_stringdata_QQuickWidget.data,-
360 qt_meta_data_QQuickWidget, qt_static_metacall, nullptr, nullptr}-
361};-
362-
363-
364const QMetaObject *QQuickWidget::metaObject() const-
365{-
366 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
367}-
368-
369void *QQuickWidget::qt_metacast(const char *_clname)-
370{-
371 if (!_clname) return nullptr;-
372 if (!strcmp(_clname, qt_meta_stringdata_QQuickWidget.stringdata0))-
373 return static_cast<void*>(this);-
374 return QWidget::qt_metacast(_clname);-
375}-
376-
377int QQuickWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
378{-
379 _id = QWidget::qt_metacall(_c, _id, _a);-
380 if (_id < 0)-
381 return _id;-
382 if (_c == QMetaObject::InvokeMetaMethod) {-
383 if (_id < 8)-
384 qt_static_metacall(this, _c, _id, _a);-
385 _id -= 8;-
386 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
387 if (_id < 8)-
388 *reinterpret_cast<int*>(_a[0]) = -1;-
389 _id -= 8;-
390 }-
391-
392 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
393 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
394 qt_static_metacall(this, _c, _id, _a);-
395 _id -= 3;-
396 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
397 _id -= 3;-
398 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
399 _id -= 3;-
400 } else if (_c == QMetaObject::QueryPropertyStored) {-
401 _id -= 3;-
402 } else if (_c == QMetaObject::QueryPropertyEditable) {-
403 _id -= 3;-
404 } else if (_c == QMetaObject::QueryPropertyUser) {-
405 _id -= 3;-
406 }-
407-
408 return _id;-
409}-
410-
411-
412void QQuickWidget::statusChanged(QQuickWidget::Status _t1)-
413{-
414 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
415 QMetaObject::activate(this, &staticMetaObject, 0, _a);-
416}
executed 110 times by 2 tests: end of block
Executed by:
  • tst_qquickshortcut
  • tst_qquickwidget
110
417-
418-
419void QQuickWidget::sceneGraphError(QQuickWindow::SceneGraphError _t1, const QString & _t2)-
420{-
421 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
422 QMetaObject::activate(this, &staticMetaObject, 1, _a);-
423}
never executed: end of block
0
424-
425#pragma GCC diagnostic pop-
426-
427-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0