OpenCoverage

moc_qquickage_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/.moc/moc_qquickage_p.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_QQuickAgeAffector_t {-
9 QByteArrayData data[9];-
10 char stringdata0[118];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQuickAgeAffector_t qt_meta_stringdata_QQuickAgeAffector = {-
18 {-
19{ { { -1 } }, 17, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQuickAgeAffector_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 15, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQuickAgeAffector_t-
29, -
30stringdata0-
31) -
32+ 18 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQuickAgeAffector_t-
36, -
37stringdata0-
38) -
39+ 34 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 3, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQuickAgeAffector_t-
43, -
44stringdata0-
45) -
46+ 35 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 22, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQuickAgeAffector_t-
50, -
51stringdata0-
52) -
53+ 39 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 11, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QQuickAgeAffector_t-
57, -
58stringdata0-
59) -
60+ 62 - 5 * sizeof(QByteArrayData)) },-
61{ { { -1 } }, 18, 0, 0, qptrdiff(-
62__builtin_offsetof (-
63qt_meta_stringdata_QQuickAgeAffector_t-
64, -
65stringdata0-
66) -
67+ 74 - 6 * sizeof(QByteArrayData)) },-
68{ { { -1 } }, 8, 0, 0, qptrdiff(-
69__builtin_offsetof (-
70qt_meta_stringdata_QQuickAgeAffector_t-
71, -
72stringdata0-
73) -
74+ 93 - 7 * sizeof(QByteArrayData)) },-
75{ { { -1 } }, 15, 0, 0, qptrdiff(-
76__builtin_offsetof (-
77qt_meta_stringdata_QQuickAgeAffector_t-
78, -
79stringdata0-
80) -
81+ 102 - 8 * sizeof(QByteArrayData)) }-
82-
83 },-
84 "QQuickAgeAffector\0lifeLeftChanged\0\0"-
85 "arg\0advancePositionChanged\0setLifeLeft\0"-
86 "setAdvancePosition\0lifeLeft\0advancePosition"-
87};-
88-
89-
90static const uint qt_meta_data_QQuickAgeAffector[] = {-
91-
92-
93 7,-
94 0,-
95 0, 0,-
96 4, 14,-
97 2, 46,-
98 0, 0,-
99 0, 0,-
100 0,-
101 2,-
102-
103-
104 1, 1, 34, 2, 0x06 ,-
105 4, 1, 37, 2, 0x06 ,-
106-
107-
108 5, 1, 40, 2, 0x0a ,-
109 6, 1, 43, 2, 0x0a ,-
110-
111-
112 QMetaType::Void, QMetaType::Int, 3,-
113 QMetaType::Void, QMetaType::Bool, 3,-
114-
115-
116 QMetaType::Void, QMetaType::Int, 3,-
117 QMetaType::Void, QMetaType::Bool, 3,-
118-
119-
120 7, QMetaType::Int, 0x00495103,-
121 8, QMetaType::Bool, 0x00495103,-
122-
123-
124 0,-
125 1,-
126-
127 0-
128};-
129-
130void QQuickAgeAffector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
131{-
132 if (_c == QMetaObject::InvokeMetaMethod) {-
133 QQuickAgeAffector *_t = static_cast<QQuickAgeAffector *>(_o);-
134 (void)_t;-
135 switch (_id) {-
136 case 0: _t->lifeLeftChanged((*reinterpret_cast< int(*)>(_a[1]))); break;-
137 case 1: _t->advancePositionChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;-
138 case 2: _t->setLifeLeft((*reinterpret_cast< int(*)>(_a[1]))); break;-
139 case 3: _t->setAdvancePosition((*reinterpret_cast< bool(*)>(_a[1]))); break;-
140 default: ;-
141 }-
142 } else if (_c == QMetaObject::IndexOfMethod) {-
143 int *result = reinterpret_cast<int *>(_a[0]);-
144 {-
145 using _t = void (QQuickAgeAffector::*)(int );-
146 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickAgeAffector::lifeLeftChanged)) {-
147 *result = 0;-
148 return;-
149 }-
150 }-
151 {-
152 using _t = void (QQuickAgeAffector::*)(bool );-
153 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickAgeAffector::advancePositionChanged)) {-
154 *result = 1;-
155 return;-
156 }-
157 }-
158 }-
159-
160 else if (_c == QMetaObject::ReadProperty) {-
161 QQuickAgeAffector *_t = static_cast<QQuickAgeAffector *>(_o);-
162 (void)_t;-
163 void *_v = _a[0];-
164 switch (_id) {-
165 case 0: *reinterpret_cast< int*>(_v) = _t->lifeLeft(); break;-
166 case 1: *reinterpret_cast< bool*>(_v) = _t->advancePosition(); break;-
167 default: break;-
168 }-
169 } else if (_c == QMetaObject::WriteProperty) {-
170 QQuickAgeAffector *_t = static_cast<QQuickAgeAffector *>(_o);-
171 (void)_t;-
172 void *_v = _a[0];-
173 switch (_id) {-
174 case 0: _t->setLifeLeft(*reinterpret_cast< int*>(_v)); break;-
175 case 1: _t->setAdvancePosition(*reinterpret_cast< bool*>(_v)); break;-
176 default: break;-
177 }-
178 } else if (_c == QMetaObject::ResetProperty) {-
179 }-
180-
181}-
182-
183 const QMetaObject QQuickAgeAffector::staticMetaObject = {-
184 { &QQuickParticleAffector::staticMetaObject, qt_meta_stringdata_QQuickAgeAffector.data,-
185 qt_meta_data_QQuickAgeAffector, qt_static_metacall, nullptr, nullptr}-
186};-
187-
188-
189const QMetaObject *QQuickAgeAffector::metaObject() const-
190{-
191 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
192}-
193-
194void *QQuickAgeAffector::qt_metacast(const char *_clname)-
195{-
196 if (!_clname) return nullptr;-
197 if (!strcmp(_clname, qt_meta_stringdata_QQuickAgeAffector.stringdata0))-
198 return static_cast<void*>(this);-
199 return QQuickParticleAffector::qt_metacast(_clname);-
200}-
201-
202int QQuickAgeAffector::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
203{-
204 _id = QQuickParticleAffector::qt_metacall(_c, _id, _a);-
205 if (_id < 0)-
206 return _id;-
207 if (_c == QMetaObject::InvokeMetaMethod) {-
208 if (_id < 4)-
209 qt_static_metacall(this, _c, _id, _a);-
210 _id -= 4;-
211 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
212 if (_id < 4)-
213 *reinterpret_cast<int*>(_a[0]) = -1;-
214 _id -= 4;-
215 }-
216-
217 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
218 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
219 qt_static_metacall(this, _c, _id, _a);-
220 _id -= 2;-
221 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
222 _id -= 2;-
223 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
224 _id -= 2;-
225 } else if (_c == QMetaObject::QueryPropertyStored) {-
226 _id -= 2;-
227 } else if (_c == QMetaObject::QueryPropertyEditable) {-
228 _id -= 2;-
229 } else if (_c == QMetaObject::QueryPropertyUser) {-
230 _id -= 2;-
231 }-
232-
233 return _id;-
234}-
235-
236-
237void QQuickAgeAffector::lifeLeftChanged(int _t1)-
238{-
239 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
240 QMetaObject::activate(this, &staticMetaObject, 0, _a);-
241}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
8
242-
243-
244void QQuickAgeAffector::advancePositionChanged(bool _t1)-
245{-
246 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
247 QMetaObject::activate(this, &staticMetaObject, 1, _a);-
248}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
4
249-
250#pragma GCC diagnostic pop-
251-
252-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0