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