OpenCoverage

moc_qquickpointerhandler_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquickpointerhandler_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_QQuickPointerHandler_t {-
9 QByteArrayData data[31];-
10 char stringdata0[553];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQuickPointerHandler_t qt_meta_stringdata_QQuickPointerHandler = {-
18 {-
19{ { { -1 } }, 20, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQuickPointerHandler_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 14, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQuickPointerHandler_t-
29, -
30stringdata0-
31) -
32+ 21 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQuickPointerHandler_t-
36, -
37stringdata0-
38) -
39+ 36 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 13, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQuickPointerHandler_t-
43, -
44stringdata0-
45) -
46+ 37 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 13, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQuickPointerHandler_t-
50, -
51stringdata0-
52) -
53+ 51 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 13, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QQuickPointerHandler_t-
57, -
58stringdata0-
59) -
60+ 65 - 5 * sizeof(QByteArrayData)) },-
61{ { { -1 } }, 11, 0, 0, qptrdiff(-
62__builtin_offsetof (-
63qt_meta_stringdata_QQuickPointerHandler_t-
64, -
65stringdata0-
66) -
67+ 79 - 6 * sizeof(QByteArrayData)) },-
68{ { { -1 } }, 27, 0, 0, qptrdiff(-
69__builtin_offsetof (-
70qt_meta_stringdata_QQuickPointerHandler_t-
71, -
72stringdata0-
73) -
74+ 91 - 7 * sizeof(QByteArrayData)) },-
75{ { { -1 } }, 11, 0, 0, qptrdiff(-
76__builtin_offsetof (-
77qt_meta_stringdata_QQuickPointerHandler_t-
78, -
79stringdata0-
80) -
81+ 119 - 8 * sizeof(QByteArrayData)) },-
82{ { { -1 } }, 17, 0, 0, qptrdiff(-
83__builtin_offsetof (-
84qt_meta_stringdata_QQuickPointerHandler_t-
85, -
86stringdata0-
87) -
88+ 131 - 9 * sizeof(QByteArrayData)) },-
89{ { { -1 } }, 5, 0, 0, qptrdiff(-
90__builtin_offsetof (-
91qt_meta_stringdata_QQuickPointerHandler_t-
92, -
93stringdata0-
94) -
95+ 149 - 10 * sizeof(QByteArrayData)) },-
96{ { { -1 } }, 21, 0, 0, qptrdiff(-
97__builtin_offsetof (-
98qt_meta_stringdata_QQuickPointerHandler_t-
99, -
100stringdata0-
101) -
102+ 155 - 11 * sizeof(QByteArrayData)) },-
103{ { { -1 } }, 8, 0, 0, qptrdiff(-
104__builtin_offsetof (-
105qt_meta_stringdata_QQuickPointerHandler_t-
106, -
107stringdata0-
108) -
109+ 177 - 12 * sizeof(QByteArrayData)) },-
110{ { { -1 } }, 7, 0, 0, qptrdiff(-
111__builtin_offsetof (-
112qt_meta_stringdata_QQuickPointerHandler_t-
113, -
114stringdata0-
115) -
116+ 186 - 13 * sizeof(QByteArrayData)) },-
117{ { { -1 } }, 6, 0, 0, qptrdiff(-
118__builtin_offsetof (-
119qt_meta_stringdata_QQuickPointerHandler_t-
120, -
121stringdata0-
122) -
123+ 194 - 14 * sizeof(QByteArrayData)) },-
124{ { { -1 } }, 6, 0, 0, qptrdiff(-
125__builtin_offsetof (-
126qt_meta_stringdata_QQuickPointerHandler_t-
127, -
128stringdata0-
129) -
130+ 201 - 15 * sizeof(QByteArrayData)) },-
131{ { { -1 } }, 11, 0, 0, qptrdiff(-
132__builtin_offsetof (-
133qt_meta_stringdata_QQuickPointerHandler_t-
134, -
135stringdata0-
136) -
137+ 208 - 16 * sizeof(QByteArrayData)) },-
138{ { { -1 } }, 6, 0, 0, qptrdiff(-
139__builtin_offsetof (-
140qt_meta_stringdata_QQuickPointerHandler_t-
141, -
142stringdata0-
143) -
144+ 220 - 17 * sizeof(QByteArrayData)) },-
145{ { { -1 } }, 15, 0, 0, qptrdiff(-
146__builtin_offsetof (-
147qt_meta_stringdata_QQuickPointerHandler_t-
148, -
149stringdata0-
150) -
151+ 227 - 18 * sizeof(QByteArrayData)) },-
152{ { { -1 } }, 15, 0, 0, qptrdiff(-
153__builtin_offsetof (-
154qt_meta_stringdata_QQuickPointerHandler_t-
155, -
156stringdata0-
157) -
158+ 243 - 19 * sizeof(QByteArrayData)) },-
159{ { { -1 } }, 6, 0, 0, qptrdiff(-
160__builtin_offsetof (-
161qt_meta_stringdata_QQuickPointerHandler_t-
162, -
163stringdata0-
164) -
165+ 259 - 20 * sizeof(QByteArrayData)) },-
166{ { { -1 } }, 17, 0, 0, qptrdiff(-
167__builtin_offsetof (-
168qt_meta_stringdata_QQuickPointerHandler_t-
169, -
170stringdata0-
171) -
172+ 266 - 21 * sizeof(QByteArrayData)) },-
173{ { { -1 } }, 33, 0, 0, qptrdiff(-
174__builtin_offsetof (-
175qt_meta_stringdata_QQuickPointerHandler_t-
176, -
177stringdata0-
178) -
179+ 284 - 22 * sizeof(QByteArrayData)) },-
180{ { { -1 } }, 38, 0, 0, qptrdiff(-
181__builtin_offsetof (-
182qt_meta_stringdata_QQuickPointerHandler_t-
183, -
184stringdata0-
185) -
186+ 318 - 23 * sizeof(QByteArrayData)) },-
187{ { { -1 } }, 20, 0, 0, qptrdiff(-
188__builtin_offsetof (-
189qt_meta_stringdata_QQuickPointerHandler_t-
190, -
191stringdata0-
192) -
193+ 357 - 24 * sizeof(QByteArrayData)) },-
194{ { { -1 } }, 23, 0, 0, qptrdiff(-
195__builtin_offsetof (-
196qt_meta_stringdata_QQuickPointerHandler_t-
197, -
198stringdata0-
199) -
200+ 378 - 25 * sizeof(QByteArrayData)) },-
201{ { { -1 } }, 36, 0, 0, qptrdiff(-
202__builtin_offsetof (-
203qt_meta_stringdata_QQuickPointerHandler_t-
204, -
205stringdata0-
206) -
207+ 402 - 26 * sizeof(QByteArrayData)) },-
208{ { { -1 } }, 41, 0, 0, qptrdiff(-
209__builtin_offsetof (-
210qt_meta_stringdata_QQuickPointerHandler_t-
211, -
212stringdata0-
213) -
214+ 439 - 27 * sizeof(QByteArrayData)) },-
215{ { { -1 } }, 23, 0, 0, qptrdiff(-
216__builtin_offsetof (-
217qt_meta_stringdata_QQuickPointerHandler_t-
218, -
219stringdata0-
220) -
221+ 481 - 28 * sizeof(QByteArrayData)) },-
222{ { { -1 } }, 20, 0, 0, qptrdiff(-
223__builtin_offsetof (-
224qt_meta_stringdata_QQuickPointerHandler_t-
225, -
226stringdata0-
227) -
228+ 505 - 29 * sizeof(QByteArrayData)) },-
229{ { { -1 } }, 26, 0, 0, qptrdiff(-
230__builtin_offsetof (-
231qt_meta_stringdata_QQuickPointerHandler_t-
232, -
233stringdata0-
234) -
235+ 526 - 30 * sizeof(QByteArrayData)) }-
236-
237 },-
238 "QQuickPointerHandler\0enabledChanged\0"-
239 "\0activeChanged\0targetChanged\0marginChanged\0"-
240 "grabChanged\0QQuickEventPoint::GrabState\0"-
241 "stateChange\0QQuickEventPoint*\0point\0"-
242 "grabPermissionChanged\0canceled\0enabled\0"-
243 "active\0target\0QQuickItem*\0parent\0"-
244 "grabPermissions\0GrabPermissions\0margin\0"-
245 "TakeOverForbidden\0CanTakeOverFromHandlersOfSameType\0"-
246 "CanTakeOverFromHandlersOfDifferentType\0"-
247 "CanTakeOverFromItems\0CanTakeOverFromAnything\0"-
248 "ApprovesTakeOverByHandlersOfSameType\0"-
249 "ApprovesTakeOverByHandlersOfDifferentType\0"-
250 "ApprovesTakeOverByItems\0ApprovesCancellation\0"-
251 "ApprovesTakeOverByAnything"-
252};-
253-
254-
255static const uint qt_meta_data_QQuickPointerHandler[] = {-
256-
257-
258 7,-
259 0,-
260 0, 0,-
261 7, 14,-
262 6, 62,-
263 1, 86,-
264 0, 0,-
265 0,-
266 7,-
267-
268-
269 1, 0, 49, 2, 0x06 ,-
270 3, 0, 50, 2, 0x06 ,-
271 4, 0, 51, 2, 0x06 ,-
272 5, 0, 52, 2, 0x06 ,-
273 6, 2, 53, 2, 0x06 ,-
274 11, 0, 58, 2, 0x06 ,-
275 12, 1, 59, 2, 0x06 ,-
276-
277-
278 QMetaType::Void,-
279 QMetaType::Void,-
280 QMetaType::Void,-
281 QMetaType::Void,-
282 QMetaType::Void, 0x80000000 | 7, 0x80000000 | 9, 8, 10,-
283 QMetaType::Void,-
284 QMetaType::Void, 0x80000000 | 9, 10,-
285-
286-
287 13, QMetaType::Bool, 0x00495103,-
288 14, QMetaType::Bool, 0x00495001,-
289 15, 0x80000000 | 16, 0x0049510b,-
290 17, 0x80000000 | 16, 0x00095409,-
291 18, 0x80000000 | 19, 0x0049510b,-
292 20, QMetaType::QReal, 0x00495103,-
293-
294-
295 0,-
296 1,-
297 2,-
298 0,-
299 5,-
300 3,-
301-
302-
303 19, 0x1, 10, 90,-
304-
305-
306 21, uint(QQuickPointerHandler::TakeOverForbidden),-
307 22, uint(QQuickPointerHandler::CanTakeOverFromHandlersOfSameType),-
308 23, uint(QQuickPointerHandler::CanTakeOverFromHandlersOfDifferentType),-
309 24, uint(QQuickPointerHandler::CanTakeOverFromItems),-
310 25, uint(QQuickPointerHandler::CanTakeOverFromAnything),-
311 26, uint(QQuickPointerHandler::ApprovesTakeOverByHandlersOfSameType),-
312 27, uint(QQuickPointerHandler::ApprovesTakeOverByHandlersOfDifferentType),-
313 28, uint(QQuickPointerHandler::ApprovesTakeOverByItems),-
314 29, uint(QQuickPointerHandler::ApprovesCancellation),-
315 30, uint(QQuickPointerHandler::ApprovesTakeOverByAnything),-
316-
317 0-
318};-
319-
320void QQuickPointerHandler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
321{-
322 if (_c == QMetaObject::InvokeMetaMethod) {-
323 QQuickPointerHandler *_t = static_cast<QQuickPointerHandler *>(_o);-
324 (void)_t;-
325 switch (_id) {-
326 case 0: _t->enabledChanged(); break;-
327 case 1: _t->activeChanged(); break;-
328 case 2: _t->targetChanged(); break;-
329 case 3: _t->marginChanged(); break;-
330 case 4: _t->grabChanged((*reinterpret_cast< QQuickEventPoint::GrabState(*)>(_a[1])),(*reinterpret_cast< QQuickEventPoint*(*)>(_a[2]))); break;-
331 case 5: _t->grabPermissionChanged(); break;-
332 case 6: _t->canceled((*reinterpret_cast< QQuickEventPoint*(*)>(_a[1]))); break;-
333 default: ;-
334 }-
335 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
336 switch (_id) {-
337 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
338 case 4:-
339 switch (*reinterpret_cast<int*>(_a[1])) {-
340 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
341 case 1:-
342 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickEventPoint* >(); break;-
343 }-
344 break;-
345 case 6:-
346 switch (*reinterpret_cast<int*>(_a[1])) {-
347 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
348 case 0:-
349 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickEventPoint* >(); break;-
350 }-
351 break;-
352 }-
353 } else if (_c == QMetaObject::IndexOfMethod) {-
354 int *result = reinterpret_cast<int *>(_a[0]);-
355 {-
356 using _t = void (QQuickPointerHandler::*)();-
357 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::enabledChanged)) {-
358 *result = 0;-
359 return;-
360 }-
361 }-
362 {-
363 using _t = void (QQuickPointerHandler::*)();-
364 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::activeChanged)) {-
365 *result = 1;-
366 return;-
367 }-
368 }-
369 {-
370 using _t = void (QQuickPointerHandler::*)();-
371 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::targetChanged)) {-
372 *result = 2;-
373 return;-
374 }-
375 }-
376 {-
377 using _t = void (QQuickPointerHandler::*)();-
378 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::marginChanged)) {-
379 *result = 3;-
380 return;-
381 }-
382 }-
383 {-
384 using _t = void (QQuickPointerHandler::*)(QQuickEventPoint::GrabState , QQuickEventPoint * );-
385 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::grabChanged)) {-
386 *result = 4;-
387 return;-
388 }-
389 }-
390 {-
391 using _t = void (QQuickPointerHandler::*)();-
392 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::grabPermissionChanged)) {-
393 *result = 5;-
394 return;-
395 }-
396 }-
397 {-
398 using _t = void (QQuickPointerHandler::*)(QQuickEventPoint * );-
399 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::canceled)) {-
400 *result = 6;-
401 return;-
402 }-
403 }-
404 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
405 switch (_id) {-
406 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
407 case 3:-
408 case 2:-
409 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItem* >(); break;-
410 }-
411 }-
412-
413-
414 else if (_c == QMetaObject::ReadProperty) {-
415 QQuickPointerHandler *_t = static_cast<QQuickPointerHandler *>(_o);-
416 (void)_t;-
417 void *_v = _a[0];-
418 switch (_id) {-
419 case 0: *reinterpret_cast< bool*>(_v) = _t->enabled(); break;-
420 case 1: *reinterpret_cast< bool*>(_v) = _t->active(); break;-
421 case 2: *reinterpret_cast< QQuickItem**>(_v) = _t->target(); break;-
422 case 3: *reinterpret_cast< QQuickItem**>(_v) = _t->parentItem(); break;-
423 case 4: *reinterpret_cast<int*>(_v) = QFlag(_t->grabPermissions()); break;-
424 case 5: *reinterpret_cast< qreal*>(_v) = _t->margin(); break;-
425 default: break;-
426 }-
427 } else if (_c == QMetaObject::WriteProperty) {-
428 QQuickPointerHandler *_t = static_cast<QQuickPointerHandler *>(_o);-
429 (void)_t;-
430 void *_v = _a[0];-
431 switch (_id) {-
432 case 0: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break;-
433 case 2: _t->setTarget(*reinterpret_cast< QQuickItem**>(_v)); break;-
434 case 4: _t->setGrabPermissions(QFlag(*reinterpret_cast<int*>(_v))); break;-
435 case 5: _t->setMargin(*reinterpret_cast< qreal*>(_v)); break;-
436 default: break;-
437 }-
438 } else if (_c == QMetaObject::ResetProperty) {-
439 }-
440-
441}-
442-
443 const QMetaObject QQuickPointerHandler::staticMetaObject = {-
444 { &QObject::staticMetaObject, qt_meta_stringdata_QQuickPointerHandler.data,-
445 qt_meta_data_QQuickPointerHandler, qt_static_metacall, nullptr, nullptr}-
446};-
447-
448-
449const QMetaObject *QQuickPointerHandler::metaObject() const-
450{-
451 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
452}-
453-
454void *QQuickPointerHandler::qt_metacast(const char *_clname)-
455{-
456 if (!_clname) return nullptr;-
457 if (!strcmp(_clname, qt_meta_stringdata_QQuickPointerHandler.stringdata0))-
458 return static_cast<void*>(this);-
459 if (!strcmp(_clname, "QQmlParserStatus"))-
460 return static_cast< QQmlParserStatus*>(this);-
461 if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))-
462 return static_cast< QQmlParserStatus*>(this);-
463 return QObject::qt_metacast(_clname);-
464}-
465-
466int QQuickPointerHandler::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
467{-
468 _id = QObject::qt_metacall(_c, _id, _a);-
469 if (_id < 0)-
470 return _id;-
471 if (_c == QMetaObject::InvokeMetaMethod) {-
472 if (_id < 7)-
473 qt_static_metacall(this, _c, _id, _a);-
474 _id -= 7;-
475 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
476 if (_id < 7)-
477 qt_static_metacall(this, _c, _id, _a);-
478 _id -= 7;-
479 }-
480-
481 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
482 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
483 qt_static_metacall(this, _c, _id, _a);-
484 _id -= 6;-
485 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
486 _id -= 6;-
487 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
488 _id -= 6;-
489 } else if (_c == QMetaObject::QueryPropertyStored) {-
490 _id -= 6;-
491 } else if (_c == QMetaObject::QueryPropertyEditable) {-
492 _id -= 6;-
493 } else if (_c == QMetaObject::QueryPropertyUser) {-
494 _id -= 6;-
495 }-
496-
497 return _id;-
498}-
499-
500-
501void QQuickPointerHandler::enabledChanged()-
502{-
503 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
504}
never executed: end of block
0
505-
506-
507void QQuickPointerHandler::activeChanged()-
508{-
509 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
510}
executed 254 times by 4 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
254
511-
512-
513void QQuickPointerHandler::targetChanged()-
514{-
515 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
516}
executed 80 times by 2 tests: end of block
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
80
517-
518-
519void QQuickPointerHandler::marginChanged()-
520{-
521 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);-
522}
never executed: end of block
0
523-
524-
525void QQuickPointerHandler::grabChanged(QQuickEventPoint::GrabState _t1, QQuickEventPoint * _t2)-
526{-
527 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
528 QMetaObject::activate(this, &staticMetaObject, 4, _a);-
529}
executed 480 times by 4 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
480
530-
531-
532void QQuickPointerHandler::grabPermissionChanged()-
533{-
534 QMetaObject::activate(this, &staticMetaObject, 5, nullptr);-
535}
never executed: end of block
0
536-
537-
538void QQuickPointerHandler::canceled(QQuickEventPoint * _t1)-
539{-
540 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
541 QMetaObject::activate(this, &staticMetaObject, 6, _a);-
542}
executed 124 times by 4 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
124
543-
544#pragma GCC diagnostic pop-
545-
546-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0