Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmltimer_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_QQmlTimer_t { | - |
9 | QByteArrayData data[16]; | - |
10 | char stringdata0[164]; | - |
11 | }; | - |
12 | - | |
13 | - | |
14 | - | |
15 | - | |
16 | - | |
17 | static const qt_meta_stringdata_QQmlTimer_t qt_meta_stringdata_QQmlTimer = { | - |
18 | { | - |
19 | { { { -1 } }, 9, 0, 0, qptrdiff( | - |
20 | __builtin_offsetof ( | - |
21 | qt_meta_stringdata_QQmlTimer_t | - |
22 | , | - |
23 | stringdata0 | - |
24 | ) | - |
25 | + 0 - 0 * sizeof(QByteArrayData)) }, | - |
26 | { { { -1 } }, 9, 0, 0, qptrdiff( | - |
27 | __builtin_offsetof ( | - |
28 | qt_meta_stringdata_QQmlTimer_t | - |
29 | , | - |
30 | stringdata0 | - |
31 | ) | - |
32 | + 10 - 1 * sizeof(QByteArrayData)) }, | - |
33 | { { { -1 } }, 0, 0, 0, qptrdiff( | - |
34 | __builtin_offsetof ( | - |
35 | qt_meta_stringdata_QQmlTimer_t | - |
36 | , | - |
37 | stringdata0 | - |
38 | ) | - |
39 | + 20 - 2 * sizeof(QByteArrayData)) }, | - |
40 | { { { -1 } }, 14, 0, 0, qptrdiff( | - |
41 | __builtin_offsetof ( | - |
42 | qt_meta_stringdata_QQmlTimer_t | - |
43 | , | - |
44 | stringdata0 | - |
45 | ) | - |
46 | + 21 - 3 * sizeof(QByteArrayData)) }, | - |
47 | { { { -1 } }, 15, 0, 0, qptrdiff( | - |
48 | __builtin_offsetof ( | - |
49 | qt_meta_stringdata_QQmlTimer_t | - |
50 | , | - |
51 | stringdata0 | - |
52 | ) | - |
53 | + 36 - 4 * sizeof(QByteArrayData)) }, | - |
54 | { { { -1 } }, 13, 0, 0, qptrdiff( | - |
55 | __builtin_offsetof ( | - |
56 | qt_meta_stringdata_QQmlTimer_t | - |
57 | , | - |
58 | stringdata0 | - |
59 | ) | - |
60 | + 52 - 5 * sizeof(QByteArrayData)) }, | - |
61 | { { { -1 } }, 23, 0, 0, qptrdiff( | - |
62 | __builtin_offsetof ( | - |
63 | qt_meta_stringdata_QQmlTimer_t | - |
64 | , | - |
65 | stringdata0 | - |
66 | ) | - |
67 | + 66 - 6 * sizeof(QByteArrayData)) }, | - |
68 | { { { -1 } }, 5, 0, 0, qptrdiff( | - |
69 | __builtin_offsetof ( | - |
70 | qt_meta_stringdata_QQmlTimer_t | - |
71 | , | - |
72 | stringdata0 | - |
73 | ) | - |
74 | + 90 - 7 * sizeof(QByteArrayData)) }, | - |
75 | { { { -1 } }, 4, 0, 0, qptrdiff( | - |
76 | __builtin_offsetof ( | - |
77 | qt_meta_stringdata_QQmlTimer_t | - |
78 | , | - |
79 | stringdata0 | - |
80 | ) | - |
81 | + 96 - 8 * sizeof(QByteArrayData)) }, | - |
82 | { { { -1 } }, 7, 0, 0, qptrdiff( | - |
83 | __builtin_offsetof ( | - |
84 | qt_meta_stringdata_QQmlTimer_t | - |
85 | , | - |
86 | stringdata0 | - |
87 | ) | - |
88 | + 101 - 9 * sizeof(QByteArrayData)) }, | - |
89 | { { { -1 } }, 6, 0, 0, qptrdiff( | - |
90 | __builtin_offsetof ( | - |
91 | qt_meta_stringdata_QQmlTimer_t | - |
92 | , | - |
93 | stringdata0 | - |
94 | ) | - |
95 | + 109 - 10 * sizeof(QByteArrayData)) }, | - |
96 | { { { -1 } }, 8, 0, 0, qptrdiff( | - |
97 | __builtin_offsetof ( | - |
98 | qt_meta_stringdata_QQmlTimer_t | - |
99 | , | - |
100 | stringdata0 | - |
101 | ) | - |
102 | + 116 - 11 * sizeof(QByteArrayData)) }, | - |
103 | { { { -1 } }, 7, 0, 0, qptrdiff( | - |
104 | __builtin_offsetof ( | - |
105 | qt_meta_stringdata_QQmlTimer_t | - |
106 | , | - |
107 | stringdata0 | - |
108 | ) | - |
109 | + 125 - 12 * sizeof(QByteArrayData)) }, | - |
110 | { { { -1 } }, 6, 0, 0, qptrdiff( | - |
111 | __builtin_offsetof ( | - |
112 | qt_meta_stringdata_QQmlTimer_t | - |
113 | , | - |
114 | stringdata0 | - |
115 | ) | - |
116 | + 133 - 13 * sizeof(QByteArrayData)) }, | - |
117 | { { { -1 } }, 16, 0, 0, qptrdiff( | - |
118 | __builtin_offsetof ( | - |
119 | qt_meta_stringdata_QQmlTimer_t | - |
120 | , | - |
121 | stringdata0 | - |
122 | ) | - |
123 | + 140 - 14 * sizeof(QByteArrayData)) }, | - |
124 | { { { -1 } }, 6, 0, 0, qptrdiff( | - |
125 | __builtin_offsetof ( | - |
126 | qt_meta_stringdata_QQmlTimer_t | - |
127 | , | - |
128 | stringdata0 | - |
129 | ) | - |
130 | + 157 - 15 * sizeof(QByteArrayData)) } | - |
131 | - | |
132 | }, | - |
133 | "QQmlTimer\0triggered\0\0runningChanged\0" | - |
134 | "intervalChanged\0repeatChanged\0" | - |
135 | "triggeredOnStartChanged\0start\0stop\0" | - |
136 | "restart\0ticked\0interval\0running\0repeat\0" | - |
137 | "triggeredOnStart\0parent" | - |
138 | }; | - |
139 | - | |
140 | - | |
141 | static const uint qt_meta_data_QQmlTimer[] = { | - |
142 | - | |
143 | - | |
144 | 7, | - |
145 | 0, | - |
146 | 0, 0, | - |
147 | 9, 14, | - |
148 | 5, 68, | - |
149 | 0, 0, | - |
150 | 0, 0, | - |
151 | 0, | - |
152 | 5, | - |
153 | - | |
154 | - | |
155 | 1, 0, 59, 2, 0x06 , | - |
156 | 3, 0, 60, 2, 0x06 , | - |
157 | 4, 0, 61, 2, 0x06 , | - |
158 | 5, 0, 62, 2, 0x06 , | - |
159 | 6, 0, 63, 2, 0x06 , | - |
160 | - | |
161 | - | |
162 | 7, 0, 64, 2, 0x0a , | - |
163 | 8, 0, 65, 2, 0x0a , | - |
164 | 9, 0, 66, 2, 0x0a , | - |
165 | 10, 0, 67, 2, 0x08 , | - |
166 | - | |
167 | - | |
168 | QMetaType::Void, | - |
169 | QMetaType::Void, | - |
170 | QMetaType::Void, | - |
171 | QMetaType::Void, | - |
172 | QMetaType::Void, | - |
173 | - | |
174 | - | |
175 | QMetaType::Void, | - |
176 | QMetaType::Void, | - |
177 | QMetaType::Void, | - |
178 | QMetaType::Void, | - |
179 | - | |
180 | - | |
181 | 11, QMetaType::Int, 0x00495103, | - |
182 | 12, QMetaType::Bool, 0x00495103, | - |
183 | 13, QMetaType::Bool, 0x00495003, | - |
184 | 14, QMetaType::Bool, 0x00495103, | - |
185 | 15, QMetaType::QObjectStar, 0x00095401, | - |
186 | - | |
187 | - | |
188 | 2, | - |
189 | 1, | - |
190 | 3, | - |
191 | 4, | - |
192 | 0, | - |
193 | - | |
194 | 0 | - |
195 | }; | - |
196 | - | |
197 | void QQmlTimer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
198 | { | - |
199 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
200 | QQmlTimer *_t = static_cast<QQmlTimer *>(_o); | - |
201 | (void)_t; | - |
202 | switch (_id) { | - |
203 | case 0: _t->triggered(); break; | - |
204 | case 1: _t->runningChanged(); break; | - |
205 | case 2: _t->intervalChanged(); break; | - |
206 | case 3: _t->repeatChanged(); break; | - |
207 | case 4: _t->triggeredOnStartChanged(); break; | - |
208 | case 5: _t->start(); break; | - |
209 | case 6: _t->stop(); break; | - |
210 | case 7: _t->restart(); break; | - |
211 | case 8: _t->ticked(); break; | - |
212 | default: ; | - |
213 | } | - |
214 | } else if (_c == QMetaObject::IndexOfMethod) { | - |
215 | int *result = reinterpret_cast<int *>(_a[0]); | - |
216 | { | - |
217 | using _t = void (QQmlTimer::*)(); | - |
218 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlTimer::triggered)) { | - |
219 | *result = 0; | - |
220 | return; | - |
221 | } | - |
222 | } | - |
223 | { | - |
224 | using _t = void (QQmlTimer::*)(); | - |
225 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlTimer::runningChanged)) { | - |
226 | *result = 1; | - |
227 | return; | - |
228 | } | - |
229 | } | - |
230 | { | - |
231 | using _t = void (QQmlTimer::*)(); | - |
232 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlTimer::intervalChanged)) { | - |
233 | *result = 2; | - |
234 | return; | - |
235 | } | - |
236 | } | - |
237 | { | - |
238 | using _t = void (QQmlTimer::*)(); | - |
239 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlTimer::repeatChanged)) { | - |
240 | *result = 3; | - |
241 | return; | - |
242 | } | - |
243 | } | - |
244 | { | - |
245 | using _t = void (QQmlTimer::*)(); | - |
246 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlTimer::triggeredOnStartChanged)) { | - |
247 | *result = 4; | - |
248 | return; | - |
249 | } | - |
250 | } | - |
251 | } | - |
252 | - | |
253 | else if (_c == QMetaObject::ReadProperty) { | - |
254 | QQmlTimer *_t = static_cast<QQmlTimer *>(_o); | - |
255 | (void)_t; | - |
256 | void *_v = _a[0]; | - |
257 | switch (_id) { | - |
258 | case 0: *reinterpret_cast< int*>(_v) = _t->interval(); break; | - |
259 | case 1: *reinterpret_cast< bool*>(_v) = _t->isRunning(); break; | - |
260 | case 2: *reinterpret_cast< bool*>(_v) = _t->isRepeating(); break; | - |
261 | case 3: *reinterpret_cast< bool*>(_v) = _t->triggeredOnStart(); break; | - |
262 | case 4: *reinterpret_cast< QObject**>(_v) = _t->parent(); break; | - |
263 | default: break; | - |
264 | } | - |
265 | } else if (_c == QMetaObject::WriteProperty) { | - |
266 | QQmlTimer *_t = static_cast<QQmlTimer *>(_o); | - |
267 | (void)_t; | - |
268 | void *_v = _a[0]; | - |
269 | switch (_id) { | - |
270 | case 0: _t->setInterval(*reinterpret_cast< int*>(_v)); break; | - |
271 | case 1: _t->setRunning(*reinterpret_cast< bool*>(_v)); break; | - |
272 | case 2: _t->setRepeating(*reinterpret_cast< bool*>(_v)); break; | - |
273 | case 3: _t->setTriggeredOnStart(*reinterpret_cast< bool*>(_v)); break; | - |
274 | default: break; | - |
275 | } | - |
276 | } else if (_c == QMetaObject::ResetProperty) { | - |
277 | } | - |
278 | - | |
279 | (void)_a;; | - |
280 | } | - |
281 | - | |
282 | const QMetaObject QQmlTimer::staticMetaObject = { | - |
283 | { &QObject::staticMetaObject, qt_meta_stringdata_QQmlTimer.data, | - |
284 | qt_meta_data_QQmlTimer, qt_static_metacall, nullptr, nullptr} | - |
285 | }; | - |
286 | - | |
287 | - | |
288 | const QMetaObject *QQmlTimer::metaObject() const | - |
289 | { | - |
290 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
291 | } | - |
292 | - | |
293 | void *QQmlTimer::qt_metacast(const char *_clname) | - |
294 | { | - |
295 | if (!_clname) return nullptr; | - |
296 | if (!strcmp(_clname, qt_meta_stringdata_QQmlTimer.stringdata0)) | - |
297 | return static_cast<void*>(this); | - |
298 | if (!strcmp(_clname, "QQmlParserStatus")) | - |
299 | return static_cast< QQmlParserStatus*>(this); | - |
300 | if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus")) | - |
301 | return static_cast< QQmlParserStatus*>(this); | - |
302 | return QObject::qt_metacast(_clname); | - |
303 | } | - |
304 | - | |
305 | int QQmlTimer::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
306 | { | - |
307 | _id = QObject::qt_metacall(_c, _id, _a); | - |
308 | if (_id < 0) | - |
309 | return _id; | - |
310 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
311 | if (_id < 9) | - |
312 | qt_static_metacall(this, _c, _id, _a); | - |
313 | _id -= 9; | - |
314 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
315 | if (_id < 9) | - |
316 | *reinterpret_cast<int*>(_a[0]) = -1; | - |
317 | _id -= 9; | - |
318 | } | - |
319 | - | |
320 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | - |
321 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { | - |
322 | qt_static_metacall(this, _c, _id, _a); | - |
323 | _id -= 5; | - |
324 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | - |
325 | _id -= 5; | - |
326 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | - |
327 | _id -= 5; | - |
328 | } else if (_c == QMetaObject::QueryPropertyStored) { | - |
329 | _id -= 5; | - |
330 | } else if (_c == QMetaObject::QueryPropertyEditable) { | - |
331 | _id -= 5; | - |
332 | } else if (_c == QMetaObject::QueryPropertyUser) { | - |
333 | _id -= 5; | - |
334 | } | - |
335 | - | |
336 | return _id; | - |
337 | } | - |
338 | - | |
339 | - | |
340 | void QQmlTimer::triggered() | - |
341 | { | - |
342 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); | - |
343 | } executed 110 times by 12 tests: end of block Executed by:
| 110 |
344 | - | |
345 | - | |
346 | void QQmlTimer::runningChanged() | - |
347 | { | - |
348 | QMetaObject::activate(this, &staticMetaObject, 1, nullptr); | - |
349 | } executed 204 times by 14 tests: end of block Executed by:
| 204 |
350 | - | |
351 | - | |
352 | void QQmlTimer::intervalChanged() | - |
353 | { | - |
354 | QMetaObject::activate(this, &staticMetaObject, 2, nullptr); | - |
355 | } executed 152 times by 13 tests: end of block Executed by:
| 152 |
356 | - | |
357 | - | |
358 | void QQmlTimer::repeatChanged() | - |
359 | { | - |
360 | QMetaObject::activate(this, &staticMetaObject, 3, nullptr); | - |
361 | } executed 62 times by 5 tests: end of block Executed by:
| 62 |
362 | - | |
363 | - | |
364 | void QQmlTimer::triggeredOnStartChanged() | - |
365 | { | - |
366 | QMetaObject::activate(this, &staticMetaObject, 4, nullptr); | - |
367 | } executed 34 times by 3 tests: end of block Executed by:
| 34 |
368 | - | |
369 | #pragma GCC diagnostic pop | - |
370 | - | |
371 | - | |
Switch to Source code | Preprocessed file |