1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qgesture.h' |
3 | ** |
4 | ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0) |
5 | ** |
6 | ** WARNING! All changes made in this file will be lost! |
7 | *****************************************************************************/ |
8 | |
9 | #include <memory> |
10 | #include "kernel/qgesture.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qgesture.h' doesn't include <QObject>." |
15 | #elif Q_MOC_OUTPUT_REVISION != 68 |
16 | #error "This file was generated using the moc from 6.0.0. It" |
17 | #error "cannot be used with the include files from this version of Qt." |
18 | #error "(The moc has changed too much.)" |
19 | #endif |
20 | |
21 | QT_BEGIN_MOC_NAMESPACE |
22 | QT_WARNING_PUSH |
23 | QT_WARNING_DISABLE_DEPRECATED |
24 | struct qt_meta_stringdata_QGesture_t { |
25 | const uint offsetsAndSize[18]; |
26 | char stringdata0[129]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QGesture_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QGesture_t qt_meta_stringdata_QGesture = { |
31 | { |
32 | QT_MOC_LITERAL(0, 8), // "QGesture" |
33 | QT_MOC_LITERAL(9, 5), // "state" |
34 | QT_MOC_LITERAL(15, 16), // "Qt::GestureState" |
35 | QT_MOC_LITERAL(32, 11), // "gestureType" |
36 | QT_MOC_LITERAL(44, 15), // "Qt::GestureType" |
37 | QT_MOC_LITERAL(60, 19), // "gestureCancelPolicy" |
38 | QT_MOC_LITERAL(80, 29), // "QGesture::GestureCancelPolicy" |
39 | QT_MOC_LITERAL(110, 7), // "hotSpot" |
40 | QT_MOC_LITERAL(118, 10) // "hasHotSpot" |
41 | |
42 | }, |
43 | "QGesture\0state\0Qt::GestureState\0" |
44 | "gestureType\0Qt::GestureType\0" |
45 | "gestureCancelPolicy\0QGesture::GestureCancelPolicy\0" |
46 | "hotSpot\0hasHotSpot" |
47 | }; |
48 | #undef QT_MOC_LITERAL |
49 | |
50 | static const uint qt_meta_data_QGesture[] = { |
51 | |
52 | // content: |
53 | 9, // revision |
54 | 0, // classname |
55 | 0, 0, // classinfo |
56 | 0, 0, // methods |
57 | 5, 14, // properties |
58 | 0, 0, // enums/sets |
59 | 0, 0, // constructors |
60 | 0, // flags |
61 | 0, // signalCount |
62 | |
63 | // properties: name, type, flags |
64 | 1, 0x80000000 | 2, 0x00015009, uint(-1), 0, |
65 | 3, 0x80000000 | 4, 0x00015009, uint(-1), 0, |
66 | 5, 0x80000000 | 6, 0x0001510b, uint(-1), 0, |
67 | 7, QMetaType::QPointF, 0x00015107, uint(-1), 0, |
68 | 8, QMetaType::Bool, 0x00015001, uint(-1), 0, |
69 | |
70 | 0 // eod |
71 | }; |
72 | |
73 | void QGesture::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
74 | { |
75 | if (_c == QMetaObject::RegisterPropertyMetaType) { |
76 | switch (_id) { |
77 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; |
78 | case 2: |
79 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QGesture::GestureCancelPolicy >(); break; |
80 | case 0: |
81 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt::GestureState >(); break; |
82 | case 1: |
83 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt::GestureType >(); break; |
84 | } |
85 | } |
86 | |
87 | #ifndef QT_NO_PROPERTIES |
88 | else if (_c == QMetaObject::ReadProperty) { |
89 | Q_ASSERT(staticMetaObject.cast(_o)); |
90 | auto *_t = static_cast<QGesture *>(_o); |
91 | Q_UNUSED(_t) |
92 | void *_v = _a[0]; |
93 | switch (_id) { |
94 | case 0: *reinterpret_cast< Qt::GestureState*>(_v) = _t->state(); break; |
95 | case 1: *reinterpret_cast< Qt::GestureType*>(_v) = _t->gestureType(); break; |
96 | case 2: *reinterpret_cast< QGesture::GestureCancelPolicy*>(_v) = _t->gestureCancelPolicy(); break; |
97 | case 3: *reinterpret_cast< QPointF*>(_v) = _t->hotSpot(); break; |
98 | case 4: *reinterpret_cast< bool*>(_v) = _t->hasHotSpot(); break; |
99 | default: break; |
100 | } |
101 | } else if (_c == QMetaObject::WriteProperty) { |
102 | Q_ASSERT(staticMetaObject.cast(_o)); |
103 | auto *_t = static_cast<QGesture *>(_o); |
104 | Q_UNUSED(_t) |
105 | void *_v = _a[0]; |
106 | switch (_id) { |
107 | case 2: _t->setGestureCancelPolicy(*reinterpret_cast< QGesture::GestureCancelPolicy*>(_v)); break; |
108 | case 3: _t->setHotSpot(*reinterpret_cast< QPointF*>(_v)); break; |
109 | default: break; |
110 | } |
111 | } else if (_c == QMetaObject::ResetProperty) { |
112 | Q_ASSERT(staticMetaObject.cast(_o)); |
113 | auto *_t = static_cast<QGesture *>(_o); |
114 | Q_UNUSED(_t) |
115 | switch (_id) { |
116 | case 3: _t->unsetHotSpot(); break; |
117 | default: break; |
118 | } |
119 | } else if (_c == QMetaObject::BindableProperty) { |
120 | } |
121 | #endif // QT_NO_PROPERTIES |
122 | Q_UNUSED(_o); |
123 | } |
124 | |
125 | const QMetaObject QGesture::staticMetaObject = { { |
126 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
127 | qt_meta_stringdata_QGesture.offsetsAndSize, |
128 | qt_meta_data_QGesture, |
129 | qt_static_metacall, |
130 | nullptr, |
131 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QGesture_t |
132 | , QtPrivate::TypeAndForceComplete<Qt::GestureState, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::GestureType, std::true_type>, QtPrivate::TypeAndForceComplete<QGesture::GestureCancelPolicy, std::true_type>, QtPrivate::TypeAndForceComplete<QPointF, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type> |
133 | |
134 | |
135 | |
136 | >, |
137 | nullptr |
138 | } }; |
139 | |
140 | |
141 | const QMetaObject *QGesture::metaObject() const |
142 | { |
143 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
144 | } |
145 | |
146 | void *QGesture::qt_metacast(const char *_clname) |
147 | { |
148 | if (!_clname) return nullptr; |
149 | if (!strcmp(_clname, qt_meta_stringdata_QGesture.stringdata0)) |
150 | return static_cast<void*>(this); |
151 | return QObject::qt_metacast(_clname); |
152 | } |
153 | |
154 | int QGesture::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
155 | { |
156 | _id = QObject::qt_metacall(_c, _id, _a); |
157 | if (_id < 0) |
158 | return _id; |
159 | |
160 | #ifndef QT_NO_PROPERTIES |
161 | if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
162 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
163 | || _c == QMetaObject::RegisterPropertyMetaType) { |
164 | qt_static_metacall(this, _c, _id, _a); |
165 | _id -= 5; |
166 | } |
167 | #endif // QT_NO_PROPERTIES |
168 | return _id; |
169 | } |
170 | struct qt_meta_stringdata_QPanGesture_t { |
171 | const uint offsetsAndSize[14]; |
172 | char stringdata0[85]; |
173 | }; |
174 | #define QT_MOC_LITERAL(ofs, len) \ |
175 | uint(offsetof(qt_meta_stringdata_QPanGesture_t, stringdata0) + ofs), len |
176 | static const qt_meta_stringdata_QPanGesture_t qt_meta_stringdata_QPanGesture = { |
177 | { |
178 | QT_MOC_LITERAL(0, 11), // "QPanGesture" |
179 | QT_MOC_LITERAL(12, 10), // "lastOffset" |
180 | QT_MOC_LITERAL(23, 6), // "offset" |
181 | QT_MOC_LITERAL(30, 5), // "delta" |
182 | QT_MOC_LITERAL(36, 12), // "acceleration" |
183 | QT_MOC_LITERAL(49, 18), // "horizontalVelocity" |
184 | QT_MOC_LITERAL(68, 16) // "verticalVelocity" |
185 | |
186 | }, |
187 | "QPanGesture\0lastOffset\0offset\0delta\0" |
188 | "acceleration\0horizontalVelocity\0" |
189 | "verticalVelocity" |
190 | }; |
191 | #undef QT_MOC_LITERAL |
192 | |
193 | static const uint qt_meta_data_QPanGesture[] = { |
194 | |
195 | // content: |
196 | 9, // revision |
197 | 0, // classname |
198 | 0, 0, // classinfo |
199 | 0, 0, // methods |
200 | 6, 14, // properties |
201 | 0, 0, // enums/sets |
202 | 0, 0, // constructors |
203 | 0, // flags |
204 | 0, // signalCount |
205 | |
206 | // properties: name, type, flags |
207 | 1, QMetaType::QPointF, 0x00015103, uint(-1), 0, |
208 | 2, QMetaType::QPointF, 0x00015103, uint(-1), 0, |
209 | 3, QMetaType::QPointF, 0x00005001, uint(-1), 0, |
210 | 4, QMetaType::QReal, 0x00015103, uint(-1), 0, |
211 | 5, QMetaType::QReal, 0x00015103, uint(-1), 0, |
212 | 6, QMetaType::QReal, 0x00015103, uint(-1), 0, |
213 | |
214 | 0 // eod |
215 | }; |
216 | |
217 | void QPanGesture::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
218 | { |
219 | |
220 | #ifndef QT_NO_PROPERTIES |
221 | if (_c == QMetaObject::ReadProperty) { |
222 | Q_ASSERT(staticMetaObject.cast(_o)); |
223 | auto *_t = static_cast<QPanGesture *>(_o); |
224 | Q_UNUSED(_t) |
225 | void *_v = _a[0]; |
226 | switch (_id) { |
227 | case 0: *reinterpret_cast< QPointF*>(_v) = _t->lastOffset(); break; |
228 | case 1: *reinterpret_cast< QPointF*>(_v) = _t->offset(); break; |
229 | case 2: *reinterpret_cast< QPointF*>(_v) = _t->delta(); break; |
230 | case 3: *reinterpret_cast< qreal*>(_v) = _t->acceleration(); break; |
231 | case 4: *reinterpret_cast< qreal*>(_v) = _t->QPanGesture::d_func()->horizontalVelocity(); break; |
232 | case 5: *reinterpret_cast< qreal*>(_v) = _t->QPanGesture::d_func()->verticalVelocity(); break; |
233 | default: break; |
234 | } |
235 | } else if (_c == QMetaObject::WriteProperty) { |
236 | Q_ASSERT(staticMetaObject.cast(_o)); |
237 | auto *_t = static_cast<QPanGesture *>(_o); |
238 | Q_UNUSED(_t) |
239 | void *_v = _a[0]; |
240 | switch (_id) { |
241 | case 0: _t->setLastOffset(*reinterpret_cast< QPointF*>(_v)); break; |
242 | case 1: _t->setOffset(*reinterpret_cast< QPointF*>(_v)); break; |
243 | case 3: _t->setAcceleration(*reinterpret_cast< qreal*>(_v)); break; |
244 | case 4: _t->QPanGesture::d_func()->setHorizontalVelocity(*reinterpret_cast< qreal*>(_v)); break; |
245 | case 5: _t->QPanGesture::d_func()->setVerticalVelocity(*reinterpret_cast< qreal*>(_v)); break; |
246 | default: break; |
247 | } |
248 | } else if (_c == QMetaObject::ResetProperty) { |
249 | } else if (_c == QMetaObject::BindableProperty) { |
250 | } |
251 | #endif // QT_NO_PROPERTIES |
252 | Q_UNUSED(_o); |
253 | Q_UNUSED(_id); |
254 | Q_UNUSED(_c); |
255 | Q_UNUSED(_a); |
256 | } |
257 | |
258 | const QMetaObject QPanGesture::staticMetaObject = { { |
259 | QMetaObject::SuperData::link<QGesture::staticMetaObject>(), |
260 | qt_meta_stringdata_QPanGesture.offsetsAndSize, |
261 | qt_meta_data_QPanGesture, |
262 | qt_static_metacall, |
263 | nullptr, |
264 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QPanGesture_t |
265 | , QtPrivate::TypeAndForceComplete<QPointF, std::true_type>, QtPrivate::TypeAndForceComplete<QPointF, std::true_type>, QtPrivate::TypeAndForceComplete<QPointF, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type> |
266 | |
267 | |
268 | |
269 | >, |
270 | nullptr |
271 | } }; |
272 | |
273 | |
274 | const QMetaObject *QPanGesture::metaObject() const |
275 | { |
276 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
277 | } |
278 | |
279 | void *QPanGesture::qt_metacast(const char *_clname) |
280 | { |
281 | if (!_clname) return nullptr; |
282 | if (!strcmp(_clname, qt_meta_stringdata_QPanGesture.stringdata0)) |
283 | return static_cast<void*>(this); |
284 | return QGesture::qt_metacast(_clname); |
285 | } |
286 | |
287 | int QPanGesture::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
288 | { |
289 | _id = QGesture::qt_metacall(_c, _id, _a); |
290 | if (_id < 0) |
291 | return _id; |
292 | |
293 | #ifndef QT_NO_PROPERTIES |
294 | if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
295 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
296 | || _c == QMetaObject::RegisterPropertyMetaType) { |
297 | qt_static_metacall(this, _c, _id, _a); |
298 | _id -= 6; |
299 | } |
300 | #endif // QT_NO_PROPERTIES |
301 | return _id; |
302 | } |
303 | struct qt_meta_stringdata_QPinchGesture_t { |
304 | const uint offsetsAndSize[34]; |
305 | char stringdata0[266]; |
306 | }; |
307 | #define QT_MOC_LITERAL(ofs, len) \ |
308 | uint(offsetof(qt_meta_stringdata_QPinchGesture_t, stringdata0) + ofs), len |
309 | static const qt_meta_stringdata_QPinchGesture_t qt_meta_stringdata_QPinchGesture = { |
310 | { |
311 | QT_MOC_LITERAL(0, 13), // "QPinchGesture" |
312 | QT_MOC_LITERAL(14, 16), // "totalChangeFlags" |
313 | QT_MOC_LITERAL(31, 11), // "ChangeFlags" |
314 | QT_MOC_LITERAL(43, 11), // "changeFlags" |
315 | QT_MOC_LITERAL(55, 16), // "totalScaleFactor" |
316 | QT_MOC_LITERAL(72, 15), // "lastScaleFactor" |
317 | QT_MOC_LITERAL(88, 11), // "scaleFactor" |
318 | QT_MOC_LITERAL(100, 18), // "totalRotationAngle" |
319 | QT_MOC_LITERAL(119, 17), // "lastRotationAngle" |
320 | QT_MOC_LITERAL(137, 13), // "rotationAngle" |
321 | QT_MOC_LITERAL(151, 16), // "startCenterPoint" |
322 | QT_MOC_LITERAL(168, 15), // "lastCenterPoint" |
323 | QT_MOC_LITERAL(184, 11), // "centerPoint" |
324 | QT_MOC_LITERAL(196, 10), // "ChangeFlag" |
325 | QT_MOC_LITERAL(207, 18), // "ScaleFactorChanged" |
326 | QT_MOC_LITERAL(226, 20), // "RotationAngleChanged" |
327 | QT_MOC_LITERAL(247, 18) // "CenterPointChanged" |
328 | |
329 | }, |
330 | "QPinchGesture\0totalChangeFlags\0" |
331 | "ChangeFlags\0changeFlags\0totalScaleFactor\0" |
332 | "lastScaleFactor\0scaleFactor\0" |
333 | "totalRotationAngle\0lastRotationAngle\0" |
334 | "rotationAngle\0startCenterPoint\0" |
335 | "lastCenterPoint\0centerPoint\0ChangeFlag\0" |
336 | "ScaleFactorChanged\0RotationAngleChanged\0" |
337 | "CenterPointChanged" |
338 | }; |
339 | #undef QT_MOC_LITERAL |
340 | |
341 | static const uint qt_meta_data_QPinchGesture[] = { |
342 | |
343 | // content: |
344 | 9, // revision |
345 | 0, // classname |
346 | 0, 0, // classinfo |
347 | 0, 0, // methods |
348 | 11, 14, // properties |
349 | 2, 69, // enums/sets |
350 | 0, 0, // constructors |
351 | 0, // flags |
352 | 0, // signalCount |
353 | |
354 | // properties: name, type, flags |
355 | 1, 0x80000000 | 2, 0x0001510b, uint(-1), 0, |
356 | 3, 0x80000000 | 2, 0x0001510b, uint(-1), 0, |
357 | 4, QMetaType::QReal, 0x00015103, uint(-1), 0, |
358 | 5, QMetaType::QReal, 0x00015103, uint(-1), 0, |
359 | 6, QMetaType::QReal, 0x00015103, uint(-1), 0, |
360 | 7, QMetaType::QReal, 0x00015103, uint(-1), 0, |
361 | 8, QMetaType::QReal, 0x00015103, uint(-1), 0, |
362 | 9, QMetaType::QReal, 0x00015103, uint(-1), 0, |
363 | 10, QMetaType::QPointF, 0x00015103, uint(-1), 0, |
364 | 11, QMetaType::QPointF, 0x00015103, uint(-1), 0, |
365 | 12, QMetaType::QPointF, 0x00015103, uint(-1), 0, |
366 | |
367 | // enums: name, alias, flags, count, data |
368 | 13, 13, 0x1, 3, 79, |
369 | 2, 13, 0x1, 3, 85, |
370 | |
371 | // enum data: key, value |
372 | 14, uint(QPinchGesture::ScaleFactorChanged), |
373 | 15, uint(QPinchGesture::RotationAngleChanged), |
374 | 16, uint(QPinchGesture::CenterPointChanged), |
375 | 14, uint(QPinchGesture::ScaleFactorChanged), |
376 | 15, uint(QPinchGesture::RotationAngleChanged), |
377 | 16, uint(QPinchGesture::CenterPointChanged), |
378 | |
379 | 0 // eod |
380 | }; |
381 | |
382 | void QPinchGesture::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
383 | { |
384 | |
385 | #ifndef QT_NO_PROPERTIES |
386 | if (_c == QMetaObject::ReadProperty) { |
387 | Q_ASSERT(staticMetaObject.cast(_o)); |
388 | auto *_t = static_cast<QPinchGesture *>(_o); |
389 | Q_UNUSED(_t) |
390 | void *_v = _a[0]; |
391 | switch (_id) { |
392 | case 0: *reinterpret_cast<int*>(_v) = QFlag(_t->totalChangeFlags()); break; |
393 | case 1: *reinterpret_cast<int*>(_v) = QFlag(_t->changeFlags()); break; |
394 | case 2: *reinterpret_cast< qreal*>(_v) = _t->totalScaleFactor(); break; |
395 | case 3: *reinterpret_cast< qreal*>(_v) = _t->lastScaleFactor(); break; |
396 | case 4: *reinterpret_cast< qreal*>(_v) = _t->scaleFactor(); break; |
397 | case 5: *reinterpret_cast< qreal*>(_v) = _t->totalRotationAngle(); break; |
398 | case 6: *reinterpret_cast< qreal*>(_v) = _t->lastRotationAngle(); break; |
399 | case 7: *reinterpret_cast< qreal*>(_v) = _t->rotationAngle(); break; |
400 | case 8: *reinterpret_cast< QPointF*>(_v) = _t->startCenterPoint(); break; |
401 | case 9: *reinterpret_cast< QPointF*>(_v) = _t->lastCenterPoint(); break; |
402 | case 10: *reinterpret_cast< QPointF*>(_v) = _t->centerPoint(); break; |
403 | default: break; |
404 | } |
405 | } else if (_c == QMetaObject::WriteProperty) { |
406 | Q_ASSERT(staticMetaObject.cast(_o)); |
407 | auto *_t = static_cast<QPinchGesture *>(_o); |
408 | Q_UNUSED(_t) |
409 | void *_v = _a[0]; |
410 | switch (_id) { |
411 | case 0: _t->setTotalChangeFlags(QFlag(*reinterpret_cast<int*>(_v))); break; |
412 | case 1: _t->setChangeFlags(QFlag(*reinterpret_cast<int*>(_v))); break; |
413 | case 2: _t->setTotalScaleFactor(*reinterpret_cast< qreal*>(_v)); break; |
414 | case 3: _t->setLastScaleFactor(*reinterpret_cast< qreal*>(_v)); break; |
415 | case 4: _t->setScaleFactor(*reinterpret_cast< qreal*>(_v)); break; |
416 | case 5: _t->setTotalRotationAngle(*reinterpret_cast< qreal*>(_v)); break; |
417 | case 6: _t->setLastRotationAngle(*reinterpret_cast< qreal*>(_v)); break; |
418 | case 7: _t->setRotationAngle(*reinterpret_cast< qreal*>(_v)); break; |
419 | case 8: _t->setStartCenterPoint(*reinterpret_cast< QPointF*>(_v)); break; |
420 | case 9: _t->setLastCenterPoint(*reinterpret_cast< QPointF*>(_v)); break; |
421 | case 10: _t->setCenterPoint(*reinterpret_cast< QPointF*>(_v)); break; |
422 | default: break; |
423 | } |
424 | } else if (_c == QMetaObject::ResetProperty) { |
425 | } else if (_c == QMetaObject::BindableProperty) { |
426 | } |
427 | #endif // QT_NO_PROPERTIES |
428 | Q_UNUSED(_o); |
429 | Q_UNUSED(_id); |
430 | Q_UNUSED(_c); |
431 | Q_UNUSED(_a); |
432 | } |
433 | |
434 | const QMetaObject QPinchGesture::staticMetaObject = { { |
435 | QMetaObject::SuperData::link<QGesture::staticMetaObject>(), |
436 | qt_meta_stringdata_QPinchGesture.offsetsAndSize, |
437 | qt_meta_data_QPinchGesture, |
438 | qt_static_metacall, |
439 | nullptr, |
440 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QPinchGesture_t |
441 | , QtPrivate::TypeAndForceComplete<ChangeFlags, std::true_type>, QtPrivate::TypeAndForceComplete<ChangeFlags, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<QPointF, std::true_type>, QtPrivate::TypeAndForceComplete<QPointF, std::true_type>, QtPrivate::TypeAndForceComplete<QPointF, std::true_type> |
442 | |
443 | |
444 | |
445 | >, |
446 | nullptr |
447 | } }; |
448 | |
449 | |
450 | const QMetaObject *QPinchGesture::metaObject() const |
451 | { |
452 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
453 | } |
454 | |
455 | void *QPinchGesture::qt_metacast(const char *_clname) |
456 | { |
457 | if (!_clname) return nullptr; |
458 | if (!strcmp(_clname, qt_meta_stringdata_QPinchGesture.stringdata0)) |
459 | return static_cast<void*>(this); |
460 | return QGesture::qt_metacast(_clname); |
461 | } |
462 | |
463 | int QPinchGesture::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
464 | { |
465 | _id = QGesture::qt_metacall(_c, _id, _a); |
466 | if (_id < 0) |
467 | return _id; |
468 | |
469 | #ifndef QT_NO_PROPERTIES |
470 | if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
471 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
472 | || _c == QMetaObject::RegisterPropertyMetaType) { |
473 | qt_static_metacall(this, _c, _id, _a); |
474 | _id -= 11; |
475 | } |
476 | #endif // QT_NO_PROPERTIES |
477 | return _id; |
478 | } |
479 | struct qt_meta_stringdata_QSwipeGesture_t { |
480 | const uint offsetsAndSize[22]; |
481 | char stringdata0[118]; |
482 | }; |
483 | #define QT_MOC_LITERAL(ofs, len) \ |
484 | uint(offsetof(qt_meta_stringdata_QSwipeGesture_t, stringdata0) + ofs), len |
485 | static const qt_meta_stringdata_QSwipeGesture_t qt_meta_stringdata_QSwipeGesture = { |
486 | { |
487 | QT_MOC_LITERAL(0, 13), // "QSwipeGesture" |
488 | QT_MOC_LITERAL(14, 19), // "horizontalDirection" |
489 | QT_MOC_LITERAL(34, 14), // "SwipeDirection" |
490 | QT_MOC_LITERAL(49, 17), // "verticalDirection" |
491 | QT_MOC_LITERAL(67, 10), // "swipeAngle" |
492 | QT_MOC_LITERAL(78, 8), // "velocity" |
493 | QT_MOC_LITERAL(87, 11), // "NoDirection" |
494 | QT_MOC_LITERAL(99, 4), // "Left" |
495 | QT_MOC_LITERAL(104, 5), // "Right" |
496 | QT_MOC_LITERAL(110, 2), // "Up" |
497 | QT_MOC_LITERAL(113, 4) // "Down" |
498 | |
499 | }, |
500 | "QSwipeGesture\0horizontalDirection\0" |
501 | "SwipeDirection\0verticalDirection\0" |
502 | "swipeAngle\0velocity\0NoDirection\0Left\0" |
503 | "Right\0Up\0Down" |
504 | }; |
505 | #undef QT_MOC_LITERAL |
506 | |
507 | static const uint qt_meta_data_QSwipeGesture[] = { |
508 | |
509 | // content: |
510 | 9, // revision |
511 | 0, // classname |
512 | 0, 0, // classinfo |
513 | 0, 0, // methods |
514 | 4, 14, // properties |
515 | 1, 34, // enums/sets |
516 | 0, 0, // constructors |
517 | 0, // flags |
518 | 0, // signalCount |
519 | |
520 | // properties: name, type, flags |
521 | 1, 0x80000000 | 2, 0x00005009, uint(-1), 0, |
522 | 3, 0x80000000 | 2, 0x00005009, uint(-1), 0, |
523 | 4, QMetaType::QReal, 0x00015103, uint(-1), 0, |
524 | 5, QMetaType::QReal, 0x00015103, uint(-1), 0, |
525 | |
526 | // enums: name, alias, flags, count, data |
527 | 2, 2, 0x0, 5, 39, |
528 | |
529 | // enum data: key, value |
530 | 6, uint(QSwipeGesture::NoDirection), |
531 | 7, uint(QSwipeGesture::Left), |
532 | 8, uint(QSwipeGesture::Right), |
533 | 9, uint(QSwipeGesture::Up), |
534 | 10, uint(QSwipeGesture::Down), |
535 | |
536 | 0 // eod |
537 | }; |
538 | |
539 | void QSwipeGesture::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
540 | { |
541 | |
542 | #ifndef QT_NO_PROPERTIES |
543 | if (_c == QMetaObject::ReadProperty) { |
544 | Q_ASSERT(staticMetaObject.cast(_o)); |
545 | auto *_t = static_cast<QSwipeGesture *>(_o); |
546 | Q_UNUSED(_t) |
547 | void *_v = _a[0]; |
548 | switch (_id) { |
549 | case 0: *reinterpret_cast< SwipeDirection*>(_v) = _t->horizontalDirection(); break; |
550 | case 1: *reinterpret_cast< SwipeDirection*>(_v) = _t->verticalDirection(); break; |
551 | case 2: *reinterpret_cast< qreal*>(_v) = _t->swipeAngle(); break; |
552 | case 3: *reinterpret_cast< qreal*>(_v) = _t->QSwipeGesture::d_func()->velocity(); break; |
553 | default: break; |
554 | } |
555 | } else if (_c == QMetaObject::WriteProperty) { |
556 | Q_ASSERT(staticMetaObject.cast(_o)); |
557 | auto *_t = static_cast<QSwipeGesture *>(_o); |
558 | Q_UNUSED(_t) |
559 | void *_v = _a[0]; |
560 | switch (_id) { |
561 | case 2: _t->setSwipeAngle(*reinterpret_cast< qreal*>(_v)); break; |
562 | case 3: _t->QSwipeGesture::d_func()->setVelocity(*reinterpret_cast< qreal*>(_v)); break; |
563 | default: break; |
564 | } |
565 | } else if (_c == QMetaObject::ResetProperty) { |
566 | } else if (_c == QMetaObject::BindableProperty) { |
567 | } |
568 | #endif // QT_NO_PROPERTIES |
569 | Q_UNUSED(_o); |
570 | Q_UNUSED(_id); |
571 | Q_UNUSED(_c); |
572 | Q_UNUSED(_a); |
573 | } |
574 | |
575 | const QMetaObject QSwipeGesture::staticMetaObject = { { |
576 | QMetaObject::SuperData::link<QGesture::staticMetaObject>(), |
577 | qt_meta_stringdata_QSwipeGesture.offsetsAndSize, |
578 | qt_meta_data_QSwipeGesture, |
579 | qt_static_metacall, |
580 | nullptr, |
581 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QSwipeGesture_t |
582 | , QtPrivate::TypeAndForceComplete<SwipeDirection, std::true_type>, QtPrivate::TypeAndForceComplete<SwipeDirection, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type> |
583 | |
584 | |
585 | |
586 | >, |
587 | nullptr |
588 | } }; |
589 | |
590 | |
591 | const QMetaObject *QSwipeGesture::metaObject() const |
592 | { |
593 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
594 | } |
595 | |
596 | void *QSwipeGesture::qt_metacast(const char *_clname) |
597 | { |
598 | if (!_clname) return nullptr; |
599 | if (!strcmp(_clname, qt_meta_stringdata_QSwipeGesture.stringdata0)) |
600 | return static_cast<void*>(this); |
601 | return QGesture::qt_metacast(_clname); |
602 | } |
603 | |
604 | int QSwipeGesture::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
605 | { |
606 | _id = QGesture::qt_metacall(_c, _id, _a); |
607 | if (_id < 0) |
608 | return _id; |
609 | |
610 | #ifndef QT_NO_PROPERTIES |
611 | if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
612 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
613 | || _c == QMetaObject::RegisterPropertyMetaType) { |
614 | qt_static_metacall(this, _c, _id, _a); |
615 | _id -= 4; |
616 | } |
617 | #endif // QT_NO_PROPERTIES |
618 | return _id; |
619 | } |
620 | struct qt_meta_stringdata_QTapGesture_t { |
621 | const uint offsetsAndSize[4]; |
622 | char stringdata0[21]; |
623 | }; |
624 | #define QT_MOC_LITERAL(ofs, len) \ |
625 | uint(offsetof(qt_meta_stringdata_QTapGesture_t, stringdata0) + ofs), len |
626 | static const qt_meta_stringdata_QTapGesture_t qt_meta_stringdata_QTapGesture = { |
627 | { |
628 | QT_MOC_LITERAL(0, 11), // "QTapGesture" |
629 | QT_MOC_LITERAL(12, 8) // "position" |
630 | |
631 | }, |
632 | "QTapGesture\0position" |
633 | }; |
634 | #undef QT_MOC_LITERAL |
635 | |
636 | static const uint qt_meta_data_QTapGesture[] = { |
637 | |
638 | // content: |
639 | 9, // revision |
640 | 0, // classname |
641 | 0, 0, // classinfo |
642 | 0, 0, // methods |
643 | 1, 14, // properties |
644 | 0, 0, // enums/sets |
645 | 0, 0, // constructors |
646 | 0, // flags |
647 | 0, // signalCount |
648 | |
649 | // properties: name, type, flags |
650 | 1, QMetaType::QPointF, 0x00015103, uint(-1), 0, |
651 | |
652 | 0 // eod |
653 | }; |
654 | |
655 | void QTapGesture::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
656 | { |
657 | |
658 | #ifndef QT_NO_PROPERTIES |
659 | if (_c == QMetaObject::ReadProperty) { |
660 | Q_ASSERT(staticMetaObject.cast(_o)); |
661 | auto *_t = static_cast<QTapGesture *>(_o); |
662 | Q_UNUSED(_t) |
663 | void *_v = _a[0]; |
664 | switch (_id) { |
665 | case 0: *reinterpret_cast< QPointF*>(_v) = _t->position(); break; |
666 | default: break; |
667 | } |
668 | } else if (_c == QMetaObject::WriteProperty) { |
669 | Q_ASSERT(staticMetaObject.cast(_o)); |
670 | auto *_t = static_cast<QTapGesture *>(_o); |
671 | Q_UNUSED(_t) |
672 | void *_v = _a[0]; |
673 | switch (_id) { |
674 | case 0: _t->setPosition(*reinterpret_cast< QPointF*>(_v)); break; |
675 | default: break; |
676 | } |
677 | } else if (_c == QMetaObject::ResetProperty) { |
678 | } else if (_c == QMetaObject::BindableProperty) { |
679 | } |
680 | #endif // QT_NO_PROPERTIES |
681 | Q_UNUSED(_o); |
682 | Q_UNUSED(_id); |
683 | Q_UNUSED(_c); |
684 | Q_UNUSED(_a); |
685 | } |
686 | |
687 | const QMetaObject QTapGesture::staticMetaObject = { { |
688 | QMetaObject::SuperData::link<QGesture::staticMetaObject>(), |
689 | qt_meta_stringdata_QTapGesture.offsetsAndSize, |
690 | qt_meta_data_QTapGesture, |
691 | qt_static_metacall, |
692 | nullptr, |
693 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QTapGesture_t |
694 | , QtPrivate::TypeAndForceComplete<QPointF, std::true_type> |
695 | |
696 | |
697 | |
698 | >, |
699 | nullptr |
700 | } }; |
701 | |
702 | |
703 | const QMetaObject *QTapGesture::metaObject() const |
704 | { |
705 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
706 | } |
707 | |
708 | void *QTapGesture::qt_metacast(const char *_clname) |
709 | { |
710 | if (!_clname) return nullptr; |
711 | if (!strcmp(_clname, qt_meta_stringdata_QTapGesture.stringdata0)) |
712 | return static_cast<void*>(this); |
713 | return QGesture::qt_metacast(_clname); |
714 | } |
715 | |
716 | int QTapGesture::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
717 | { |
718 | _id = QGesture::qt_metacall(_c, _id, _a); |
719 | if (_id < 0) |
720 | return _id; |
721 | |
722 | #ifndef QT_NO_PROPERTIES |
723 | if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
724 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
725 | || _c == QMetaObject::RegisterPropertyMetaType) { |
726 | qt_static_metacall(this, _c, _id, _a); |
727 | _id -= 1; |
728 | } |
729 | #endif // QT_NO_PROPERTIES |
730 | return _id; |
731 | } |
732 | struct qt_meta_stringdata_QTapAndHoldGesture_t { |
733 | const uint offsetsAndSize[4]; |
734 | char stringdata0[28]; |
735 | }; |
736 | #define QT_MOC_LITERAL(ofs, len) \ |
737 | uint(offsetof(qt_meta_stringdata_QTapAndHoldGesture_t, stringdata0) + ofs), len |
738 | static const qt_meta_stringdata_QTapAndHoldGesture_t qt_meta_stringdata_QTapAndHoldGesture = { |
739 | { |
740 | QT_MOC_LITERAL(0, 18), // "QTapAndHoldGesture" |
741 | QT_MOC_LITERAL(19, 8) // "position" |
742 | |
743 | }, |
744 | "QTapAndHoldGesture\0position" |
745 | }; |
746 | #undef QT_MOC_LITERAL |
747 | |
748 | static const uint qt_meta_data_QTapAndHoldGesture[] = { |
749 | |
750 | // content: |
751 | 9, // revision |
752 | 0, // classname |
753 | 0, 0, // classinfo |
754 | 0, 0, // methods |
755 | 1, 14, // properties |
756 | 0, 0, // enums/sets |
757 | 0, 0, // constructors |
758 | 0, // flags |
759 | 0, // signalCount |
760 | |
761 | // properties: name, type, flags |
762 | 1, QMetaType::QPointF, 0x00015103, uint(-1), 0, |
763 | |
764 | 0 // eod |
765 | }; |
766 | |
767 | void QTapAndHoldGesture::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
768 | { |
769 | |
770 | #ifndef QT_NO_PROPERTIES |
771 | if (_c == QMetaObject::ReadProperty) { |
772 | Q_ASSERT(staticMetaObject.cast(_o)); |
773 | auto *_t = static_cast<QTapAndHoldGesture *>(_o); |
774 | Q_UNUSED(_t) |
775 | void *_v = _a[0]; |
776 | switch (_id) { |
777 | case 0: *reinterpret_cast< QPointF*>(_v) = _t->position(); break; |
778 | default: break; |
779 | } |
780 | } else if (_c == QMetaObject::WriteProperty) { |
781 | Q_ASSERT(staticMetaObject.cast(_o)); |
782 | auto *_t = static_cast<QTapAndHoldGesture *>(_o); |
783 | Q_UNUSED(_t) |
784 | void *_v = _a[0]; |
785 | switch (_id) { |
786 | case 0: _t->setPosition(*reinterpret_cast< QPointF*>(_v)); break; |
787 | default: break; |
788 | } |
789 | } else if (_c == QMetaObject::ResetProperty) { |
790 | } else if (_c == QMetaObject::BindableProperty) { |
791 | } |
792 | #endif // QT_NO_PROPERTIES |
793 | Q_UNUSED(_o); |
794 | Q_UNUSED(_id); |
795 | Q_UNUSED(_c); |
796 | Q_UNUSED(_a); |
797 | } |
798 | |
799 | const QMetaObject QTapAndHoldGesture::staticMetaObject = { { |
800 | QMetaObject::SuperData::link<QGesture::staticMetaObject>(), |
801 | qt_meta_stringdata_QTapAndHoldGesture.offsetsAndSize, |
802 | qt_meta_data_QTapAndHoldGesture, |
803 | qt_static_metacall, |
804 | nullptr, |
805 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QTapAndHoldGesture_t |
806 | , QtPrivate::TypeAndForceComplete<QPointF, std::true_type> |
807 | |
808 | |
809 | |
810 | >, |
811 | nullptr |
812 | } }; |
813 | |
814 | |
815 | const QMetaObject *QTapAndHoldGesture::metaObject() const |
816 | { |
817 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
818 | } |
819 | |
820 | void *QTapAndHoldGesture::qt_metacast(const char *_clname) |
821 | { |
822 | if (!_clname) return nullptr; |
823 | if (!strcmp(_clname, qt_meta_stringdata_QTapAndHoldGesture.stringdata0)) |
824 | return static_cast<void*>(this); |
825 | return QGesture::qt_metacast(_clname); |
826 | } |
827 | |
828 | int QTapAndHoldGesture::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
829 | { |
830 | _id = QGesture::qt_metacall(_c, _id, _a); |
831 | if (_id < 0) |
832 | return _id; |
833 | |
834 | #ifndef QT_NO_PROPERTIES |
835 | if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
836 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
837 | || _c == QMetaObject::RegisterPropertyMetaType) { |
838 | qt_static_metacall(this, _c, _id, _a); |
839 | _id -= 1; |
840 | } |
841 | #endif // QT_NO_PROPERTIES |
842 | return _id; |
843 | } |
844 | QT_WARNING_POP |
845 | QT_END_MOC_NAMESPACE |
846 | |