OpenCoverage

moc_qquicktaphandler_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquicktaphandler_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qquicktaphandler_p.h'-
3**-
4** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.0)-
5**-
6** WARNING! All changes made in this file will be lost!-
7*****************************************************************************/-
8-
9#include "../handlers/qquicktaphandler_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qquicktaphandler_p.h' doesn't include <QObject>."-
14#elif Q_MOC_OUTPUT_REVISION != 67-
15#error "This file was generated using the moc from 5.12.0. It"-
16#error "cannot be used with the include files from this version of Qt."-
17#error "(The moc has changed too much.)"-
18#endif-
19-
20QT_BEGIN_MOC_NAMESPACE-
21QT_WARNING_PUSH-
22QT_WARNING_DISABLE_DEPRECATED-
23struct qt_meta_stringdata_QQuickTapHandler_t {-
24 QByteArrayData data[20];-
25 char stringdata0[277];-
26};-
27#define QT_MOC_LITERAL(idx, ofs, len) \-
28 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \-
29 qptrdiff(offsetof(qt_meta_stringdata_QQuickTapHandler_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQuickTapHandler_t qt_meta_stringdata_QQuickTapHandler = {-
33 {-
34QT_MOC_LITERAL(0, 0, 16), // "QQuickTapHandler"-
35QT_MOC_LITERAL(1, 17, 14), // "pressedChanged"-
36QT_MOC_LITERAL(2, 32, 0), // ""-
37QT_MOC_LITERAL(3, 33, 15), // "tapCountChanged"-
38QT_MOC_LITERAL(4, 49, 15), // "timeHeldChanged"-
39QT_MOC_LITERAL(5, 65, 25), // "longPressThresholdChanged"-
40QT_MOC_LITERAL(6, 91, 20), // "gesturePolicyChanged"-
41QT_MOC_LITERAL(7, 112, 6), // "tapped"-
42QT_MOC_LITERAL(8, 119, 12), // "singleTapped"-
43QT_MOC_LITERAL(9, 132, 12), // "doubleTapped"-
44QT_MOC_LITERAL(10, 145, 11), // "longPressed"-
45QT_MOC_LITERAL(11, 157, 7), // "pressed"-
46QT_MOC_LITERAL(12, 165, 8), // "tapCount"-
47QT_MOC_LITERAL(13, 174, 8), // "timeHeld"-
48QT_MOC_LITERAL(14, 183, 18), // "longPressThreshold"-
49QT_MOC_LITERAL(15, 202, 13), // "gesturePolicy"-
50QT_MOC_LITERAL(16, 216, 13), // "GesturePolicy"-
51QT_MOC_LITERAL(17, 230, 13), // "DragThreshold"-
52QT_MOC_LITERAL(18, 244, 12), // "WithinBounds"-
53QT_MOC_LITERAL(19, 257, 19) // "ReleaseWithinBounds"-
54-
55 },-
56 "QQuickTapHandler\0pressedChanged\0\0"-
57 "tapCountChanged\0timeHeldChanged\0"-
58 "longPressThresholdChanged\0"-
59 "gesturePolicyChanged\0tapped\0singleTapped\0"-
60 "doubleTapped\0longPressed\0pressed\0"-
61 "tapCount\0timeHeld\0longPressThreshold\0"-
62 "gesturePolicy\0GesturePolicy\0DragThreshold\0"-
63 "WithinBounds\0ReleaseWithinBounds"-
64};-
65#undef QT_MOC_LITERAL-
66-
67static const uint qt_meta_data_QQuickTapHandler[] = {-
68-
69 // content:-
70 7, // revision-
71 0, // classname-
72 0, 0, // classinfo-
73 9, 14, // methods-
74 5, 68, // properties-
75 1, 88, // enums/sets-
76 0, 0, // constructors-
77 0, // flags-
78 9, // signalCount-
79-
80 // signals: name, argc, parameters, tag, flags-
81 1, 0, 59, 2, 0x06 /* Public */,-
82 3, 0, 60, 2, 0x06 /* Public */,-
83 4, 0, 61, 2, 0x06 /* Public */,-
84 5, 0, 62, 2, 0x06 /* Public */,-
85 6, 0, 63, 2, 0x06 /* Public */,-
86 7, 0, 64, 2, 0x06 /* Public */,-
87 8, 0, 65, 2, 0x06 /* Public */,-
88 9, 0, 66, 2, 0x06 /* Public */,-
89 10, 0, 67, 2, 0x06 /* Public */,-
90-
91 // signals: parameters-
92 QMetaType::Void,-
93 QMetaType::Void,-
94 QMetaType::Void,-
95 QMetaType::Void,-
96 QMetaType::Void,-
97 QMetaType::Void,-
98 QMetaType::Void,-
99 QMetaType::Void,-
100 QMetaType::Void,-
101-
102 // properties: name, type, flags-
103 11, QMetaType::Bool, 0x00495001,-
104 12, QMetaType::Int, 0x00495001,-
105 13, QMetaType::QReal, 0x00495001,-
106 14, QMetaType::QReal, 0x00495103,-
107 15, 0x80000000 | 16, 0x0049510b,-
108-
109 // properties: notify_signal_id-
110 0,-
111 1,-
112 2,-
113 3,-
114 4,-
115-
116 // enums: name, flags, count, data-
117 16, 0x0, 3, 92,-
118-
119 // enum data: key, value-
120 17, uint(QQuickTapHandler::DragThreshold),-
121 18, uint(QQuickTapHandler::WithinBounds),-
122 19, uint(QQuickTapHandler::ReleaseWithinBounds),-
123-
124 0 // eod-
125};-
126-
127void QQuickTapHandler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
128{-
129 if (_c == QMetaObject::InvokeMetaMethod) {-
130 QQuickTapHandler *_t = static_cast<QQuickTapHandler *>(_o);-
131 Q_UNUSED(_t)-
132 switch (_id) {-
133 case 0: _t->pressedChanged(); break;-
134 case 1: _t->tapCountChanged(); break;-
135 case 2: _t->timeHeldChanged(); break;-
136 case 3: _t->longPressThresholdChanged(); break;-
137 case 4: _t->gesturePolicyChanged(); break;-
138 case 5: _t->tapped(); break;-
139 case 6: _t->singleTapped(); break;-
140 case 7: _t->doubleTapped(); break;-
141 case 8: _t->longPressed(); break;-
142 default: ;-
143 }-
144 } else if (_c == QMetaObject::IndexOfMethod) {-
145 int *result = reinterpret_cast<int *>(_a[0]);-
146 {-
147 using _t = void (QQuickTapHandler::*)();-
148 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::pressedChanged)) {-
149 *result = 0;-
150 return;-
151 }-
152 }-
153 {-
154 using _t = void (QQuickTapHandler::*)();-
155 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::tapCountChanged)) {-
156 *result = 1;-
157 return;-
158 }-
159 }-
160 {-
161 using _t = void (QQuickTapHandler::*)();-
162 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::timeHeldChanged)) {-
163 *result = 2;-
164 return;-
165 }-
166 }-
167 {-
168 using _t = void (QQuickTapHandler::*)();-
169 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::longPressThresholdChanged)) {-
170 *result = 3;-
171 return;-
172 }-
173 }-
174 {-
175 using _t = void (QQuickTapHandler::*)();-
176 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::gesturePolicyChanged)) {-
177 *result = 4;-
178 return;-
179 }-
180 }-
181 {-
182 using _t = void (QQuickTapHandler::*)();-
183 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::tapped)) {-
184 *result = 5;-
185 return;-
186 }-
187 }-
188 {-
189 using _t = void (QQuickTapHandler::*)();-
190 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::singleTapped)) {-
191 *result = 6;-
192 return;-
193 }-
194 }-
195 {-
196 using _t = void (QQuickTapHandler::*)();-
197 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::doubleTapped)) {-
198 *result = 7;-
199 return;-
200 }-
201 }-
202 {-
203 using _t = void (QQuickTapHandler::*)();-
204 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTapHandler::longPressed)) {-
205 *result = 8;-
206 return;-
207 }-
208 }-
209 }-
210#ifndef QT_NO_PROPERTIES-
211 else if (_c == QMetaObject::ReadProperty) {-
212 QQuickTapHandler *_t = static_cast<QQuickTapHandler *>(_o);-
213 Q_UNUSED(_t)-
214 void *_v = _a[0];-
215 switch (_id) {-
216 case 0: *reinterpret_cast< bool*>(_v) = _t->isPressed(); break;-
217 case 1: *reinterpret_cast< int*>(_v) = _t->tapCount(); break;-
218 case 2: *reinterpret_cast< qreal*>(_v) = _t->timeHeld(); break;-
219 case 3: *reinterpret_cast< qreal*>(_v) = _t->longPressThreshold(); break;-
220 case 4: *reinterpret_cast< GesturePolicy*>(_v) = _t->gesturePolicy(); break;-
221 default: break;-
222 }-
223 } else if (_c == QMetaObject::WriteProperty) {-
224 QQuickTapHandler *_t = static_cast<QQuickTapHandler *>(_o);-
225 Q_UNUSED(_t)-
226 void *_v = _a[0];-
227 switch (_id) {-
228 case 3: _t->setLongPressThreshold(*reinterpret_cast< qreal*>(_v)); break;-
229 case 4: _t->setGesturePolicy(*reinterpret_cast< GesturePolicy*>(_v)); break;-
230 default: break;-
231 }-
232 } else if (_c == QMetaObject::ResetProperty) {-
233 }-
234#endif // QT_NO_PROPERTIES-
235 Q_UNUSED(_a);-
236}-
237-
238QT_INIT_METAOBJECT const QMetaObject QQuickTapHandler::staticMetaObject = {-
239 { &QQuickSinglePointHandler::staticMetaObject, qt_meta_stringdata_QQuickTapHandler.data,-
240 qt_meta_data_QQuickTapHandler, qt_static_metacall, nullptr, nullptr}-
241};-
242-
243-
244const QMetaObject *QQuickTapHandler::metaObject() const-
245{-
246 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
247}-
248-
249void *QQuickTapHandler::qt_metacast(const char *_clname)-
250{-
251 if (!_clname) return nullptr;-
252 if (!strcmp(_clname, qt_meta_stringdata_QQuickTapHandler.stringdata0))-
253 return static_cast<void*>(this);-
254 return QQuickSinglePointHandler::qt_metacast(_clname);-
255}-
256-
257int QQuickTapHandler::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
258{-
259 _id = QQuickSinglePointHandler::qt_metacall(_c, _id, _a);-
260 if (_id < 0)-
261 return _id;-
262 if (_c == QMetaObject::InvokeMetaMethod) {-
263 if (_id < 9)-
264 qt_static_metacall(this, _c, _id, _a);-
265 _id -= 9;-
266 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
267 if (_id < 9)-
268 *reinterpret_cast<int*>(_a[0]) = -1;-
269 _id -= 9;-
270 }-
271#ifndef QT_NO_PROPERTIES-
272 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
273 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
274 qt_static_metacall(this, _c, _id, _a);-
275 _id -= 5;-
276 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
277 _id -= 5;-
278 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
279 _id -= 5;-
280 } else if (_c == QMetaObject::QueryPropertyStored) {-
281 _id -= 5;-
282 } else if (_c == QMetaObject::QueryPropertyEditable) {-
283 _id -= 5;-
284 } else if (_c == QMetaObject::QueryPropertyUser) {-
285 _id -= 5;-
286 }-
287#endif // QT_NO_PROPERTIES-
288 return _id;-
289}-
290-
291// SIGNAL 0-
292void QQuickTapHandler::pressedChanged()-
293{-
294 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
295}
executed 290 times by 3 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
290
296-
297// SIGNAL 1-
298void QQuickTapHandler::tapCountChanged()-
299{-
300 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
301}
executed 60 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquicktaphandler
60
302-
303// SIGNAL 2-
304void QQuickTapHandler::timeHeldChanged()-
305{-
306 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
307}
executed 594 times by 3 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
594
308-
309// SIGNAL 3-
310void QQuickTapHandler::longPressThresholdChanged()-
311{-
312 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);-
313}
executed 222 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquicktaphandler
222
314-
315// SIGNAL 4-
316void QQuickTapHandler::gesturePolicyChanged()-
317{-
318 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);-
319}
executed 146 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquicktaphandler
146
320-
321// SIGNAL 5-
322void QQuickTapHandler::tapped()-
323{-
324 QMetaObject::activate(this, &staticMetaObject, 5, nullptr);-
325}
executed 60 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquicktaphandler
60
326-
327// SIGNAL 6-
328void QQuickTapHandler::singleTapped()-
329{-
330 QMetaObject::activate(this, &staticMetaObject, 6, nullptr);-
331}
executed 58 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquicktaphandler
58
332-
333// SIGNAL 7-
334void QQuickTapHandler::doubleTapped()-
335{-
336 QMetaObject::activate(this, &staticMetaObject, 7, nullptr);-
337}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktaphandler
2
338-
339// SIGNAL 8-
340void QQuickTapHandler::longPressed()-
341{-
342 QMetaObject::activate(this, &staticMetaObject, 8, nullptr);-
343}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktaphandler
4
344QT_WARNING_POP-
345QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0