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