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