1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qabstractanimation.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 "animation/qabstractanimation.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qabstractanimation.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_QAbstractAnimation_t { |
25 | const uint offsetsAndSize[64]; |
26 | char stringdata0[364]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QAbstractAnimation_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QAbstractAnimation_t qt_meta_stringdata_QAbstractAnimation = { |
31 | { |
32 | QT_MOC_LITERAL(0, 18), // "QAbstractAnimation" |
33 | QT_MOC_LITERAL(19, 8), // "finished" |
34 | QT_MOC_LITERAL(28, 0), // "" |
35 | QT_MOC_LITERAL(29, 12), // "stateChanged" |
36 | QT_MOC_LITERAL(42, 25), // "QAbstractAnimation::State" |
37 | QT_MOC_LITERAL(68, 8), // "newState" |
38 | QT_MOC_LITERAL(77, 8), // "oldState" |
39 | QT_MOC_LITERAL(86, 18), // "currentLoopChanged" |
40 | QT_MOC_LITERAL(105, 11), // "currentLoop" |
41 | QT_MOC_LITERAL(117, 16), // "directionChanged" |
42 | QT_MOC_LITERAL(134, 29), // "QAbstractAnimation::Direction" |
43 | QT_MOC_LITERAL(164, 5), // "start" |
44 | QT_MOC_LITERAL(170, 34), // "QAbstractAnimation::DeletionP..." |
45 | QT_MOC_LITERAL(205, 6), // "policy" |
46 | QT_MOC_LITERAL(212, 5), // "pause" |
47 | QT_MOC_LITERAL(218, 6), // "resume" |
48 | QT_MOC_LITERAL(225, 9), // "setPaused" |
49 | QT_MOC_LITERAL(235, 4), // "stop" |
50 | QT_MOC_LITERAL(240, 14), // "setCurrentTime" |
51 | QT_MOC_LITERAL(255, 5), // "msecs" |
52 | QT_MOC_LITERAL(261, 5), // "state" |
53 | QT_MOC_LITERAL(267, 5), // "State" |
54 | QT_MOC_LITERAL(273, 9), // "loopCount" |
55 | QT_MOC_LITERAL(283, 11), // "currentTime" |
56 | QT_MOC_LITERAL(295, 9), // "direction" |
57 | QT_MOC_LITERAL(305, 9), // "Direction" |
58 | QT_MOC_LITERAL(315, 8), // "duration" |
59 | QT_MOC_LITERAL(324, 7), // "Forward" |
60 | QT_MOC_LITERAL(332, 8), // "Backward" |
61 | QT_MOC_LITERAL(341, 7), // "Stopped" |
62 | QT_MOC_LITERAL(349, 6), // "Paused" |
63 | QT_MOC_LITERAL(356, 7) // "Running" |
64 | |
65 | }, |
66 | "QAbstractAnimation\0finished\0\0stateChanged\0" |
67 | "QAbstractAnimation::State\0newState\0" |
68 | "oldState\0currentLoopChanged\0currentLoop\0" |
69 | "directionChanged\0QAbstractAnimation::Direction\0" |
70 | "start\0QAbstractAnimation::DeletionPolicy\0" |
71 | "policy\0pause\0resume\0setPaused\0stop\0" |
72 | "setCurrentTime\0msecs\0state\0State\0" |
73 | "loopCount\0currentTime\0direction\0" |
74 | "Direction\0duration\0Forward\0Backward\0" |
75 | "Stopped\0Paused\0Running" |
76 | }; |
77 | #undef QT_MOC_LITERAL |
78 | |
79 | static const uint qt_meta_data_QAbstractAnimation[] = { |
80 | |
81 | // content: |
82 | 9, // revision |
83 | 0, // classname |
84 | 0, 0, // classinfo |
85 | 11, 14, // methods |
86 | 6, 105, // properties |
87 | 2, 135, // enums/sets |
88 | 0, 0, // constructors |
89 | 0, // flags |
90 | 4, // signalCount |
91 | |
92 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
93 | 1, 0, 80, 2, 0x06, 6 /* Public */, |
94 | 3, 2, 81, 2, 0x06, 7 /* Public */, |
95 | 7, 1, 86, 2, 0x06, 10 /* Public */, |
96 | 9, 1, 89, 2, 0x06, 12 /* Public */, |
97 | |
98 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
99 | 11, 1, 92, 2, 0x0a, 14 /* Public */, |
100 | 11, 0, 95, 2, 0x2a, 16 /* Public | MethodCloned */, |
101 | 14, 0, 96, 2, 0x0a, 17 /* Public */, |
102 | 15, 0, 97, 2, 0x0a, 18 /* Public */, |
103 | 16, 1, 98, 2, 0x0a, 19 /* Public */, |
104 | 17, 0, 101, 2, 0x0a, 21 /* Public */, |
105 | 18, 1, 102, 2, 0x0a, 22 /* Public */, |
106 | |
107 | // signals: parameters |
108 | QMetaType::Void, |
109 | QMetaType::Void, 0x80000000 | 4, 0x80000000 | 4, 5, 6, |
110 | QMetaType::Void, QMetaType::Int, 8, |
111 | QMetaType::Void, 0x80000000 | 10, 2, |
112 | |
113 | // slots: parameters |
114 | QMetaType::Void, 0x80000000 | 12, 13, |
115 | QMetaType::Void, |
116 | QMetaType::Void, |
117 | QMetaType::Void, |
118 | QMetaType::Void, QMetaType::Bool, 2, |
119 | QMetaType::Void, |
120 | QMetaType::Void, QMetaType::Int, 19, |
121 | |
122 | // properties: name, type, flags |
123 | 20, 0x80000000 | 21, 0x00015009, uint(1), 0, |
124 | 22, QMetaType::Int, 0x00015103, uint(-1), 0, |
125 | 23, QMetaType::Int, 0x00015103, uint(-1), 0, |
126 | 8, QMetaType::Int, 0x00015001, uint(2), 0, |
127 | 24, 0x80000000 | 25, 0x0001510b, uint(3), 0, |
128 | 26, QMetaType::Int, 0x00015001, uint(-1), 0, |
129 | |
130 | // enums: name, alias, flags, count, data |
131 | 25, 25, 0x0, 2, 145, |
132 | 21, 21, 0x0, 3, 149, |
133 | |
134 | // enum data: key, value |
135 | 27, uint(QAbstractAnimation::Forward), |
136 | 28, uint(QAbstractAnimation::Backward), |
137 | 29, uint(QAbstractAnimation::Stopped), |
138 | 30, uint(QAbstractAnimation::Paused), |
139 | 31, uint(QAbstractAnimation::Running), |
140 | |
141 | 0 // eod |
142 | }; |
143 | |
144 | void QAbstractAnimation::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
145 | { |
146 | if (_c == QMetaObject::InvokeMetaMethod) { |
147 | Q_ASSERT(staticMetaObject.cast(_o)); |
148 | auto *_t = static_cast<QAbstractAnimation *>(_o); |
149 | Q_UNUSED(_t) |
150 | switch (_id) { |
151 | case 0: _t->finished(); break; |
152 | case 1: _t->stateChanged((*reinterpret_cast< QAbstractAnimation::State(*)>(_a[1])),(*reinterpret_cast< QAbstractAnimation::State(*)>(_a[2]))); break; |
153 | case 2: _t->currentLoopChanged((*reinterpret_cast< int(*)>(_a[1]))); break; |
154 | case 3: _t->directionChanged((*reinterpret_cast< QAbstractAnimation::Direction(*)>(_a[1]))); break; |
155 | case 4: _t->start((*reinterpret_cast< QAbstractAnimation::DeletionPolicy(*)>(_a[1]))); break; |
156 | case 5: _t->start(); break; |
157 | case 6: _t->pause(); break; |
158 | case 7: _t->resume(); break; |
159 | case 8: _t->setPaused((*reinterpret_cast< bool(*)>(_a[1]))); break; |
160 | case 9: _t->stop(); break; |
161 | case 10: _t->setCurrentTime((*reinterpret_cast< int(*)>(_a[1]))); break; |
162 | default: ; |
163 | } |
164 | } else if (_c == QMetaObject::IndexOfMethod) { |
165 | int *result = reinterpret_cast<int *>(_a[0]); |
166 | { |
167 | using _t = void (QAbstractAnimation::*)(); |
168 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractAnimation::finished)) { |
169 | *result = 0; |
170 | return; |
171 | } |
172 | } |
173 | { |
174 | using _t = void (QAbstractAnimation::*)(QAbstractAnimation::State , QAbstractAnimation::State ); |
175 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractAnimation::stateChanged)) { |
176 | *result = 1; |
177 | return; |
178 | } |
179 | } |
180 | { |
181 | using _t = void (QAbstractAnimation::*)(int ); |
182 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractAnimation::currentLoopChanged)) { |
183 | *result = 2; |
184 | return; |
185 | } |
186 | } |
187 | { |
188 | using _t = void (QAbstractAnimation::*)(QAbstractAnimation::Direction ); |
189 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractAnimation::directionChanged)) { |
190 | *result = 3; |
191 | return; |
192 | } |
193 | } |
194 | } |
195 | #ifndef QT_NO_PROPERTIES |
196 | else if (_c == QMetaObject::ReadProperty) { |
197 | Q_ASSERT(staticMetaObject.cast(_o)); |
198 | auto *_t = static_cast<QAbstractAnimation *>(_o); |
199 | Q_UNUSED(_t) |
200 | void *_v = _a[0]; |
201 | switch (_id) { |
202 | case 0: *reinterpret_cast< State*>(_v) = _t->state(); break; |
203 | case 1: *reinterpret_cast< int*>(_v) = _t->loopCount(); break; |
204 | case 2: *reinterpret_cast< int*>(_v) = _t->currentTime(); break; |
205 | case 3: *reinterpret_cast< int*>(_v) = _t->currentLoop(); break; |
206 | case 4: *reinterpret_cast< Direction*>(_v) = _t->direction(); break; |
207 | case 5: *reinterpret_cast< int*>(_v) = _t->duration(); break; |
208 | default: break; |
209 | } |
210 | } else if (_c == QMetaObject::WriteProperty) { |
211 | Q_ASSERT(staticMetaObject.cast(_o)); |
212 | auto *_t = static_cast<QAbstractAnimation *>(_o); |
213 | Q_UNUSED(_t) |
214 | void *_v = _a[0]; |
215 | switch (_id) { |
216 | case 1: _t->setLoopCount(*reinterpret_cast< int*>(_v)); break; |
217 | case 2: _t->setCurrentTime(*reinterpret_cast< int*>(_v)); break; |
218 | case 4: _t->setDirection(*reinterpret_cast< Direction*>(_v)); break; |
219 | default: break; |
220 | } |
221 | } else if (_c == QMetaObject::ResetProperty) { |
222 | } else if (_c == QMetaObject::BindableProperty) { |
223 | } |
224 | #endif // QT_NO_PROPERTIES |
225 | } |
226 | |
227 | const QMetaObject QAbstractAnimation::staticMetaObject = { { |
228 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
229 | qt_meta_stringdata_QAbstractAnimation.offsetsAndSize, |
230 | qt_meta_data_QAbstractAnimation, |
231 | qt_static_metacall, |
232 | nullptr, |
233 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QAbstractAnimation_t |
234 | , QtPrivate::TypeAndForceComplete<State, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<Direction, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractAnimation::State, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractAnimation::State, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractAnimation::Direction, std::false_type> |
235 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractAnimation::DeletionPolicy, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type> |
236 | |
237 | |
238 | >, |
239 | nullptr |
240 | } }; |
241 | |
242 | |
243 | const QMetaObject *QAbstractAnimation::metaObject() const |
244 | { |
245 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
246 | } |
247 | |
248 | void *QAbstractAnimation::qt_metacast(const char *_clname) |
249 | { |
250 | if (!_clname) return nullptr; |
251 | if (!strcmp(_clname, qt_meta_stringdata_QAbstractAnimation.stringdata0)) |
252 | return static_cast<void*>(this); |
253 | return QObject::qt_metacast(_clname); |
254 | } |
255 | |
256 | int QAbstractAnimation::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
257 | { |
258 | _id = QObject::qt_metacall(_c, _id, _a); |
259 | if (_id < 0) |
260 | return _id; |
261 | if (_c == QMetaObject::InvokeMetaMethod) { |
262 | if (_id < 11) |
263 | qt_static_metacall(this, _c, _id, _a); |
264 | _id -= 11; |
265 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
266 | if (_id < 11) |
267 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
268 | _id -= 11; |
269 | } |
270 | #ifndef QT_NO_PROPERTIES |
271 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
272 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
273 | || _c == QMetaObject::RegisterPropertyMetaType) { |
274 | qt_static_metacall(this, _c, _id, _a); |
275 | _id -= 6; |
276 | } |
277 | #endif // QT_NO_PROPERTIES |
278 | return _id; |
279 | } |
280 | |
281 | // SIGNAL 0 |
282 | void QAbstractAnimation::finished() |
283 | { |
284 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); |
285 | } |
286 | |
287 | // SIGNAL 1 |
288 | void QAbstractAnimation::stateChanged(QAbstractAnimation::State _t1, QAbstractAnimation::State _t2) |
289 | { |
290 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) }; |
291 | QMetaObject::activate(this, &staticMetaObject, 1, _a); |
292 | } |
293 | |
294 | // SIGNAL 2 |
295 | void QAbstractAnimation::currentLoopChanged(int _t1) |
296 | { |
297 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
298 | QMetaObject::activate(this, &staticMetaObject, 2, _a); |
299 | } |
300 | |
301 | // SIGNAL 3 |
302 | void QAbstractAnimation::directionChanged(QAbstractAnimation::Direction _t1) |
303 | { |
304 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
305 | QMetaObject::activate(this, &staticMetaObject, 3, _a); |
306 | } |
307 | struct qt_meta_stringdata_QAnimationDriver_t { |
308 | const uint offsetsAndSize[8]; |
309 | char stringdata0[34]; |
310 | }; |
311 | #define QT_MOC_LITERAL(ofs, len) \ |
312 | uint(offsetof(qt_meta_stringdata_QAnimationDriver_t, stringdata0) + ofs), len |
313 | static const qt_meta_stringdata_QAnimationDriver_t qt_meta_stringdata_QAnimationDriver = { |
314 | { |
315 | QT_MOC_LITERAL(0, 16), // "QAnimationDriver" |
316 | QT_MOC_LITERAL(17, 7), // "started" |
317 | QT_MOC_LITERAL(25, 0), // "" |
318 | QT_MOC_LITERAL(26, 7) // "stopped" |
319 | |
320 | }, |
321 | "QAnimationDriver\0started\0\0stopped" |
322 | }; |
323 | #undef QT_MOC_LITERAL |
324 | |
325 | static const uint qt_meta_data_QAnimationDriver[] = { |
326 | |
327 | // content: |
328 | 9, // revision |
329 | 0, // classname |
330 | 0, 0, // classinfo |
331 | 2, 14, // methods |
332 | 0, 0, // properties |
333 | 0, 0, // enums/sets |
334 | 0, 0, // constructors |
335 | 0, // flags |
336 | 2, // signalCount |
337 | |
338 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
339 | 1, 0, 26, 2, 0x06, 0 /* Public */, |
340 | 3, 0, 27, 2, 0x06, 1 /* Public */, |
341 | |
342 | // signals: parameters |
343 | QMetaType::Void, |
344 | QMetaType::Void, |
345 | |
346 | 0 // eod |
347 | }; |
348 | |
349 | void QAnimationDriver::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
350 | { |
351 | if (_c == QMetaObject::InvokeMetaMethod) { |
352 | Q_ASSERT(staticMetaObject.cast(_o)); |
353 | auto *_t = static_cast<QAnimationDriver *>(_o); |
354 | Q_UNUSED(_t) |
355 | switch (_id) { |
356 | case 0: _t->started(); break; |
357 | case 1: _t->stopped(); break; |
358 | default: ; |
359 | } |
360 | } else if (_c == QMetaObject::IndexOfMethod) { |
361 | int *result = reinterpret_cast<int *>(_a[0]); |
362 | { |
363 | using _t = void (QAnimationDriver::*)(); |
364 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAnimationDriver::started)) { |
365 | *result = 0; |
366 | return; |
367 | } |
368 | } |
369 | { |
370 | using _t = void (QAnimationDriver::*)(); |
371 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAnimationDriver::stopped)) { |
372 | *result = 1; |
373 | return; |
374 | } |
375 | } |
376 | } |
377 | Q_UNUSED(_a); |
378 | } |
379 | |
380 | const QMetaObject QAnimationDriver::staticMetaObject = { { |
381 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
382 | qt_meta_stringdata_QAnimationDriver.offsetsAndSize, |
383 | qt_meta_data_QAnimationDriver, |
384 | qt_static_metacall, |
385 | nullptr, |
386 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QAnimationDriver_t |
387 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
388 | |
389 | |
390 | |
391 | >, |
392 | nullptr |
393 | } }; |
394 | |
395 | |
396 | const QMetaObject *QAnimationDriver::metaObject() const |
397 | { |
398 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
399 | } |
400 | |
401 | void *QAnimationDriver::qt_metacast(const char *_clname) |
402 | { |
403 | if (!_clname) return nullptr; |
404 | if (!strcmp(_clname, qt_meta_stringdata_QAnimationDriver.stringdata0)) |
405 | return static_cast<void*>(this); |
406 | return QObject::qt_metacast(_clname); |
407 | } |
408 | |
409 | int QAnimationDriver::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
410 | { |
411 | _id = QObject::qt_metacall(_c, _id, _a); |
412 | if (_id < 0) |
413 | return _id; |
414 | if (_c == QMetaObject::InvokeMetaMethod) { |
415 | if (_id < 2) |
416 | qt_static_metacall(this, _c, _id, _a); |
417 | _id -= 2; |
418 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
419 | if (_id < 2) |
420 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
421 | _id -= 2; |
422 | } |
423 | return _id; |
424 | } |
425 | |
426 | // SIGNAL 0 |
427 | void QAnimationDriver::started() |
428 | { |
429 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); |
430 | } |
431 | |
432 | // SIGNAL 1 |
433 | void QAnimationDriver::stopped() |
434 | { |
435 | QMetaObject::activate(this, &staticMetaObject, 1, nullptr); |
436 | } |
437 | QT_WARNING_POP |
438 | QT_END_MOC_NAMESPACE |
439 | |