OpenCoverage

moc_qquicktaphandler_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquicktaphandler_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_QQuickTapHandler_t {-
9 QByteArrayData data[20];-
10 char stringdata0[277];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQuickTapHandler_t qt_meta_stringdata_QQuickTapHandler = {-
18 {-
19{ { { -1 } }, 16, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQuickTapHandler_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 14, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQuickTapHandler_t-
29, -
30stringdata0-
31) -
32+ 17 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQuickTapHandler_t-
36, -
37stringdata0-
38) -
39+ 32 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 15, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQuickTapHandler_t-
43, -
44stringdata0-
45) -
46+ 33 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 15, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQuickTapHandler_t-
50, -
51stringdata0-
52) -
53+ 49 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 25, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QQuickTapHandler_t-
57, -
58stringdata0-
59) -
60+ 65 - 5 * sizeof(QByteArrayData)) },-
61{ { { -1 } }, 20, 0, 0, qptrdiff(-
62__builtin_offsetof (-
63qt_meta_stringdata_QQuickTapHandler_t-
64, -
65stringdata0-
66) -
67+ 91 - 6 * sizeof(QByteArrayData)) },-
68{ { { -1 } }, 6, 0, 0, qptrdiff(-
69__builtin_offsetof (-
70qt_meta_stringdata_QQuickTapHandler_t-
71, -
72stringdata0-
73) -
74+ 112 - 7 * sizeof(QByteArrayData)) },-
75{ { { -1 } }, 12, 0, 0, qptrdiff(-
76__builtin_offsetof (-
77qt_meta_stringdata_QQuickTapHandler_t-
78, -
79stringdata0-
80) -
81+ 119 - 8 * sizeof(QByteArrayData)) },-
82{ { { -1 } }, 12, 0, 0, qptrdiff(-
83__builtin_offsetof (-
84qt_meta_stringdata_QQuickTapHandler_t-
85, -
86stringdata0-
87) -
88+ 132 - 9 * sizeof(QByteArrayData)) },-
89{ { { -1 } }, 11, 0, 0, qptrdiff(-
90__builtin_offsetof (-
91qt_meta_stringdata_QQuickTapHandler_t-
92, -
93stringdata0-
94) -
95+ 145 - 10 * sizeof(QByteArrayData)) },-
96{ { { -1 } }, 7, 0, 0, qptrdiff(-
97__builtin_offsetof (-
98qt_meta_stringdata_QQuickTapHandler_t-
99, -
100stringdata0-
101) -
102+ 157 - 11 * sizeof(QByteArrayData)) },-
103{ { { -1 } }, 8, 0, 0, qptrdiff(-
104__builtin_offsetof (-
105qt_meta_stringdata_QQuickTapHandler_t-
106, -
107stringdata0-
108) -
109+ 165 - 12 * sizeof(QByteArrayData)) },-
110{ { { -1 } }, 8, 0, 0, qptrdiff(-
111__builtin_offsetof (-
112qt_meta_stringdata_QQuickTapHandler_t-
113, -
114stringdata0-
115) -
116+ 174 - 13 * sizeof(QByteArrayData)) },-
117{ { { -1 } }, 18, 0, 0, qptrdiff(-
118__builtin_offsetof (-
119qt_meta_stringdata_QQuickTapHandler_t-
120, -
121stringdata0-
122) -
123+ 183 - 14 * sizeof(QByteArrayData)) },-
124{ { { -1 } }, 13, 0, 0, qptrdiff(-
125__builtin_offsetof (-
126qt_meta_stringdata_QQuickTapHandler_t-
127, -
128stringdata0-
129) -
130+ 202 - 15 * sizeof(QByteArrayData)) },-
131{ { { -1 } }, 13, 0, 0, qptrdiff(-
132__builtin_offsetof (-
133qt_meta_stringdata_QQuickTapHandler_t-
134, -
135stringdata0-
136) -
137+ 216 - 16 * sizeof(QByteArrayData)) },-
138{ { { -1 } }, 13, 0, 0, qptrdiff(-
139__builtin_offsetof (-
140qt_meta_stringdata_QQuickTapHandler_t-
141, -
142stringdata0-
143) -
144+ 230 - 17 * sizeof(QByteArrayData)) },-
145{ { { -1 } }, 12, 0, 0, qptrdiff(-
146__builtin_offsetof (-
147qt_meta_stringdata_QQuickTapHandler_t-
148, -
149stringdata0-
150) -
151+ 244 - 18 * sizeof(QByteArrayData)) },-
152{ { { -1 } }, 19, 0, 0, qptrdiff(-
153__builtin_offsetof (-
154qt_meta_stringdata_QQuickTapHandler_t-
155, -
156stringdata0-
157) -
158+ 257 - 19 * sizeof(QByteArrayData)) }-
159-
160 },-
161 "QQuickTapHandler\0pressedChanged\0\0"-
162 "tapCountChanged\0timeHeldChanged\0"-
163 "longPressThresholdChanged\0"-
164 "gesturePolicyChanged\0tapped\0singleTapped\0"-
165 "doubleTapped\0longPressed\0pressed\0"-
166 "tapCount\0timeHeld\0longPressThreshold\0"-
167 "gesturePolicy\0GesturePolicy\0DragThreshold\0"-
168 "WithinBounds\0ReleaseWithinBounds"-
169};-
170-
171-
172static const uint qt_meta_data_QQuickTapHandler[] = {-
173-
174-
175 7,-
176 0,-
177 0, 0,-
178 9, 14,-
179 5, 68,-
180 1, 88,-
181 0, 0,-
182 0,-
183 9,-
184-
185-
186 1, 0, 59, 2, 0x06 ,-
187 3, 0, 60, 2, 0x06 ,-
188 4, 0, 61, 2, 0x06 ,-
189 5, 0, 62, 2, 0x06 ,-
190 6, 0, 63, 2, 0x06 ,-
191 7, 0, 64, 2, 0x06 ,-
192 8, 0, 65, 2, 0x06 ,-
193 9, 0, 66, 2, 0x06 ,-
194 10, 0, 67, 2, 0x06 ,-
195-
196-
197 QMetaType::Void,-
198 QMetaType::Void,-
199 QMetaType::Void,-
200 QMetaType::Void,-
201 QMetaType::Void,-
202 QMetaType::Void,-
203 QMetaType::Void,-
204 QMetaType::Void,-
205 QMetaType::Void,-
206-
207-
208 11, QMetaType::Bool, 0x00495001,-
209 12, QMetaType::Int, 0x00495001,-
210 13, QMetaType::QReal, 0x00495001,-
211 14, QMetaType::QReal, 0x00495103,-
212 15, 0x80000000 | 16, 0x0049510b,-
213-
214-
215 0,-
216 1,-
217 2,-
218 3,-
219 4,-
220-
221-
222 16, 0x0, 3, 92,-
223-
224-
225 17, uint(QQuickTapHandler::DragThreshold),-
226 18, uint(QQuickTapHandler::WithinBounds),-
227 19, uint(QQuickTapHandler::ReleaseWithinBounds),-
228-
229 0-
230};-
231-
232void QQuickTapHandler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
233{-
234 if (_c == QMetaObject::InvokeMetaMethod) {-
235 QQuickTapHandler *_t = static_cast<QQuickTapHandler *>(_o);-
236 (void)_t;-
237 switch (_id) {-
238 case 0: _t->pressedChanged(); break;-
239 case 1: _t->tapCountChanged(); break;-
240 case 2: _t->timeHeldChanged(); break;-
241 case 3: _t->longPressThresholdChanged(); break;-
242 case 4: _t->gesturePolicyChanged(); break;-
243 case 5: _t->tapped(); break;-
244 case 6: _t->singleTapped(); break;-
245 case 7: _t->doubleTapped(); break;-
246 case 8: _t->longPressed(); break;-
247 default: ;-
248 }-
249 } else if (_c == QMetaObject::IndexOfMethod) {-
250 int *result = reinterpret_cast<int *>(_a[0]);-
251 {-
252 using _t = void (QQuickTapHandler::*)();-
253 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::pressedChanged)) {-
254 *result = 0;-
255 return;-
256 }-
257 }-
258 {-
259 using _t = void (QQuickTapHandler::*)();-
260 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::tapCountChanged)) {-
261 *result = 1;-
262 return;-
263 }-
264 }-
265 {-
266 using _t = void (QQuickTapHandler::*)();-
267 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::timeHeldChanged)) {-
268 *result = 2;-
269 return;-
270 }-
271 }-
272 {-
273 using _t = void (QQuickTapHandler::*)();-
274 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::longPressThresholdChanged)) {-
275 *result = 3;-
276 return;-
277 }-
278 }-
279 {-
280 using _t = void (QQuickTapHandler::*)();-
281 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::gesturePolicyChanged)) {-
282 *result = 4;-
283 return;-
284 }-
285 }-
286 {-
287 using _t = void (QQuickTapHandler::*)();-
288 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::tapped)) {-
289 *result = 5;-
290 return;-
291 }-
292 }-
293 {-
294 using _t = void (QQuickTapHandler::*)();-
295 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::singleTapped)) {-
296 *result = 6;-
297 return;-
298 }-
299 }-
300 {-
301 using _t = void (QQuickTapHandler::*)();-
302 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::doubleTapped)) {-
303 *result = 7;-
304 return;-
305 }-
306 }-
307 {-
308 using _t = void (QQuickTapHandler::*)();-
309 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::longPressed)) {-
310 *result = 8;-
311 return;-
312 }-
313 }-
314 }-
315-
316 else if (_c == QMetaObject::ReadProperty) {-
317 QQuickTapHandler *_t = static_cast<QQuickTapHandler *>(_o);-
318 (void)_t;-
319 void *_v = _a[0];-
320 switch (_id) {-
321 case 0: *reinterpret_cast< bool*>(_v) = _t->isPressed(); break;-
322 case 1: *reinterpret_cast< int*>(_v) = _t->tapCount(); break;-
323 case 2: *reinterpret_cast< qreal*>(_v) = _t->timeHeld(); break;-
324 case 3: *reinterpret_cast< qreal*>(_v) = _t->longPressThreshold(); break;-
325 case 4: *reinterpret_cast< GesturePolicy*>(_v) = _t->gesturePolicy(); break;-
326 default: break;-
327 }-
328 } else if (_c == QMetaObject::WriteProperty) {-
329 QQuickTapHandler *_t = static_cast<QQuickTapHandler *>(_o);-
330 (void)_t;-
331 void *_v = _a[0];-
332 switch (_id) {-
333 case 3: _t->setLongPressThreshold(*reinterpret_cast< qreal*>(_v)); break;-
334 case 4: _t->setGesturePolicy(*reinterpret_cast< GesturePolicy*>(_v)); break;-
335 default: break;-
336 }-
337 } else if (_c == QMetaObject::ResetProperty) {-
338 }-
339-
340 (void)_a;;-
341}-
342-
343 const QMetaObject QQuickTapHandler::staticMetaObject = {-
344 { &QQuickSinglePointHandler::staticMetaObject, qt_meta_stringdata_QQuickTapHandler.data,-
345 qt_meta_data_QQuickTapHandler, qt_static_metacall, nullptr, nullptr}-
346};-
347-
348-
349const QMetaObject *QQuickTapHandler::metaObject() const-
350{-
351 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
352}-
353-
354void *QQuickTapHandler::qt_metacast(const char *_clname)-
355{-
356 if (!_clname) return nullptr;-
357 if (!strcmp(_clname, qt_meta_stringdata_QQuickTapHandler.stringdata0))-
358 return static_cast<void*>(this);-
359 return QQuickSinglePointHandler::qt_metacast(_clname);-
360}-
361-
362int QQuickTapHandler::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
363{-
364 _id = QQuickSinglePointHandler::qt_metacall(_c, _id, _a);-
365 if (_id < 0)-
366 return _id;-
367 if (_c == QMetaObject::InvokeMetaMethod) {-
368 if (_id < 9)-
369 qt_static_metacall(this, _c, _id, _a);-
370 _id -= 9;-
371 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
372 if (_id < 9)-
373 *reinterpret_cast<int*>(_a[0]) = -1;-
374 _id -= 9;-
375 }-
376-
377 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
378 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
379 qt_static_metacall(this, _c, _id, _a);-
380 _id -= 5;-
381 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
382 _id -= 5;-
383 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
384 _id -= 5;-
385 } else if (_c == QMetaObject::QueryPropertyStored) {-
386 _id -= 5;-
387 } else if (_c == QMetaObject::QueryPropertyEditable) {-
388 _id -= 5;-
389 } else if (_c == QMetaObject::QueryPropertyUser) {-
390 _id -= 5;-
391 }-
392-
393 return _id;-
394}-
395-
396-
397void QQuickTapHandler::pressedChanged()-
398{-
399 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
400}
executed 290 times by 3 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
290
401-
402-
403void QQuickTapHandler::tapCountChanged()-
404{-
405 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
406}
executed 60 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquicktaphandler
60
407-
408-
409void QQuickTapHandler::timeHeldChanged()-
410{-
411 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
412}
executed 594 times by 3 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
594
413-
414-
415void QQuickTapHandler::longPressThresholdChanged()-
416{-
417 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);-
418}
executed 222 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquicktaphandler
222
419-
420-
421void QQuickTapHandler::gesturePolicyChanged()-
422{-
423 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);-
424}
executed 146 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquicktaphandler
146
425-
426-
427void QQuickTapHandler::tapped()-
428{-
429 QMetaObject::activate(this, &staticMetaObject, 5, nullptr);-
430}
executed 60 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquicktaphandler
60
431-
432-
433void QQuickTapHandler::singleTapped()-
434{-
435 QMetaObject::activate(this, &staticMetaObject, 6, nullptr);-
436}
executed 58 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquicktaphandler
58
437-
438-
439void QQuickTapHandler::doubleTapped()-
440{-
441 QMetaObject::activate(this, &staticMetaObject, 7, nullptr);-
442}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktaphandler
2
443-
444-
445void QQuickTapHandler::longPressed()-
446{-
447 QMetaObject::activate(this, &staticMetaObject, 8, nullptr);-
448}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktaphandler
4
449-
450#pragma GCC diagnostic pop-
451-
452-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0