OpenCoverage

moc_qquickloader_p.cpp

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

Generated by Squish Coco 4.2.0