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