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