1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qobject.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 "../../../../src/corelib/kernel/qobject.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qobject.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_QObject_t { |
25 | const uint offsetsAndSize[16]; |
26 | char stringdata0[87]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QObject_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QObject_t qt_meta_stringdata_QObject = { |
31 | { |
32 | QT_MOC_LITERAL(0, 7), // "QObject" |
33 | QT_MOC_LITERAL(8, 9), // "destroyed" |
34 | QT_MOC_LITERAL(18, 0), // "" |
35 | QT_MOC_LITERAL(19, 17), // "objectNameChanged" |
36 | QT_MOC_LITERAL(37, 10), // "objectName" |
37 | QT_MOC_LITERAL(48, 11), // "deleteLater" |
38 | QT_MOC_LITERAL(60, 19), // "_q_reregisterTimers" |
39 | QT_MOC_LITERAL(80, 6) // "parent" |
40 | |
41 | }, |
42 | "QObject\0destroyed\0\0objectNameChanged\0" |
43 | "objectName\0deleteLater\0_q_reregisterTimers\0" |
44 | "parent" |
45 | }; |
46 | #undef QT_MOC_LITERAL |
47 | |
48 | static const uint qt_meta_data_QObject[] = { |
49 | |
50 | // content: |
51 | 9, // revision |
52 | 0, // classname |
53 | 0, 0, // classinfo |
54 | 5, 14, // methods |
55 | 1, 59, // properties |
56 | 0, 0, // enums/sets |
57 | 2, 64, // constructors |
58 | 0, // flags |
59 | 3, // signalCount |
60 | |
61 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
62 | 1, 1, 44, 2, 0x06, 1 /* Public */, |
63 | 1, 0, 47, 2, 0x26, 3 /* Public | MethodCloned */, |
64 | 3, 1, 48, 2, 0x06, 4 /* Public */, |
65 | |
66 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
67 | 5, 0, 51, 2, 0x0a, 6 /* Public */, |
68 | 6, 1, 52, 2, 0x08, 7 /* Private */, |
69 | |
70 | // signals: parameters |
71 | QMetaType::Void, QMetaType::QObjectStar, 2, |
72 | QMetaType::Void, |
73 | QMetaType::Void, QMetaType::QString, 4, |
74 | |
75 | // slots: parameters |
76 | QMetaType::Void, |
77 | QMetaType::Void, QMetaType::VoidStar, 2, |
78 | |
79 | // constructors: parameters |
80 | 0x80000000 | 2, QMetaType::QObjectStar, 7, |
81 | 0x80000000 | 2, |
82 | |
83 | // properties: name, type, flags |
84 | 4, QMetaType::QString, 0x00015103, uint(2), 0, |
85 | |
86 | // constructors: name, argc, parameters, tag, flags, initial metatype offsets |
87 | 0, 1, 55, 2, 0x0e, 9 /* Public */, |
88 | 0, 0, 58, 2, 0x2e, 10 /* Public | MethodCloned */, |
89 | |
90 | 0 // eod |
91 | }; |
92 | |
93 | void QObject::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
94 | { |
95 | if (_c == QMetaObject::CreateInstance) { |
96 | switch (_id) { |
97 | case 0: { QObject *_r = new QObject((*reinterpret_cast< QObject*(*)>(_a[1]))); |
98 | if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break; |
99 | case 1: { QObject *_r = new QObject(); |
100 | if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break; |
101 | default: break; |
102 | } |
103 | } else if (_c == QMetaObject::InvokeMetaMethod) { |
104 | Q_ASSERT(staticMetaObject.cast(_o)); |
105 | auto *_t = static_cast<QObject *>(_o); |
106 | Q_UNUSED(_t) |
107 | switch (_id) { |
108 | case 0: _t->destroyed((*reinterpret_cast< QObject*(*)>(_a[1]))); break; |
109 | case 1: _t->destroyed(); break; |
110 | case 2: _t->objectNameChanged((*reinterpret_cast< const QString(*)>(_a[1])), QPrivateSignal()); break; |
111 | case 3: _t->deleteLater(); break; |
112 | case 4: _t->d_func()->_q_reregisterTimers((*reinterpret_cast< void*(*)>(_a[1]))); break; |
113 | default: ; |
114 | } |
115 | } else if (_c == QMetaObject::IndexOfMethod) { |
116 | int *result = reinterpret_cast<int *>(_a[0]); |
117 | { |
118 | using _t = void (QObject::*)(QObject * ); |
119 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QObject::destroyed)) { |
120 | *result = 0; |
121 | return; |
122 | } |
123 | } |
124 | { |
125 | using _t = void (QObject::*)(const QString & , QPrivateSignal); |
126 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QObject::objectNameChanged)) { |
127 | *result = 2; |
128 | return; |
129 | } |
130 | } |
131 | } |
132 | #ifndef QT_NO_PROPERTIES |
133 | else if (_c == QMetaObject::ReadProperty) { |
134 | Q_ASSERT(staticMetaObject.cast(_o)); |
135 | auto *_t = static_cast<QObject *>(_o); |
136 | Q_UNUSED(_t) |
137 | void *_v = _a[0]; |
138 | switch (_id) { |
139 | case 0: *reinterpret_cast< QString*>(_v) = _t->objectName(); break; |
140 | default: break; |
141 | } |
142 | } else if (_c == QMetaObject::WriteProperty) { |
143 | Q_ASSERT(staticMetaObject.cast(_o)); |
144 | auto *_t = static_cast<QObject *>(_o); |
145 | Q_UNUSED(_t) |
146 | void *_v = _a[0]; |
147 | switch (_id) { |
148 | case 0: _t->setObjectName(*reinterpret_cast< QString*>(_v)); break; |
149 | default: break; |
150 | } |
151 | } else if (_c == QMetaObject::ResetProperty) { |
152 | } else if (_c == QMetaObject::BindableProperty) { |
153 | } |
154 | #endif // QT_NO_PROPERTIES |
155 | } |
156 | |
157 | const QMetaObject QObject::staticMetaObject = { { |
158 | nullptr, |
159 | qt_meta_stringdata_QObject.offsetsAndSize, |
160 | qt_meta_data_QObject, |
161 | qt_static_metacall, |
162 | nullptr, |
163 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QObject_t |
164 | , QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QObject *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type> |
165 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void *, std::false_type> |
166 | |
167 | , QtPrivate::TypeAndForceComplete<QObject *, std::false_type> |
168 | >, |
169 | nullptr |
170 | } }; |
171 | |
172 | |
173 | const QMetaObject *QObject::metaObject() const |
174 | { |
175 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
176 | } |
177 | |
178 | void *QObject::qt_metacast(const char *_clname) |
179 | { |
180 | if (!_clname) return nullptr; |
181 | if (!strcmp(_clname, qt_meta_stringdata_QObject.stringdata0)) |
182 | return static_cast<void*>(this); |
183 | return nullptr; |
184 | } |
185 | |
186 | int QObject::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
187 | { |
188 | if (_id < 0) |
189 | return _id; |
190 | if (_c == QMetaObject::InvokeMetaMethod) { |
191 | if (_id < 5) |
192 | qt_static_metacall(this, _c, _id, _a); |
193 | _id -= 5; |
194 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
195 | if (_id < 5) |
196 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
197 | _id -= 5; |
198 | } |
199 | #ifndef QT_NO_PROPERTIES |
200 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
201 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
202 | || _c == QMetaObject::RegisterPropertyMetaType) { |
203 | qt_static_metacall(this, _c, _id, _a); |
204 | _id -= 1; |
205 | } |
206 | #endif // QT_NO_PROPERTIES |
207 | return _id; |
208 | } |
209 | |
210 | // SIGNAL 0 |
211 | void QObject::destroyed(QObject * _t1) |
212 | { |
213 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
214 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
215 | } |
216 | |
217 | // SIGNAL 2 |
218 | void QObject::objectNameChanged(const QString & _t1, QPrivateSignal _t2) |
219 | { |
220 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) }; |
221 | QMetaObject::activate(this, &staticMetaObject, 2, _a); |
222 | } |
223 | QT_WARNING_POP |
224 | QT_END_MOC_NAMESPACE |
225 | |