| 1 | /**************************************************************************** |
| 2 | ** Meta object code from reading C++ file 'qtimeline.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 "tools/qtimeline.h" |
| 11 | #include <QtCore/qbytearray.h> |
| 12 | #include <QtCore/qmetatype.h> |
| 13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
| 14 | #error "The header file 'qtimeline.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_QTimeLine_t { |
| 25 | const uint offsetsAndSize[50]; |
| 26 | char stringdata0[249]; |
| 27 | }; |
| 28 | #define QT_MOC_LITERAL(ofs, len) \ |
| 29 | uint(offsetof(qt_meta_stringdata_QTimeLine_t, stringdata0) + ofs), len |
| 30 | static const qt_meta_stringdata_QTimeLine_t qt_meta_stringdata_QTimeLine = { |
| 31 | { |
| 32 | QT_MOC_LITERAL(0, 9), // "QTimeLine" |
| 33 | QT_MOC_LITERAL(10, 12), // "valueChanged" |
| 34 | QT_MOC_LITERAL(23, 0), // "" |
| 35 | QT_MOC_LITERAL(24, 1), // "x" |
| 36 | QT_MOC_LITERAL(26, 12), // "frameChanged" |
| 37 | QT_MOC_LITERAL(39, 12), // "stateChanged" |
| 38 | QT_MOC_LITERAL(52, 16), // "QTimeLine::State" |
| 39 | QT_MOC_LITERAL(69, 8), // "newState" |
| 40 | QT_MOC_LITERAL(78, 8), // "finished" |
| 41 | QT_MOC_LITERAL(87, 5), // "start" |
| 42 | QT_MOC_LITERAL(93, 6), // "resume" |
| 43 | QT_MOC_LITERAL(100, 4), // "stop" |
| 44 | QT_MOC_LITERAL(105, 9), // "setPaused" |
| 45 | QT_MOC_LITERAL(115, 6), // "paused" |
| 46 | QT_MOC_LITERAL(122, 14), // "setCurrentTime" |
| 47 | QT_MOC_LITERAL(137, 4), // "msec" |
| 48 | QT_MOC_LITERAL(142, 15), // "toggleDirection" |
| 49 | QT_MOC_LITERAL(158, 8), // "duration" |
| 50 | QT_MOC_LITERAL(167, 14), // "updateInterval" |
| 51 | QT_MOC_LITERAL(182, 11), // "currentTime" |
| 52 | QT_MOC_LITERAL(194, 9), // "direction" |
| 53 | QT_MOC_LITERAL(204, 9), // "Direction" |
| 54 | QT_MOC_LITERAL(214, 9), // "loopCount" |
| 55 | QT_MOC_LITERAL(224, 11), // "easingCurve" |
| 56 | QT_MOC_LITERAL(236, 12) // "QEasingCurve" |
| 57 | |
| 58 | }, |
| 59 | "QTimeLine\0valueChanged\0\0x\0frameChanged\0" |
| 60 | "stateChanged\0QTimeLine::State\0newState\0" |
| 61 | "finished\0start\0resume\0stop\0setPaused\0" |
| 62 | "paused\0setCurrentTime\0msec\0toggleDirection\0" |
| 63 | "duration\0updateInterval\0currentTime\0" |
| 64 | "direction\0Direction\0loopCount\0easingCurve\0" |
| 65 | "QEasingCurve" |
| 66 | }; |
| 67 | #undef QT_MOC_LITERAL |
| 68 | |
| 69 | static const uint qt_meta_data_QTimeLine[] = { |
| 70 | |
| 71 | // content: |
| 72 | 9, // revision |
| 73 | 0, // classname |
| 74 | 0, 0, // classinfo |
| 75 | 10, 14, // methods |
| 76 | 6, 94, // properties |
| 77 | 0, 0, // enums/sets |
| 78 | 0, 0, // constructors |
| 79 | 0, // flags |
| 80 | 4, // signalCount |
| 81 | |
| 82 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
| 83 | 1, 1, 74, 2, 0x06, 6 /* Public */, |
| 84 | 4, 1, 77, 2, 0x06, 8 /* Public */, |
| 85 | 5, 1, 80, 2, 0x06, 10 /* Public */, |
| 86 | 8, 0, 83, 2, 0x06, 12 /* Public */, |
| 87 | |
| 88 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
| 89 | 9, 0, 84, 2, 0x0a, 13 /* Public */, |
| 90 | 10, 0, 85, 2, 0x0a, 14 /* Public */, |
| 91 | 11, 0, 86, 2, 0x0a, 15 /* Public */, |
| 92 | 12, 1, 87, 2, 0x0a, 16 /* Public */, |
| 93 | 14, 1, 90, 2, 0x0a, 18 /* Public */, |
| 94 | 16, 0, 93, 2, 0x0a, 20 /* Public */, |
| 95 | |
| 96 | // signals: parameters |
| 97 | QMetaType::Void, QMetaType::QReal, 3, |
| 98 | QMetaType::Void, QMetaType::Int, 2, |
| 99 | QMetaType::Void, 0x80000000 | 6, 7, |
| 100 | QMetaType::Void, |
| 101 | |
| 102 | // slots: parameters |
| 103 | QMetaType::Void, |
| 104 | QMetaType::Void, |
| 105 | QMetaType::Void, |
| 106 | QMetaType::Void, QMetaType::Bool, 13, |
| 107 | QMetaType::Void, QMetaType::Int, 15, |
| 108 | QMetaType::Void, |
| 109 | |
| 110 | // properties: name, type, flags |
| 111 | 17, QMetaType::Int, 0x00015103, uint(-1), 0, |
| 112 | 18, QMetaType::Int, 0x00015103, uint(-1), 0, |
| 113 | 19, QMetaType::Int, 0x00015103, uint(-1), 0, |
| 114 | 20, 0x80000000 | 21, 0x0001510b, uint(-1), 0, |
| 115 | 22, QMetaType::Int, 0x00015103, uint(-1), 0, |
| 116 | 23, 0x80000000 | 24, 0x0001510b, uint(-1), 0, |
| 117 | |
| 118 | 0 // eod |
| 119 | }; |
| 120 | |
| 121 | void QTimeLine::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 122 | { |
| 123 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 124 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 125 | auto *_t = static_cast<QTimeLine *>(_o); |
| 126 | Q_UNUSED(_t) |
| 127 | switch (_id) { |
| 128 | case 0: _t->valueChanged((*reinterpret_cast< qreal(*)>(_a[1])), QPrivateSignal()); break; |
| 129 | case 1: _t->frameChanged((*reinterpret_cast< int(*)>(_a[1])), QPrivateSignal()); break; |
| 130 | case 2: _t->stateChanged((*reinterpret_cast< QTimeLine::State(*)>(_a[1])), QPrivateSignal()); break; |
| 131 | case 3: _t->finished(QPrivateSignal()); break; |
| 132 | case 4: _t->start(); break; |
| 133 | case 5: _t->resume(); break; |
| 134 | case 6: _t->stop(); break; |
| 135 | case 7: _t->setPaused((*reinterpret_cast< bool(*)>(_a[1]))); break; |
| 136 | case 8: _t->setCurrentTime((*reinterpret_cast< int(*)>(_a[1]))); break; |
| 137 | case 9: _t->toggleDirection(); break; |
| 138 | default: ; |
| 139 | } |
| 140 | } else if (_c == QMetaObject::IndexOfMethod) { |
| 141 | int *result = reinterpret_cast<int *>(_a[0]); |
| 142 | { |
| 143 | using _t = void (QTimeLine::*)(qreal , QPrivateSignal); |
| 144 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTimeLine::valueChanged)) { |
| 145 | *result = 0; |
| 146 | return; |
| 147 | } |
| 148 | } |
| 149 | { |
| 150 | using _t = void (QTimeLine::*)(int , QPrivateSignal); |
| 151 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTimeLine::frameChanged)) { |
| 152 | *result = 1; |
| 153 | return; |
| 154 | } |
| 155 | } |
| 156 | { |
| 157 | using _t = void (QTimeLine::*)(QTimeLine::State , QPrivateSignal); |
| 158 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTimeLine::stateChanged)) { |
| 159 | *result = 2; |
| 160 | return; |
| 161 | } |
| 162 | } |
| 163 | { |
| 164 | using _t = void (QTimeLine::*)(QPrivateSignal); |
| 165 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTimeLine::finished)) { |
| 166 | *result = 3; |
| 167 | return; |
| 168 | } |
| 169 | } |
| 170 | } |
| 171 | #ifndef QT_NO_PROPERTIES |
| 172 | else if (_c == QMetaObject::ReadProperty) { |
| 173 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 174 | auto *_t = static_cast<QTimeLine *>(_o); |
| 175 | Q_UNUSED(_t) |
| 176 | void *_v = _a[0]; |
| 177 | switch (_id) { |
| 178 | case 0: *reinterpret_cast< int*>(_v) = _t->duration(); break; |
| 179 | case 1: *reinterpret_cast< int*>(_v) = _t->updateInterval(); break; |
| 180 | case 2: *reinterpret_cast< int*>(_v) = _t->currentTime(); break; |
| 181 | case 3: *reinterpret_cast< Direction*>(_v) = _t->direction(); break; |
| 182 | case 4: *reinterpret_cast< int*>(_v) = _t->loopCount(); break; |
| 183 | case 5: *reinterpret_cast< QEasingCurve*>(_v) = _t->easingCurve(); break; |
| 184 | default: break; |
| 185 | } |
| 186 | } else if (_c == QMetaObject::WriteProperty) { |
| 187 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 188 | auto *_t = static_cast<QTimeLine *>(_o); |
| 189 | Q_UNUSED(_t) |
| 190 | void *_v = _a[0]; |
| 191 | switch (_id) { |
| 192 | case 0: _t->setDuration(*reinterpret_cast< int*>(_v)); break; |
| 193 | case 1: _t->setUpdateInterval(*reinterpret_cast< int*>(_v)); break; |
| 194 | case 2: _t->setCurrentTime(*reinterpret_cast< int*>(_v)); break; |
| 195 | case 3: _t->setDirection(*reinterpret_cast< Direction*>(_v)); break; |
| 196 | case 4: _t->setLoopCount(*reinterpret_cast< int*>(_v)); break; |
| 197 | case 5: _t->setEasingCurve(*reinterpret_cast< QEasingCurve*>(_v)); break; |
| 198 | default: break; |
| 199 | } |
| 200 | } else if (_c == QMetaObject::ResetProperty) { |
| 201 | } else if (_c == QMetaObject::BindableProperty) { |
| 202 | } |
| 203 | #endif // QT_NO_PROPERTIES |
| 204 | } |
| 205 | |
| 206 | const QMetaObject QTimeLine::staticMetaObject = { { |
| 207 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
| 208 | qt_meta_stringdata_QTimeLine.offsetsAndSize, |
| 209 | qt_meta_data_QTimeLine, |
| 210 | qt_static_metacall, |
| 211 | nullptr, |
| 212 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QTimeLine_t |
| 213 | , 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<QEasingCurve, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QTimeLine::State, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
| 214 | , 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<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
| 215 | |
| 216 | |
| 217 | >, |
| 218 | nullptr |
| 219 | } }; |
| 220 | |
| 221 | |
| 222 | const QMetaObject *QTimeLine::metaObject() const |
| 223 | { |
| 224 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 225 | } |
| 226 | |
| 227 | void *QTimeLine::qt_metacast(const char *_clname) |
| 228 | { |
| 229 | if (!_clname) return nullptr; |
| 230 | if (!strcmp(_clname, qt_meta_stringdata_QTimeLine.stringdata0)) |
| 231 | return static_cast<void*>(this); |
| 232 | return QObject::qt_metacast(_clname); |
| 233 | } |
| 234 | |
| 235 | int QTimeLine::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
| 236 | { |
| 237 | _id = QObject::qt_metacall(_c, _id, _a); |
| 238 | if (_id < 0) |
| 239 | return _id; |
| 240 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 241 | if (_id < 10) |
| 242 | qt_static_metacall(this, _c, _id, _a); |
| 243 | _id -= 10; |
| 244 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 245 | if (_id < 10) |
| 246 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
| 247 | _id -= 10; |
| 248 | } |
| 249 | #ifndef QT_NO_PROPERTIES |
| 250 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
| 251 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
| 252 | || _c == QMetaObject::RegisterPropertyMetaType) { |
| 253 | qt_static_metacall(this, _c, _id, _a); |
| 254 | _id -= 6; |
| 255 | } |
| 256 | #endif // QT_NO_PROPERTIES |
| 257 | return _id; |
| 258 | } |
| 259 | |
| 260 | // SIGNAL 0 |
| 261 | void QTimeLine::valueChanged(qreal _t1, QPrivateSignal _t2) |
| 262 | { |
| 263 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) }; |
| 264 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
| 265 | } |
| 266 | |
| 267 | // SIGNAL 1 |
| 268 | void QTimeLine::frameChanged(int _t1, QPrivateSignal _t2) |
| 269 | { |
| 270 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) }; |
| 271 | QMetaObject::activate(this, &staticMetaObject, 1, _a); |
| 272 | } |
| 273 | |
| 274 | // SIGNAL 2 |
| 275 | void QTimeLine::stateChanged(QTimeLine::State _t1, QPrivateSignal _t2) |
| 276 | { |
| 277 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) }; |
| 278 | QMetaObject::activate(this, &staticMetaObject, 2, _a); |
| 279 | } |
| 280 | |
| 281 | // SIGNAL 3 |
| 282 | void QTimeLine::finished(QPrivateSignal _t1) |
| 283 | { |
| 284 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
| 285 | QMetaObject::activate(this, &staticMetaObject, 3, _a); |
| 286 | } |
| 287 | QT_WARNING_POP |
| 288 | QT_END_MOC_NAMESPACE |
| 289 | |