Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquickpointerhandler_p.cpp |
Source code | Switch to Preprocessed file |
Line | Source | Count |
---|---|---|
1 | /**************************************************************************** | - |
2 | ** Meta object code from reading C++ file 'qquickpointerhandler_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/qquickpointerhandler_p.h" | - |
10 | #include <QtCore/qbytearray.h> | - |
11 | #include <QtCore/qmetatype.h> | - |
12 | #if !defined(Q_MOC_OUTPUT_REVISION) | - |
13 | #error "The header file 'qquickpointerhandler_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 | - | |
20 | QT_BEGIN_MOC_NAMESPACE | - |
21 | QT_WARNING_PUSH | - |
22 | QT_WARNING_DISABLE_DEPRECATED | - |
23 | struct qt_meta_stringdata_QQuickPointerHandler_t { | - |
24 | QByteArrayData data[31]; | - |
25 | char stringdata0[553]; | - |
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_QQuickPointerHandler_t, stringdata0) + ofs \ | - |
30 | - idx * sizeof(QByteArrayData)) \ | - |
31 | ) | - |
32 | static const qt_meta_stringdata_QQuickPointerHandler_t qt_meta_stringdata_QQuickPointerHandler = { | - |
33 | { | - |
34 | QT_MOC_LITERAL(0, 0, 20), // "QQuickPointerHandler" | - |
35 | QT_MOC_LITERAL(1, 21, 14), // "enabledChanged" | - |
36 | QT_MOC_LITERAL(2, 36, 0), // "" | - |
37 | QT_MOC_LITERAL(3, 37, 13), // "activeChanged" | - |
38 | QT_MOC_LITERAL(4, 51, 13), // "targetChanged" | - |
39 | QT_MOC_LITERAL(5, 65, 13), // "marginChanged" | - |
40 | QT_MOC_LITERAL(6, 79, 11), // "grabChanged" | - |
41 | QT_MOC_LITERAL(7, 91, 27), // "QQuickEventPoint::GrabState" | - |
42 | QT_MOC_LITERAL(8, 119, 11), // "stateChange" | - |
43 | QT_MOC_LITERAL(9, 131, 17), // "QQuickEventPoint*" | - |
44 | QT_MOC_LITERAL(10, 149, 5), // "point" | - |
45 | QT_MOC_LITERAL(11, 155, 21), // "grabPermissionChanged" | - |
46 | QT_MOC_LITERAL(12, 177, 8), // "canceled" | - |
47 | QT_MOC_LITERAL(13, 186, 7), // "enabled" | - |
48 | QT_MOC_LITERAL(14, 194, 6), // "active" | - |
49 | QT_MOC_LITERAL(15, 201, 6), // "target" | - |
50 | QT_MOC_LITERAL(16, 208, 11), // "QQuickItem*" | - |
51 | QT_MOC_LITERAL(17, 220, 6), // "parent" | - |
52 | QT_MOC_LITERAL(18, 227, 15), // "grabPermissions" | - |
53 | QT_MOC_LITERAL(19, 243, 15), // "GrabPermissions" | - |
54 | QT_MOC_LITERAL(20, 259, 6), // "margin" | - |
55 | QT_MOC_LITERAL(21, 266, 17), // "TakeOverForbidden" | - |
56 | QT_MOC_LITERAL(22, 284, 33), // "CanTakeOverFromHandlersOfSame..." | - |
57 | QT_MOC_LITERAL(23, 318, 38), // "CanTakeOverFromHandlersOfDiff..." | - |
58 | QT_MOC_LITERAL(24, 357, 20), // "CanTakeOverFromItems" | - |
59 | QT_MOC_LITERAL(25, 378, 23), // "CanTakeOverFromAnything" | - |
60 | QT_MOC_LITERAL(26, 402, 36), // "ApprovesTakeOverByHandlersOfS..." | - |
61 | QT_MOC_LITERAL(27, 439, 41), // "ApprovesTakeOverByHandlersOfD..." | - |
62 | QT_MOC_LITERAL(28, 481, 23), // "ApprovesTakeOverByItems" | - |
63 | QT_MOC_LITERAL(29, 505, 20), // "ApprovesCancellation" | - |
64 | QT_MOC_LITERAL(30, 526, 26) // "ApprovesTakeOverByAnything" | - |
65 | - | |
66 | }, | - |
67 | "QQuickPointerHandler\0enabledChanged\0" | - |
68 | "\0activeChanged\0targetChanged\0marginChanged\0" | - |
69 | "grabChanged\0QQuickEventPoint::GrabState\0" | - |
70 | "stateChange\0QQuickEventPoint*\0point\0" | - |
71 | "grabPermissionChanged\0canceled\0enabled\0" | - |
72 | "active\0target\0QQuickItem*\0parent\0" | - |
73 | "grabPermissions\0GrabPermissions\0margin\0" | - |
74 | "TakeOverForbidden\0CanTakeOverFromHandlersOfSameType\0" | - |
75 | "CanTakeOverFromHandlersOfDifferentType\0" | - |
76 | "CanTakeOverFromItems\0CanTakeOverFromAnything\0" | - |
77 | "ApprovesTakeOverByHandlersOfSameType\0" | - |
78 | "ApprovesTakeOverByHandlersOfDifferentType\0" | - |
79 | "ApprovesTakeOverByItems\0ApprovesCancellation\0" | - |
80 | "ApprovesTakeOverByAnything" | - |
81 | }; | - |
82 | #undef QT_MOC_LITERAL | - |
83 | - | |
84 | static const uint qt_meta_data_QQuickPointerHandler[] = { | - |
85 | - | |
86 | // content: | - |
87 | 7, // revision | - |
88 | 0, // classname | - |
89 | 0, 0, // classinfo | - |
90 | 7, 14, // methods | - |
91 | 6, 62, // properties | - |
92 | 1, 86, // enums/sets | - |
93 | 0, 0, // constructors | - |
94 | 0, // flags | - |
95 | 7, // signalCount | - |
96 | - | |
97 | // signals: name, argc, parameters, tag, flags | - |
98 | 1, 0, 49, 2, 0x06 /* Public */, | - |
99 | 3, 0, 50, 2, 0x06 /* Public */, | - |
100 | 4, 0, 51, 2, 0x06 /* Public */, | - |
101 | 5, 0, 52, 2, 0x06 /* Public */, | - |
102 | 6, 2, 53, 2, 0x06 /* Public */, | - |
103 | 11, 0, 58, 2, 0x06 /* Public */, | - |
104 | 12, 1, 59, 2, 0x06 /* Public */, | - |
105 | - | |
106 | // signals: parameters | - |
107 | QMetaType::Void, | - |
108 | QMetaType::Void, | - |
109 | QMetaType::Void, | - |
110 | QMetaType::Void, | - |
111 | QMetaType::Void, 0x80000000 | 7, 0x80000000 | 9, 8, 10, | - |
112 | QMetaType::Void, | - |
113 | QMetaType::Void, 0x80000000 | 9, 10, | - |
114 | - | |
115 | // properties: name, type, flags | - |
116 | 13, QMetaType::Bool, 0x00495103, | - |
117 | 14, QMetaType::Bool, 0x00495001, | - |
118 | 15, 0x80000000 | 16, 0x0049510b, | - |
119 | 17, 0x80000000 | 16, 0x00095409, | - |
120 | 18, 0x80000000 | 19, 0x0049510b, | - |
121 | 20, QMetaType::QReal, 0x00495103, | - |
122 | - | |
123 | // properties: notify_signal_id | - |
124 | 0, | - |
125 | 1, | - |
126 | 2, | - |
127 | 0, | - |
128 | 5, | - |
129 | 3, | - |
130 | - | |
131 | // enums: name, flags, count, data | - |
132 | 19, 0x1, 10, 90, | - |
133 | - | |
134 | // enum data: key, value | - |
135 | 21, uint(QQuickPointerHandler::TakeOverForbidden), | - |
136 | 22, uint(QQuickPointerHandler::CanTakeOverFromHandlersOfSameType), | - |
137 | 23, uint(QQuickPointerHandler::CanTakeOverFromHandlersOfDifferentType), | - |
138 | 24, uint(QQuickPointerHandler::CanTakeOverFromItems), | - |
139 | 25, uint(QQuickPointerHandler::CanTakeOverFromAnything), | - |
140 | 26, uint(QQuickPointerHandler::ApprovesTakeOverByHandlersOfSameType), | - |
141 | 27, uint(QQuickPointerHandler::ApprovesTakeOverByHandlersOfDifferentType), | - |
142 | 28, uint(QQuickPointerHandler::ApprovesTakeOverByItems), | - |
143 | 29, uint(QQuickPointerHandler::ApprovesCancellation), | - |
144 | 30, uint(QQuickPointerHandler::ApprovesTakeOverByAnything), | - |
145 | - | |
146 | 0 // eod | - |
147 | }; | - |
148 | - | |
149 | void QQuickPointerHandler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
150 | { | - |
151 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
152 | QQuickPointerHandler *_t = static_cast<QQuickPointerHandler *>(_o); | - |
153 | Q_UNUSED(_t) | - |
154 | switch (_id) { | - |
155 | case 0: _t->enabledChanged(); break; | - |
156 | case 1: _t->activeChanged(); break; | - |
157 | case 2: _t->targetChanged(); break; | - |
158 | case 3: _t->marginChanged(); break; | - |
159 | case 4: _t->grabChanged((*reinterpret_cast< QQuickEventPoint::GrabState(*)>(_a[1])),(*reinterpret_cast< QQuickEventPoint*(*)>(_a[2]))); break; | - |
160 | case 5: _t->grabPermissionChanged(); break; | - |
161 | case 6: _t->canceled((*reinterpret_cast< QQuickEventPoint*(*)>(_a[1]))); break; | - |
162 | default: ; | - |
163 | } | - |
164 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
165 | switch (_id) { | - |
166 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - |
167 | case 4: | - |
168 | switch (*reinterpret_cast<int*>(_a[1])) { | - |
169 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - |
170 | case 1: | - |
171 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickEventPoint* >(); break; | - |
172 | } | - |
173 | break; | - |
174 | case 6: | - |
175 | switch (*reinterpret_cast<int*>(_a[1])) { | - |
176 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - |
177 | case 0: | - |
178 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickEventPoint* >(); break; | - |
179 | } | - |
180 | break; | - |
181 | } | - |
182 | } else if (_c == QMetaObject::IndexOfMethod) { | - |
183 | int *result = reinterpret_cast<int *>(_a[0]); | - |
184 | { | - |
185 | using _t = void (QQuickPointerHandler::*)(); | - |
186 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::enabledChanged)) { | - |
187 | *result = 0; | - |
188 | return; | - |
189 | } | - |
190 | } | - |
191 | { | - |
192 | using _t = void (QQuickPointerHandler::*)(); | - |
193 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::activeChanged)) { | - |
194 | *result = 1; | - |
195 | return; | - |
196 | } | - |
197 | } | - |
198 | { | - |
199 | using _t = void (QQuickPointerHandler::*)(); | - |
200 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::targetChanged)) { | - |
201 | *result = 2; | - |
202 | return; | - |
203 | } | - |
204 | } | - |
205 | { | - |
206 | using _t = void (QQuickPointerHandler::*)(); | - |
207 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::marginChanged)) { | - |
208 | *result = 3; | - |
209 | return; | - |
210 | } | - |
211 | } | - |
212 | { | - |
213 | using _t = void (QQuickPointerHandler::*)(QQuickEventPoint::GrabState , QQuickEventPoint * ); | - |
214 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::grabChanged)) { | - |
215 | *result = 4; | - |
216 | return; | - |
217 | } | - |
218 | } | - |
219 | { | - |
220 | using _t = void (QQuickPointerHandler::*)(); | - |
221 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::grabPermissionChanged)) { | - |
222 | *result = 5; | - |
223 | return; | - |
224 | } | - |
225 | } | - |
226 | { | - |
227 | using _t = void (QQuickPointerHandler::*)(QQuickEventPoint * ); | - |
228 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickPointerHandler::canceled)) { | - |
229 | *result = 6; | - |
230 | return; | - |
231 | } | - |
232 | } | - |
233 | } else if (_c == QMetaObject::RegisterPropertyMetaType) { | - |
234 | switch (_id) { | - |
235 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - |
236 | case 3: | - |
237 | case 2: | - |
238 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItem* >(); break; | - |
239 | } | - |
240 | } | - |
241 | - | |
242 | #ifndef QT_NO_PROPERTIES | - |
243 | else if (_c == QMetaObject::ReadProperty) { | - |
244 | QQuickPointerHandler *_t = static_cast<QQuickPointerHandler *>(_o); | - |
245 | Q_UNUSED(_t) | - |
246 | void *_v = _a[0]; | - |
247 | switch (_id) { | - |
248 | case 0: *reinterpret_cast< bool*>(_v) = _t->enabled(); break; | - |
249 | case 1: *reinterpret_cast< bool*>(_v) = _t->active(); break; | - |
250 | case 2: *reinterpret_cast< QQuickItem**>(_v) = _t->target(); break; | - |
251 | case 3: *reinterpret_cast< QQuickItem**>(_v) = _t->parentItem(); break; | - |
252 | case 4: *reinterpret_cast<int*>(_v) = QFlag(_t->grabPermissions()); break; | - |
253 | case 5: *reinterpret_cast< qreal*>(_v) = _t->margin(); break; | - |
254 | default: break; | - |
255 | } | - |
256 | } else if (_c == QMetaObject::WriteProperty) { | - |
257 | QQuickPointerHandler *_t = static_cast<QQuickPointerHandler *>(_o); | - |
258 | Q_UNUSED(_t) | - |
259 | void *_v = _a[0]; | - |
260 | switch (_id) { | - |
261 | case 0: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break; | - |
262 | case 2: _t->setTarget(*reinterpret_cast< QQuickItem**>(_v)); break; | - |
263 | case 4: _t->setGrabPermissions(QFlag(*reinterpret_cast<int*>(_v))); break; | - |
264 | case 5: _t->setMargin(*reinterpret_cast< qreal*>(_v)); break; | - |
265 | default: break; | - |
266 | } | - |
267 | } else if (_c == QMetaObject::ResetProperty) { | - |
268 | } | - |
269 | #endif // QT_NO_PROPERTIES | - |
270 | } | - |
271 | - | |
272 | QT_INIT_METAOBJECT const QMetaObject QQuickPointerHandler::staticMetaObject = { | - |
273 | { &QObject::staticMetaObject, qt_meta_stringdata_QQuickPointerHandler.data, | - |
274 | qt_meta_data_QQuickPointerHandler, qt_static_metacall, nullptr, nullptr} | - |
275 | }; | - |
276 | - | |
277 | - | |
278 | const QMetaObject *QQuickPointerHandler::metaObject() const | - |
279 | { | - |
280 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
281 | } | - |
282 | - | |
283 | void *QQuickPointerHandler::qt_metacast(const char *_clname) | - |
284 | { | - |
285 | if (!_clname) return nullptr; | - |
286 | if (!strcmp(_clname, qt_meta_stringdata_QQuickPointerHandler.stringdata0)) | - |
287 | return static_cast<void*>(this); | - |
288 | if (!strcmp(_clname, "QQmlParserStatus")) | - |
289 | return static_cast< QQmlParserStatus*>(this); | - |
290 | if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus")) | - |
291 | return static_cast< QQmlParserStatus*>(this); | - |
292 | return QObject::qt_metacast(_clname); | - |
293 | } | - |
294 | - | |
295 | int QQuickPointerHandler::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
296 | { | - |
297 | _id = QObject::qt_metacall(_c, _id, _a); | - |
298 | if (_id < 0) | - |
299 | return _id; | - |
300 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
301 | if (_id < 7) | - |
302 | qt_static_metacall(this, _c, _id, _a); | - |
303 | _id -= 7; | - |
304 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
305 | if (_id < 7) | - |
306 | qt_static_metacall(this, _c, _id, _a); | - |
307 | _id -= 7; | - |
308 | } | - |
309 | #ifndef QT_NO_PROPERTIES | - |
310 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | - |
311 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { | - |
312 | qt_static_metacall(this, _c, _id, _a); | - |
313 | _id -= 6; | - |
314 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | - |
315 | _id -= 6; | - |
316 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | - |
317 | _id -= 6; | - |
318 | } else if (_c == QMetaObject::QueryPropertyStored) { | - |
319 | _id -= 6; | - |
320 | } else if (_c == QMetaObject::QueryPropertyEditable) { | - |
321 | _id -= 6; | - |
322 | } else if (_c == QMetaObject::QueryPropertyUser) { | - |
323 | _id -= 6; | - |
324 | } | - |
325 | #endif // QT_NO_PROPERTIES | - |
326 | return _id; | - |
327 | } | - |
328 | - | |
329 | // SIGNAL 0 | - |
330 | void QQuickPointerHandler::enabledChanged() | - |
331 | { | - |
332 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); | - |
333 | } never executed: end of block | 0 |
334 | - | |
335 | // SIGNAL 1 | - |
336 | void QQuickPointerHandler::activeChanged() | - |
337 | { | - |
338 | QMetaObject::activate(this, &staticMetaObject, 1, nullptr); | - |
339 | } executed 254 times by 4 tests: end of block Executed by:
| 254 |
340 | - | |
341 | // SIGNAL 2 | - |
342 | void QQuickPointerHandler::targetChanged() | - |
343 | { | - |
344 | QMetaObject::activate(this, &staticMetaObject, 2, nullptr); | - |
345 | } executed 80 times by 2 tests: end of block Executed by:
| 80 |
346 | - | |
347 | // SIGNAL 3 | - |
348 | void QQuickPointerHandler::marginChanged() | - |
349 | { | - |
350 | QMetaObject::activate(this, &staticMetaObject, 3, nullptr); | - |
351 | } never executed: end of block | 0 |
352 | - | |
353 | // SIGNAL 4 | - |
354 | void QQuickPointerHandler::grabChanged(QQuickEventPoint::GrabState _t1, QQuickEventPoint * _t2) | - |
355 | { | - |
356 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) }; | - |
357 | QMetaObject::activate(this, &staticMetaObject, 4, _a); | - |
358 | } executed 480 times by 4 tests: end of block Executed by:
| 480 |
359 | - | |
360 | // SIGNAL 5 | - |
361 | void QQuickPointerHandler::grabPermissionChanged() | - |
362 | { | - |
363 | QMetaObject::activate(this, &staticMetaObject, 5, nullptr); | - |
364 | } never executed: end of block | 0 |
365 | - | |
366 | // SIGNAL 6 | - |
367 | void QQuickPointerHandler::canceled(QQuickEventPoint * _t1) | - |
368 | { | - |
369 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; | - |
370 | QMetaObject::activate(this, &staticMetaObject, 6, _a); | - |
371 | } executed 124 times by 4 tests: end of block Executed by:
| 124 |
372 | QT_WARNING_POP | - |
373 | QT_END_MOC_NAMESPACE | - |
Source code | Switch to Preprocessed file |