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