OpenCoverage

moc_qquicktrailemitter_p.cpp

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

Generated by Squish Coco 4.2.0