1/****************************************************************************
2** Meta object code from reading C++ file 'qmainwindow.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/qmainwindow.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qmainwindow.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_QMainWindow_t {
25 const uint offsetsAndSize[60];
26 char stringdata0[454];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QMainWindow_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QMainWindow_t qt_meta_stringdata_QMainWindow = {
31 {
32QT_MOC_LITERAL(0, 11), // "QMainWindow"
33QT_MOC_LITERAL(12, 15), // "iconSizeChanged"
34QT_MOC_LITERAL(28, 0), // ""
35QT_MOC_LITERAL(29, 8), // "iconSize"
36QT_MOC_LITERAL(38, 22), // "toolButtonStyleChanged"
37QT_MOC_LITERAL(61, 19), // "Qt::ToolButtonStyle"
38QT_MOC_LITERAL(81, 15), // "toolButtonStyle"
39QT_MOC_LITERAL(97, 27), // "tabifiedDockWidgetActivated"
40QT_MOC_LITERAL(125, 12), // "QDockWidget*"
41QT_MOC_LITERAL(138, 10), // "dockWidget"
42QT_MOC_LITERAL(149, 11), // "setAnimated"
43QT_MOC_LITERAL(161, 7), // "enabled"
44QT_MOC_LITERAL(169, 21), // "setDockNestingEnabled"
45QT_MOC_LITERAL(191, 30), // "setUnifiedTitleAndToolBarOnMac"
46QT_MOC_LITERAL(222, 3), // "set"
47QT_MOC_LITERAL(226, 8), // "animated"
48QT_MOC_LITERAL(235, 12), // "documentMode"
49QT_MOC_LITERAL(248, 8), // "tabShape"
50QT_MOC_LITERAL(257, 20), // "QTabWidget::TabShape"
51QT_MOC_LITERAL(278, 18), // "dockNestingEnabled"
52QT_MOC_LITERAL(297, 11), // "dockOptions"
53QT_MOC_LITERAL(309, 11), // "DockOptions"
54QT_MOC_LITERAL(321, 27), // "unifiedTitleAndToolBarOnMac"
55QT_MOC_LITERAL(349, 10), // "DockOption"
56QT_MOC_LITERAL(360, 13), // "AnimatedDocks"
57QT_MOC_LITERAL(374, 16), // "AllowNestedDocks"
58QT_MOC_LITERAL(391, 16), // "AllowTabbedDocks"
59QT_MOC_LITERAL(408, 16), // "ForceTabbedDocks"
60QT_MOC_LITERAL(425, 12), // "VerticalTabs"
61QT_MOC_LITERAL(438, 15) // "GroupedDragging"
62
63 },
64 "QMainWindow\0iconSizeChanged\0\0iconSize\0"
65 "toolButtonStyleChanged\0Qt::ToolButtonStyle\0"
66 "toolButtonStyle\0tabifiedDockWidgetActivated\0"
67 "QDockWidget*\0dockWidget\0setAnimated\0"
68 "enabled\0setDockNestingEnabled\0"
69 "setUnifiedTitleAndToolBarOnMac\0set\0"
70 "animated\0documentMode\0tabShape\0"
71 "QTabWidget::TabShape\0dockNestingEnabled\0"
72 "dockOptions\0DockOptions\0"
73 "unifiedTitleAndToolBarOnMac\0DockOption\0"
74 "AnimatedDocks\0AllowNestedDocks\0"
75 "AllowTabbedDocks\0ForceTabbedDocks\0"
76 "VerticalTabs\0GroupedDragging"
77};
78#undef QT_MOC_LITERAL
79
80static const uint qt_meta_data_QMainWindow[] = {
81
82 // content:
83 9, // revision
84 0, // classname
85 0, 0, // classinfo
86 6, 14, // methods
87 8, 68, // properties
88 2, 108, // enums/sets
89 0, 0, // constructors
90 0, // flags
91 3, // signalCount
92
93 // signals: name, argc, parameters, tag, flags, initial metatype offsets
94 1, 1, 50, 2, 0x06, 8 /* Public */,
95 4, 1, 53, 2, 0x06, 10 /* Public */,
96 7, 1, 56, 2, 0x06, 12 /* Public */,
97
98 // slots: name, argc, parameters, tag, flags, initial metatype offsets
99 10, 1, 59, 2, 0x0a, 14 /* Public */,
100 12, 1, 62, 2, 0x0a, 16 /* Public */,
101 13, 1, 65, 2, 0x0a, 18 /* Public */,
102
103 // signals: parameters
104 QMetaType::Void, QMetaType::QSize, 3,
105 QMetaType::Void, 0x80000000 | 5, 6,
106 QMetaType::Void, 0x80000000 | 8, 9,
107
108 // slots: parameters
109 QMetaType::Void, QMetaType::Bool, 11,
110 QMetaType::Void, QMetaType::Bool, 11,
111 QMetaType::Void, QMetaType::Bool, 14,
112
113 // properties: name, type, flags
114 3, QMetaType::QSize, 0x00015103, uint(-1), 0,
115 6, 0x80000000 | 5, 0x0001510b, uint(-1), 0,
116 15, QMetaType::Bool, 0x00015103, uint(-1), 0,
117 16, QMetaType::Bool, 0x00015103, uint(-1), 0,
118 17, 0x80000000 | 18, 0x0001510b, uint(-1), 0,
119 19, QMetaType::Bool, 0x00015103, uint(-1), 0,
120 20, 0x80000000 | 21, 0x0001510b, uint(-1), 0,
121 22, QMetaType::Bool, 0x00015103, uint(-1), 0,
122
123 // enums: name, alias, flags, count, data
124 23, 23, 0x0, 6, 118,
125 21, 23, 0x1, 6, 130,
126
127 // enum data: key, value
128 24, uint(QMainWindow::AnimatedDocks),
129 25, uint(QMainWindow::AllowNestedDocks),
130 26, uint(QMainWindow::AllowTabbedDocks),
131 27, uint(QMainWindow::ForceTabbedDocks),
132 28, uint(QMainWindow::VerticalTabs),
133 29, uint(QMainWindow::GroupedDragging),
134 24, uint(QMainWindow::AnimatedDocks),
135 25, uint(QMainWindow::AllowNestedDocks),
136 26, uint(QMainWindow::AllowTabbedDocks),
137 27, uint(QMainWindow::ForceTabbedDocks),
138 28, uint(QMainWindow::VerticalTabs),
139 29, uint(QMainWindow::GroupedDragging),
140
141 0 // eod
142};
143
144void QMainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
145{
146 if (_c == QMetaObject::InvokeMetaMethod) {
147 Q_ASSERT(staticMetaObject.cast(_o));
148 auto *_t = static_cast<QMainWindow *>(_o);
149 Q_UNUSED(_t)
150 switch (_id) {
151 case 0: _t->iconSizeChanged((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
152 case 1: _t->toolButtonStyleChanged((*reinterpret_cast< Qt::ToolButtonStyle(*)>(_a[1]))); break;
153 case 2: _t->tabifiedDockWidgetActivated((*reinterpret_cast< QDockWidget*(*)>(_a[1]))); break;
154 case 3: _t->setAnimated((*reinterpret_cast< bool(*)>(_a[1]))); break;
155 case 4: _t->setDockNestingEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
156 case 5: _t->setUnifiedTitleAndToolBarOnMac((*reinterpret_cast< bool(*)>(_a[1]))); break;
157 default: ;
158 }
159 } else if (_c == QMetaObject::IndexOfMethod) {
160 int *result = reinterpret_cast<int *>(_a[0]);
161 {
162 using _t = void (QMainWindow::*)(const QSize & );
163 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QMainWindow::iconSizeChanged)) {
164 *result = 0;
165 return;
166 }
167 }
168 {
169 using _t = void (QMainWindow::*)(Qt::ToolButtonStyle );
170 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QMainWindow::toolButtonStyleChanged)) {
171 *result = 1;
172 return;
173 }
174 }
175 {
176 using _t = void (QMainWindow::*)(QDockWidget * );
177 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QMainWindow::tabifiedDockWidgetActivated)) {
178 *result = 2;
179 return;
180 }
181 }
182 }
183#ifndef QT_NO_PROPERTIES
184 else if (_c == QMetaObject::ReadProperty) {
185 Q_ASSERT(staticMetaObject.cast(_o));
186 auto *_t = static_cast<QMainWindow *>(_o);
187 Q_UNUSED(_t)
188 void *_v = _a[0];
189 switch (_id) {
190 case 0: *reinterpret_cast< QSize*>(_v) = _t->iconSize(); break;
191 case 1: *reinterpret_cast< Qt::ToolButtonStyle*>(_v) = _t->toolButtonStyle(); break;
192 case 2: *reinterpret_cast< bool*>(_v) = _t->isAnimated(); break;
193 case 3: *reinterpret_cast< bool*>(_v) = _t->documentMode(); break;
194 case 4: *reinterpret_cast< QTabWidget::TabShape*>(_v) = _t->tabShape(); break;
195 case 5: *reinterpret_cast< bool*>(_v) = _t->isDockNestingEnabled(); break;
196 case 6: *reinterpret_cast<int*>(_v) = QFlag(_t->dockOptions()); break;
197 case 7: *reinterpret_cast< bool*>(_v) = _t->unifiedTitleAndToolBarOnMac(); break;
198 default: break;
199 }
200 } else if (_c == QMetaObject::WriteProperty) {
201 Q_ASSERT(staticMetaObject.cast(_o));
202 auto *_t = static_cast<QMainWindow *>(_o);
203 Q_UNUSED(_t)
204 void *_v = _a[0];
205 switch (_id) {
206 case 0: _t->setIconSize(*reinterpret_cast< QSize*>(_v)); break;
207 case 1: _t->setToolButtonStyle(*reinterpret_cast< Qt::ToolButtonStyle*>(_v)); break;
208 case 2: _t->setAnimated(*reinterpret_cast< bool*>(_v)); break;
209 case 3: _t->setDocumentMode(*reinterpret_cast< bool*>(_v)); break;
210 case 4: _t->setTabShape(*reinterpret_cast< QTabWidget::TabShape*>(_v)); break;
211 case 5: _t->setDockNestingEnabled(*reinterpret_cast< bool*>(_v)); break;
212 case 6: _t->setDockOptions(QFlag(*reinterpret_cast<int*>(_v))); break;
213 case 7: _t->setUnifiedTitleAndToolBarOnMac(*reinterpret_cast< bool*>(_v)); break;
214 default: break;
215 }
216 } else if (_c == QMetaObject::ResetProperty) {
217 } else if (_c == QMetaObject::BindableProperty) {
218 }
219#endif // QT_NO_PROPERTIES
220}
221
222static const QMetaObject::SuperData qt_meta_extradata_QMainWindow[] = {
223 QMetaObject::SuperData::link<QTabWidget::staticMetaObject>(),
224 nullptr
225};
226
227const QMetaObject QMainWindow::staticMetaObject = { {
228 QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
229 qt_meta_stringdata_QMainWindow.offsetsAndSize,
230 qt_meta_data_QMainWindow,
231 qt_static_metacall,
232 qt_meta_extradata_QMainWindow,
233qt_incomplete_metaTypeArray<qt_meta_stringdata_QMainWindow_t
234, QtPrivate::TypeAndForceComplete<QSize, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::ToolButtonStyle, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QTabWidget::TabShape, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<DockOptions, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QSize &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::ToolButtonStyle, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QDockWidget *, std::false_type>
235, 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>
236
237
238>,
239 nullptr
240} };
241
242
243const QMetaObject *QMainWindow::metaObject() const
244{
245 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
246}
247
248void *QMainWindow::qt_metacast(const char *_clname)
249{
250 if (!_clname) return nullptr;
251 if (!strcmp(_clname, qt_meta_stringdata_QMainWindow.stringdata0))
252 return static_cast<void*>(this);
253 return QWidget::qt_metacast(_clname);
254}
255
256int QMainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
257{
258 _id = QWidget::qt_metacall(_c, _id, _a);
259 if (_id < 0)
260 return _id;
261 if (_c == QMetaObject::InvokeMetaMethod) {
262 if (_id < 6)
263 qt_static_metacall(this, _c, _id, _a);
264 _id -= 6;
265 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
266 if (_id < 6)
267 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
268 _id -= 6;
269 }
270#ifndef QT_NO_PROPERTIES
271 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
272 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
273 || _c == QMetaObject::RegisterPropertyMetaType) {
274 qt_static_metacall(this, _c, _id, _a);
275 _id -= 8;
276 }
277#endif // QT_NO_PROPERTIES
278 return _id;
279}
280
281// SIGNAL 0
282void QMainWindow::iconSizeChanged(const QSize & _t1)
283{
284 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
285 QMetaObject::activate(this, &staticMetaObject, 0, _a);
286}
287
288// SIGNAL 1
289void QMainWindow::toolButtonStyleChanged(Qt::ToolButtonStyle _t1)
290{
291 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
292 QMetaObject::activate(this, &staticMetaObject, 1, _a);
293}
294
295// SIGNAL 2
296void QMainWindow::tabifiedDockWidgetActivated(QDockWidget * _t1)
297{
298 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
299 QMetaObject::activate(this, &staticMetaObject, 2, _a);
300}
301QT_WARNING_POP
302QT_END_MOC_NAMESPACE
303