OpenCoverage

moc_qquickparticleaffector_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/.moc/moc_qquickparticleaffector_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qquickparticleaffector_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 "../qquickparticleaffector_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qquickparticleaffector_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_QQuickParticleAffector_t {-
24 QByteArrayData data[27];-
25 char stringdata0[317];-
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_QQuickParticleAffector_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQuickParticleAffector_t qt_meta_stringdata_QQuickParticleAffector = {-
33 {-
34QT_MOC_LITERAL(0, 0, 22), // "QQuickParticleAffector"-
35QT_MOC_LITERAL(1, 23, 13), // "systemChanged"-
36QT_MOC_LITERAL(2, 37, 0), // ""-
37QT_MOC_LITERAL(3, 38, 21), // "QQuickParticleSystem*"-
38QT_MOC_LITERAL(4, 60, 3), // "arg"-
39QT_MOC_LITERAL(5, 64, 13), // "groupsChanged"-
40QT_MOC_LITERAL(6, 78, 14), // "enabledChanged"-
41QT_MOC_LITERAL(7, 93, 11), // "onceChanged"-
42QT_MOC_LITERAL(8, 105, 12), // "shapeChanged"-
43QT_MOC_LITERAL(9, 118, 23), // "QQuickParticleExtruder*"-
44QT_MOC_LITERAL(10, 142, 8), // "affected"-
45QT_MOC_LITERAL(11, 151, 1), // "x"-
46QT_MOC_LITERAL(12, 153, 1), // "y"-
47QT_MOC_LITERAL(13, 155, 24), // "whenCollidingWithChanged"-
48QT_MOC_LITERAL(14, 180, 9), // "setSystem"-
49QT_MOC_LITERAL(15, 190, 9), // "setGroups"-
50QT_MOC_LITERAL(16, 200, 10), // "setEnabled"-
51QT_MOC_LITERAL(17, 211, 10), // "setOnceOff"-
52QT_MOC_LITERAL(18, 222, 8), // "setShape"-
53QT_MOC_LITERAL(19, 231, 20), // "setWhenCollidingWith"-
54QT_MOC_LITERAL(20, 252, 13), // "updateOffsets"-
55QT_MOC_LITERAL(21, 266, 6), // "system"-
56QT_MOC_LITERAL(22, 273, 6), // "groups"-
57QT_MOC_LITERAL(23, 280, 17), // "whenCollidingWith"-
58QT_MOC_LITERAL(24, 298, 7), // "enabled"-
59QT_MOC_LITERAL(25, 306, 4), // "once"-
60QT_MOC_LITERAL(26, 311, 5) // "shape"-
61-
62 },-
63 "QQuickParticleAffector\0systemChanged\0"-
64 "\0QQuickParticleSystem*\0arg\0groupsChanged\0"-
65 "enabledChanged\0onceChanged\0shapeChanged\0"-
66 "QQuickParticleExtruder*\0affected\0x\0y\0"-
67 "whenCollidingWithChanged\0setSystem\0"-
68 "setGroups\0setEnabled\0setOnceOff\0"-
69 "setShape\0setWhenCollidingWith\0"-
70 "updateOffsets\0system\0groups\0"-
71 "whenCollidingWith\0enabled\0once\0shape"-
72};-
73#undef QT_MOC_LITERAL-
74-
75static const uint qt_meta_data_QQuickParticleAffector[] = {-
76-
77 // content:-
78 7, // revision-
79 0, // classname-
80 0, 0, // classinfo-
81 14, 14, // methods-
82 6, 126, // properties-
83 0, 0, // enums/sets-
84 0, 0, // constructors-
85 0, // flags-
86 7, // signalCount-
87-
88 // signals: name, argc, parameters, tag, flags-
89 1, 1, 84, 2, 0x06 /* Public */,-
90 5, 1, 87, 2, 0x06 /* Public */,-
91 6, 1, 90, 2, 0x06 /* Public */,-
92 7, 1, 93, 2, 0x06 /* Public */,-
93 8, 1, 96, 2, 0x06 /* Public */,-
94 10, 2, 99, 2, 0x06 /* Public */,-
95 13, 1, 104, 2, 0x06 /* Public */,-
96-
97 // slots: name, argc, parameters, tag, flags-
98 14, 1, 107, 2, 0x0a /* Public */,-
99 15, 1, 110, 2, 0x0a /* Public */,-
100 16, 1, 113, 2, 0x0a /* Public */,-
101 17, 1, 116, 2, 0x0a /* Public */,-
102 18, 1, 119, 2, 0x0a /* Public */,-
103 19, 1, 122, 2, 0x0a /* Public */,-
104 20, 0, 125, 2, 0x0a /* Public */,-
105-
106 // signals: parameters-
107 QMetaType::Void, 0x80000000 | 3, 4,-
108 QMetaType::Void, QMetaType::QStringList, 4,-
109 QMetaType::Void, QMetaType::Bool, 4,-
110 QMetaType::Void, QMetaType::Bool, 4,-
111 QMetaType::Void, 0x80000000 | 9, 4,-
112 QMetaType::Void, QMetaType::QReal, QMetaType::QReal, 11, 12,-
113 QMetaType::Void, QMetaType::QStringList, 4,-
114-
115 // slots: parameters-
116 QMetaType::Void, 0x80000000 | 3, 4,-
117 QMetaType::Void, QMetaType::QStringList, 4,-
118 QMetaType::Void, QMetaType::Bool, 4,-
119 QMetaType::Void, QMetaType::Bool, 4,-
120 QMetaType::Void, 0x80000000 | 9, 4,-
121 QMetaType::Void, QMetaType::QStringList, 4,-
122 QMetaType::Void,-
123-
124 // properties: name, type, flags-
125 21, 0x80000000 | 3, 0x0049510b,-
126 22, QMetaType::QStringList, 0x00495103,-
127 23, QMetaType::QStringList, 0x00495103,-
128 24, QMetaType::Bool, 0x00495103,-
129 25, QMetaType::Bool, 0x00495003,-
130 26, 0x80000000 | 9, 0x0049510b,-
131-
132 // properties: notify_signal_id-
133 0,-
134 1,-
135 6,-
136 2,-
137 3,-
138 4,-
139-
140 0 // eod-
141};-
142-
143void QQuickParticleAffector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
144{-
145 if (_c == QMetaObject::InvokeMetaMethod) {-
146 QQuickParticleAffector *_t = static_cast<QQuickParticleAffector *>(_o);-
147 Q_UNUSED(_t)-
148 switch (_id) {-
149 case 0: _t->systemChanged((*reinterpret_cast< QQuickParticleSystem*(*)>(_a[1]))); break;-
150 case 1: _t->groupsChanged((*reinterpret_cast< const QStringList(*)>(_a[1]))); break;-
151 case 2: _t->enabledChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;-
152 case 3: _t->onceChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;-
153 case 4: _t->shapeChanged((*reinterpret_cast< QQuickParticleExtruder*(*)>(_a[1]))); break;-
154 case 5: _t->affected((*reinterpret_cast< qreal(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2]))); break;-
155 case 6: _t->whenCollidingWithChanged((*reinterpret_cast< const QStringList(*)>(_a[1]))); break;-
156 case 7: _t->setSystem((*reinterpret_cast< QQuickParticleSystem*(*)>(_a[1]))); break;-
157 case 8: _t->setGroups((*reinterpret_cast< const QStringList(*)>(_a[1]))); break;-
158 case 9: _t->setEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;-
159 case 10: _t->setOnceOff((*reinterpret_cast< bool(*)>(_a[1]))); break;-
160 case 11: _t->setShape((*reinterpret_cast< QQuickParticleExtruder*(*)>(_a[1]))); break;-
161 case 12: _t->setWhenCollidingWith((*reinterpret_cast< const QStringList(*)>(_a[1]))); break;-
162 case 13: _t->updateOffsets(); break;-
163 default: ;-
164 }-
165 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
166 switch (_id) {-
167 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
168 case 0:-
169 switch (*reinterpret_cast<int*>(_a[1])) {-
170 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
171 case 0:-
172 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickParticleSystem* >(); break;-
173 }-
174 break;-
175 case 4:-
176 switch (*reinterpret_cast<int*>(_a[1])) {-
177 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
178 case 0:-
179 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickParticleExtruder* >(); break;-
180 }-
181 break;-
182 case 7:-
183 switch (*reinterpret_cast<int*>(_a[1])) {-
184 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
185 case 0:-
186 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickParticleSystem* >(); break;-
187 }-
188 break;-
189 case 11:-
190 switch (*reinterpret_cast<int*>(_a[1])) {-
191 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
192 case 0:-
193 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickParticleExtruder* >(); break;-
194 }-
195 break;-
196 }-
197 } else if (_c == QMetaObject::IndexOfMethod) {-
198 int *result = reinterpret_cast<int *>(_a[0]);-
199 {-
200 using _t = void (QQuickParticleAffector::*)(QQuickParticleSystem * );-
201 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickParticleAffector::systemChanged)) {-
202 *result = 0;-
203 return;-
204 }-
205 }-
206 {-
207 using _t = void (QQuickParticleAffector::*)(const QStringList & );-
208 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickParticleAffector::groupsChanged)) {-
209 *result = 1;-
210 return;-
211 }-
212 }-
213 {-
214 using _t = void (QQuickParticleAffector::*)(bool );-
215 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickParticleAffector::enabledChanged)) {-
216 *result = 2;-
217 return;-
218 }-
219 }-
220 {-
221 using _t = void (QQuickParticleAffector::*)(bool );-
222 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickParticleAffector::onceChanged)) {-
223 *result = 3;-
224 return;-
225 }-
226 }-
227 {-
228 using _t = void (QQuickParticleAffector::*)(QQuickParticleExtruder * );-
229 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickParticleAffector::shapeChanged)) {-
230 *result = 4;-
231 return;-
232 }-
233 }-
234 {-
235 using _t = void (QQuickParticleAffector::*)(qreal , qreal );-
236 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickParticleAffector::affected)) {-
237 *result = 5;-
238 return;-
239 }-
240 }-
241 {-
242 using _t = void (QQuickParticleAffector::*)(const QStringList & );-
243 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickParticleAffector::whenCollidingWithChanged)) {-
244 *result = 6;-
245 return;-
246 }-
247 }-
248 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
249 switch (_id) {-
250 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
251 case 5:-
252 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickParticleExtruder* >(); break;-
253 case 0:-
254 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickParticleSystem* >(); break;-
255 }-
256 }-
257-
258#ifndef QT_NO_PROPERTIES-
259 else if (_c == QMetaObject::ReadProperty) {-
260 QQuickParticleAffector *_t = static_cast<QQuickParticleAffector *>(_o);-
261 Q_UNUSED(_t)-
262 void *_v = _a[0];-
263 switch (_id) {-
264 case 0: *reinterpret_cast< QQuickParticleSystem**>(_v) = _t->system(); break;-
265 case 1: *reinterpret_cast< QStringList*>(_v) = _t->groups(); break;-
266 case 2: *reinterpret_cast< QStringList*>(_v) = _t->whenCollidingWith(); break;-
267 case 3: *reinterpret_cast< bool*>(_v) = _t->enabled(); break;-
268 case 4: *reinterpret_cast< bool*>(_v) = _t->onceOff(); break;-
269 case 5: *reinterpret_cast< QQuickParticleExtruder**>(_v) = _t->shape(); break;-
270 default: break;-
271 }-
272 } else if (_c == QMetaObject::WriteProperty) {-
273 QQuickParticleAffector *_t = static_cast<QQuickParticleAffector *>(_o);-
274 Q_UNUSED(_t)-
275 void *_v = _a[0];-
276 switch (_id) {-
277 case 0: _t->setSystem(*reinterpret_cast< QQuickParticleSystem**>(_v)); break;-
278 case 1: _t->setGroups(*reinterpret_cast< QStringList*>(_v)); break;-
279 case 2: _t->setWhenCollidingWith(*reinterpret_cast< QStringList*>(_v)); break;-
280 case 3: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break;-
281 case 4: _t->setOnceOff(*reinterpret_cast< bool*>(_v)); break;-
282 case 5: _t->setShape(*reinterpret_cast< QQuickParticleExtruder**>(_v)); break;-
283 default: break;-
284 }-
285 } else if (_c == QMetaObject::ResetProperty) {-
286 }-
287#endif // QT_NO_PROPERTIES-
288}-
289-
290QT_INIT_METAOBJECT const QMetaObject QQuickParticleAffector::staticMetaObject = {-
291 { &QQuickItem::staticMetaObject, qt_meta_stringdata_QQuickParticleAffector.data,-
292 qt_meta_data_QQuickParticleAffector, qt_static_metacall, nullptr, nullptr}-
293};-
294-
295-
296const QMetaObject *QQuickParticleAffector::metaObject() const-
297{-
298 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
299}-
300-
301void *QQuickParticleAffector::qt_metacast(const char *_clname)-
302{-
303 if (!_clname) return nullptr;-
304 if (!strcmp(_clname, qt_meta_stringdata_QQuickParticleAffector.stringdata0))-
305 return static_cast<void*>(this);-
306 return QQuickItem::qt_metacast(_clname);-
307}-
308-
309int QQuickParticleAffector::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
310{-
311 _id = QQuickItem::qt_metacall(_c, _id, _a);-
312 if (_id < 0)-
313 return _id;-
314 if (_c == QMetaObject::InvokeMetaMethod) {-
315 if (_id < 14)-
316 qt_static_metacall(this, _c, _id, _a);-
317 _id -= 14;-
318 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
319 if (_id < 14)-
320 qt_static_metacall(this, _c, _id, _a);-
321 _id -= 14;-
322 }-
323#ifndef QT_NO_PROPERTIES-
324 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
325 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
326 qt_static_metacall(this, _c, _id, _a);-
327 _id -= 6;-
328 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
329 _id -= 6;-
330 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
331 _id -= 6;-
332 } else if (_c == QMetaObject::QueryPropertyStored) {-
333 _id -= 6;-
334 } else if (_c == QMetaObject::QueryPropertyEditable) {-
335 _id -= 6;-
336 } else if (_c == QMetaObject::QueryPropertyUser) {-
337 _id -= 6;-
338 }-
339#endif // QT_NO_PROPERTIES-
340 return _id;-
341}-
342-
343// SIGNAL 0-
344void QQuickParticleAffector::systemChanged(QQuickParticleSystem * _t1)-
345{-
346 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
347 QMetaObject::activate(this, &staticMetaObject, 0, _a);-
348}
executed 94 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickcustomaffector
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickspritegoal
  • tst_qquickturbulence
  • tst_qquickwander
