1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'car.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 "car.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'car.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_Car_t { |
25 | const uint offsetsAndSize[14]; |
26 | char stringdata0[54]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_Car_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_Car_t qt_meta_stringdata_Car = { |
31 | { |
32 | QT_MOC_LITERAL(0, 3), // "Car" |
33 | QT_MOC_LITERAL(4, 7), // "crashed" |
34 | QT_MOC_LITERAL(12, 0), // "" |
35 | QT_MOC_LITERAL(13, 10), // "accelerate" |
36 | QT_MOC_LITERAL(24, 10), // "decelerate" |
37 | QT_MOC_LITERAL(35, 8), // "turnLeft" |
38 | QT_MOC_LITERAL(44, 9) // "turnRight" |
39 | |
40 | }, |
41 | "Car\0crashed\0\0accelerate\0decelerate\0" |
42 | "turnLeft\0turnRight" |
43 | }; |
44 | #undef QT_MOC_LITERAL |
45 | |
46 | static const uint qt_meta_data_Car[] = { |
47 | |
48 | // content: |
49 | 9, // revision |
50 | 0, // classname |
51 | 0, 0, // classinfo |
52 | 5, 14, // methods |
53 | 0, 0, // properties |
54 | 0, 0, // enums/sets |
55 | 0, 0, // constructors |
56 | 0, // flags |
57 | 1, // signalCount |
58 | |
59 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
60 | 1, 0, 44, 2, 0x06, 0 /* Public */, |
61 | |
62 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
63 | 3, 0, 45, 2, 0x0a, 1 /* Public */, |
64 | 4, 0, 46, 2, 0x0a, 2 /* Public */, |
65 | 5, 0, 47, 2, 0x0a, 3 /* Public */, |
66 | 6, 0, 48, 2, 0x0a, 4 /* Public */, |
67 | |
68 | // signals: parameters |
69 | QMetaType::Void, |
70 | |
71 | // slots: parameters |
72 | QMetaType::Void, |
73 | QMetaType::Void, |
74 | QMetaType::Void, |
75 | QMetaType::Void, |
76 | |
77 | 0 // eod |
78 | }; |
79 | |
80 | void Car::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
81 | { |
82 | if (_c == QMetaObject::InvokeMetaMethod) { |
83 | Q_ASSERT(staticMetaObject.cast(_o)); |
84 | auto *_t = static_cast<Car *>(_o); |
85 | Q_UNUSED(_t) |
86 | switch (_id) { |
87 | case 0: _t->crashed(); break; |
88 | case 1: _t->accelerate(); break; |
89 | case 2: _t->decelerate(); break; |
90 | case 3: _t->turnLeft(); break; |
91 | case 4: _t->turnRight(); break; |
92 | default: ; |
93 | } |
94 | } else if (_c == QMetaObject::IndexOfMethod) { |
95 | int *result = reinterpret_cast<int *>(_a[0]); |
96 | { |
97 | using _t = void (Car::*)(); |
98 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Car::crashed)) { |
99 | *result = 0; |
100 | return; |
101 | } |
102 | } |
103 | } |
104 | Q_UNUSED(_a); |
105 | } |
106 | |
107 | const QMetaObject Car::staticMetaObject = { { |
108 | QMetaObject::SuperData::link<QGraphicsObject::staticMetaObject>(), |
109 | qt_meta_stringdata_Car.offsetsAndSize, |
110 | qt_meta_data_Car, |
111 | qt_static_metacall, |
112 | nullptr, |
113 | qt_incomplete_metaTypeArray<qt_meta_stringdata_Car_t |
114 | , QtPrivate::TypeAndForceComplete<void, std::false_type> |
115 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
116 | |
117 | |
118 | >, |
119 | nullptr |
120 | } }; |
121 | |
122 | |
123 | const QMetaObject *Car::metaObject() const |
124 | { |
125 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
126 | } |
127 | |
128 | void *Car::qt_metacast(const char *_clname) |
129 | { |
130 | if (!_clname) return nullptr; |
131 | if (!strcmp(_clname, qt_meta_stringdata_Car.stringdata0)) |
132 | return static_cast<void*>(this); |
133 | return QGraphicsObject::qt_metacast(_clname); |
134 | } |
135 | |
136 | int Car::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
137 | { |
138 | _id = QGraphicsObject::qt_metacall(_c, _id, _a); |
139 | if (_id < 0) |
140 | return _id; |
141 | if (_c == QMetaObject::InvokeMetaMethod) { |
142 | if (_id < 5) |
143 | qt_static_metacall(this, _c, _id, _a); |
144 | _id -= 5; |
145 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
146 | if (_id < 5) |
147 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
148 | _id -= 5; |
149 | } |
150 | return _id; |
151 | } |
152 | |
153 | // SIGNAL 0 |
154 | void Car::crashed() |
155 | { |
156 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); |
157 | } |
158 | QT_WARNING_POP |
159 | QT_END_MOC_NAMESPACE |
160 | |