94
349-
350// SIGNAL 1-
351void QQuickParticleAffector::groupsChanged(const QStringList & _t1)-
352{-
353 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
354 QMetaObject::activate(this, &staticMetaObject, 1, _a);-
355}
executed 26 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickfriction
  • tst_qquickgroupgoal
26
356-
357// SIGNAL 2-
358void QQuickParticleAffector::enabledChanged(bool _t1)-
359{-
360 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
361 QMetaObject::activate(this, &staticMetaObject, 2, _a);-
362}
executed 12 times by 1 test: end of block
Executed by:
  • tst_examples
12
363-
364// SIGNAL 3-
365void QQuickParticleAffector::onceChanged(bool _t1)-
366{-
367 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
368 QMetaObject::activate(this, &staticMetaObject, 3, _a);-
369}
executed 22 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickcustomaffector
22
370-
371// SIGNAL 4-
372void QQuickParticleAffector::shapeChanged(QQuickParticleExtruder * _t1)-
373{-
374 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
375 QMetaObject::activate(this, &staticMetaObject, 4, _a);-
376}
executed 2 times by 1 test: end of block
Executed by:
  • tst_examples
2
377-
378// SIGNAL 5-
379void QQuickParticleAffector::affected(qreal _t1, qreal _t2)-
380{-
381 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
382 QMetaObject::activate(this, &staticMetaObject, 5, _a);-
383}
executed 1280 times by 1 test: end of block
Executed by:
  • tst_qquickcustomaffector
1280
384-
385// SIGNAL 6-
386void QQuickParticleAffector::whenCollidingWithChanged(const QStringList & _t1)-
387{-
388 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
389 QMetaObject::activate(this, &staticMetaObject, 6, _a);-
390}
executed 2 times by 1 test: end of block
Executed by:
  • tst_examples
2
391QT_WARNING_POP-
392QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0