1/****************************************************************************
2** Meta object code from reading C++ file 'qmdiarea.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/qmdiarea.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qmdiarea.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_QMdiArea_t {
25 const uint offsetsAndSize[76];
26 char stringdata0[574];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QMdiArea_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QMdiArea_t qt_meta_stringdata_QMdiArea = {
31 {
32QT_MOC_LITERAL(0, 8), // "QMdiArea"
33QT_MOC_LITERAL(9, 18), // "subWindowActivated"
34QT_MOC_LITERAL(28, 0), // ""
35QT_MOC_LITERAL(29, 14), // "QMdiSubWindow*"
36QT_MOC_LITERAL(44, 18), // "setActiveSubWindow"
37QT_MOC_LITERAL(63, 6), // "window"
38QT_MOC_LITERAL(70, 14), // "tileSubWindows"
39QT_MOC_LITERAL(85, 17), // "cascadeSubWindows"
40QT_MOC_LITERAL(103, 20), // "closeActiveSubWindow"
41QT_MOC_LITERAL(124, 18), // "closeAllSubWindows"
42QT_MOC_LITERAL(143, 21), // "activateNextSubWindow"
43QT_MOC_LITERAL(165, 25), // "activatePreviousSubWindow"
44QT_MOC_LITERAL(191, 13), // "setupViewport"
45QT_MOC_LITERAL(205, 8), // "QWidget*"
46QT_MOC_LITERAL(214, 8), // "viewport"
47QT_MOC_LITERAL(223, 23), // "_q_deactivateAllWindows"
48QT_MOC_LITERAL(247, 28), // "_q_processWindowStateChanged"
49QT_MOC_LITERAL(276, 16), // "Qt::WindowStates"
50QT_MOC_LITERAL(293, 20), // "_q_currentTabChanged"
51QT_MOC_LITERAL(314, 11), // "_q_closeTab"
52QT_MOC_LITERAL(326, 10), // "_q_moveTab"
53QT_MOC_LITERAL(337, 10), // "background"
54QT_MOC_LITERAL(348, 15), // "activationOrder"
55QT_MOC_LITERAL(364, 11), // "WindowOrder"
56QT_MOC_LITERAL(376, 8), // "viewMode"
57QT_MOC_LITERAL(385, 8), // "ViewMode"
58QT_MOC_LITERAL(394, 12), // "documentMode"
59QT_MOC_LITERAL(407, 12), // "tabsClosable"
60QT_MOC_LITERAL(420, 11), // "tabsMovable"
61QT_MOC_LITERAL(432, 8), // "tabShape"
62QT_MOC_LITERAL(441, 20), // "QTabWidget::TabShape"
63QT_MOC_LITERAL(462, 11), // "tabPosition"
64QT_MOC_LITERAL(474, 23), // "QTabWidget::TabPosition"
65QT_MOC_LITERAL(498, 13), // "CreationOrder"
66QT_MOC_LITERAL(512, 13), // "StackingOrder"
67QT_MOC_LITERAL(526, 22), // "ActivationHistoryOrder"
68QT_MOC_LITERAL(549, 13), // "SubWindowView"
69QT_MOC_LITERAL(563, 10) // "TabbedView"
70
71 },
72 "QMdiArea\0subWindowActivated\0\0"
73 "QMdiSubWindow*\0setActiveSubWindow\0"
74 "window\0tileSubWindows\0cascadeSubWindows\0"
75 "closeActiveSubWindow\0closeAllSubWindows\0"
76 "activateNextSubWindow\0activatePreviousSubWindow\0"
77 "setupViewport\0QWidget*\0viewport\0"
78 "_q_deactivateAllWindows\0"
79 "_q_processWindowStateChanged\0"
80 "Qt::WindowStates\0_q_currentTabChanged\0"
81 "_q_closeTab\0_q_moveTab\0background\0"
82 "activationOrder\0WindowOrder\0viewMode\0"
83 "ViewMode\0documentMode\0tabsClosable\0"
84 "tabsMovable\0tabShape\0QTabWidget::TabShape\0"
85 "tabPosition\0QTabWidget::TabPosition\0"
86 "CreationOrder\0StackingOrder\0"
87 "ActivationHistoryOrder\0SubWindowView\0"
88 "TabbedView"
89};
90#undef QT_MOC_LITERAL
91
92static const uint qt_meta_data_QMdiArea[] = {
93
94 // content:
95 9, // revision
96 0, // classname
97 0, 0, // classinfo
98 14, 14, // methods
99 8, 130, // properties
100 2, 170, // enums/sets
101 0, 0, // constructors
102 0, // flags
103 1, // signalCount
104
105 // signals: name, argc, parameters, tag, flags, initial metatype offsets
106 1, 1, 98, 2, 0x06, 8 /* Public */,
107
108 // slots: name, argc, parameters, tag, flags, initial metatype offsets
109 4, 1, 101, 2, 0x0a, 10 /* Public */,
110 6, 0, 104, 2, 0x0a, 12 /* Public */,
111 7, 0, 105, 2, 0x0a, 13 /* Public */,
112 8, 0, 106, 2, 0x0a, 14 /* Public */,
113 9, 0, 107, 2, 0x0a, 15 /* Public */,
114 10, 0, 108, 2, 0x0a, 16 /* Public */,
115 11, 0, 109, 2, 0x0a, 17 /* Public */,
116 12, 1, 110, 2, 0x09, 18 /* Protected */,
117 15, 0, 113, 2, 0x08, 20 /* Private */,
118 16, 2, 114, 2, 0x08, 21 /* Private */,
119 18, 1, 119, 2, 0x08, 24 /* Private */,
120 19, 1, 122, 2, 0x08, 26 /* Private */,
121 20, 2, 125, 2, 0x08, 28 /* Private */,
122
123 // signals: parameters
124 QMetaType::Void, 0x80000000 | 3, 2,
125
126 // slots: parameters
127 QMetaType::Void, 0x80000000 | 3, 5,
128 QMetaType::Void,
129 QMetaType::Void,
130 QMetaType::Void,
131 QMetaType::Void,
132 QMetaType::Void,
133 QMetaType::Void,
134 QMetaType::Void, 0x80000000 | 13, 14,
135 QMetaType::Void,
136 QMetaType::Void, 0x80000000 | 17, 0x80000000 | 17, 2, 2,
137 QMetaType::Void, QMetaType::Int, 2,
138 QMetaType::Void, QMetaType::Int, 2,
139 QMetaType::Void, QMetaType::Int, QMetaType::Int, 2, 2,
140
141 // properties: name, type, flags
142 21, QMetaType::QBrush, 0x00015103, uint(-1), 0,
143 22, 0x80000000 | 23, 0x0001510b, uint(-1), 0,
144 24, 0x80000000 | 25, 0x0001510b, uint(-1), 0,
145 26, QMetaType::Bool, 0x00015103, uint(-1), 0,
146 27, QMetaType::Bool, 0x00015103, uint(-1), 0,
147 28, QMetaType::Bool, 0x00015103, uint(-1), 0,
148 29, 0x80000000 | 30, 0x0001510b, uint(-1), 0,
149 31, 0x80000000 | 32, 0x0001510b, uint(-1), 0,
150
151 // enums: name, alias, flags, count, data
152 23, 23, 0x0, 3, 180,
153 25, 25, 0x0, 2, 186,
154
155 // enum data: key, value
156 33, uint(QMdiArea::CreationOrder),
157 34, uint(QMdiArea::StackingOrder),
158 35, uint(QMdiArea::ActivationHistoryOrder),
159 36, uint(QMdiArea::SubWindowView),
160 37, uint(QMdiArea::TabbedView),
161
162 0 // eod
163};
164
165void QMdiArea::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
166{
167 if (_c == QMetaObject::InvokeMetaMethod) {
168 Q_ASSERT(staticMetaObject.cast(_o));
169 auto *_t = static_cast<QMdiArea *>(_o);
170 Q_UNUSED(_t)
171 switch (_id) {
172 case 0: _t->subWindowActivated((*reinterpret_cast< QMdiSubWindow*(*)>(_a[1]))); break;
173 case 1: _t->setActiveSubWindow((*reinterpret_cast< QMdiSubWindow*(*)>(_a[1]))); break;
174 case 2: _t->tileSubWindows(); break;
175 case 3: _t->cascadeSubWindows(); break;
176 case 4: _t->closeActiveSubWindow(); break;
177 case 5: _t->closeAllSubWindows(); break;
178 case 6: _t->activateNextSubWindow(); break;
179 case 7: _t->activatePreviousSubWindow(); break;
180 case 8: _t->setupViewport((*reinterpret_cast< QWidget*(*)>(_a[1]))); break;
181 case 9: _t->d_func()->_q_deactivateAllWindows(); break;
182 case 10: _t->d_func()->_q_processWindowStateChanged((*reinterpret_cast< Qt::WindowStates(*)>(_a[1])),(*reinterpret_cast< Qt::WindowStates(*)>(_a[2]))); break;
183 case 11: _t->d_func()->_q_currentTabChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
184 case 12: _t->d_func()->_q_closeTab((*reinterpret_cast< int(*)>(_a[1]))); break;
185 case 13: _t->d_func()->_q_moveTab((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
186 default: ;
187 }
188 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
189 switch (_id) {
190 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
191 case 8:
192 switch (*reinterpret_cast<int*>(_a[1])) {
193 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
194 case 0:
195 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QWidget* >(); break;
196 }
197 break;
198 }
199 } else if (_c == QMetaObject::IndexOfMethod) {
200 int *result = reinterpret_cast<int *>(_a[0]);
201 {
202 using _t = void (QMdiArea::*)(QMdiSubWindow * );
203 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QMdiArea::subWindowActivated)) {
204 *result = 0;
205 return;
206 }
207 }
208 }
209#ifndef QT_NO_PROPERTIES
210 else if (_c == QMetaObject::ReadProperty) {
211 Q_ASSERT(staticMetaObject.cast(_o));
212 auto *_t = static_cast<QMdiArea *>(_o);
213 Q_UNUSED(_t)
214 void *_v = _a[0];
215 switch (_id) {
216 case 0: *reinterpret_cast< QBrush*>(_v) = _t->background(); break;
217 case 1: *reinterpret_cast< WindowOrder*>(_v) = _t->activationOrder(); break;
218 case 2: *reinterpret_cast< ViewMode*>(_v) = _t->viewMode(); break;
219 case 3: *reinterpret_cast< bool*>(_v) = _t->documentMode(); break;
220 case 4: *reinterpret_cast< bool*>(_v) = _t->tabsClosable(); break;
221 case 5: *reinterpret_cast< bool*>(_v) = _t->tabsMovable(); break;
222 case 6: *reinterpret_cast< QTabWidget::TabShape*>(_v) = _t->tabShape(); break;
223 case 7: *reinterpret_cast< QTabWidget::TabPosition*>(_v) = _t->tabPosition(); break;
224 default: break;
225 }
226 } else if (_c == QMetaObject::WriteProperty) {
227 Q_ASSERT(staticMetaObject.cast(_o));
228 auto *_t = static_cast<QMdiArea *>(_o);
229 Q_UNUSED(_t)
230 void *_v = _a[0];
231 switch (_id) {
232 case 0: _t->setBackground(*reinterpret_cast< QBrush*>(_v)); break;
233 case 1: _t->setActivationOrder(*reinterpret_cast< WindowOrder*>(_v)); break;
234 case 2: _t->setViewMode(*reinterpret_cast< ViewMode*>(_v)); break;
235 case 3: _t->setDocumentMode(*reinterpret_cast< bool*>(_v)); break;
236 case 4: _t->setTabsClosable(*reinterpret_cast< bool*>(_v)); break;
237 case 5: _t->setTabsMovable(*reinterpret_cast< bool*>(_v)); break;
238 case 6: _t->setTabShape(*reinterpret_cast< QTabWidget::TabShape*>(_v)); break;
239 case 7: _t->setTabPosition(*reinterpret_cast< QTabWidget::TabPosition*>(_v)); break;
240 default: break;
241 }
242 } else if (_c == QMetaObject::ResetProperty) {
243 } else if (_c == QMetaObject::BindableProperty) {
244 }
245#endif // QT_NO_PROPERTIES
246}
247
248static const QMetaObject::SuperData qt_meta_extradata_QMdiArea[] = {
249 QMetaObject::SuperData::link<QTabWidget::staticMetaObject>(),
250 nullptr
251};
252
253const QMetaObject QMdiArea::staticMetaObject = { {
254 QMetaObject::SuperData::link<QAbstractScrollArea::staticMetaObject>(),
255 qt_meta_stringdata_QMdiArea.offsetsAndSize,
256 qt_meta_data_QMdiArea,
257 qt_static_metacall,
258 qt_meta_extradata_QMdiArea,
259qt_incomplete_metaTypeArray<qt_meta_stringdata_QMdiArea_t
260, QtPrivate::TypeAndForceComplete<QBrush, std::true_type>, QtPrivate::TypeAndForceComplete<WindowOrder, std::true_type>, QtPrivate::TypeAndForceComplete<ViewMode, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QTabWidget::TabShape, std::true_type>, QtPrivate::TypeAndForceComplete<QTabWidget::TabPosition, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QMdiSubWindow *, std::false_type>
261, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QMdiSubWindow *, 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>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QWidget *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::WindowStates, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::WindowStates, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>
262
263
264>,
265 nullptr
266} };
267
268
269const QMetaObject *QMdiArea::metaObject() const
270{
271 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
272}
273
274void *QMdiArea::qt_metacast(const char *_clname)
275{
276 if (!_clname) return nullptr;
277 if (!strcmp(_clname, qt_meta_stringdata_QMdiArea.stringdata0))
278 return static_cast<void*>(this);
279 return QAbstractScrollArea::qt_metacast(_clname);
280}
281
282int QMdiArea::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
283{
284 _id = QAbstractScrollArea::qt_metacall(_c, _id, _a);
285 if (_id < 0)
286 return _id;
287 if (_c == QMetaObject::InvokeMetaMethod) {
288 if (_id < 14)
289 qt_static_metacall(this, _c, _id, _a);
290 _id -= 14;
291 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
292 if (_id < 14)
293 qt_static_metacall(this, _c, _id, _a);
294 _id -= 14;
295 }
296#ifndef QT_NO_PROPERTIES
297 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
298 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
299 || _c == QMetaObject::RegisterPropertyMetaType) {
300 qt_static_metacall(this, _c, _id, _a);
301 _id -= 8;
302 }
303#endif // QT_NO_PROPERTIES
304 return _id;
305}
306
307// SIGNAL 0
308void QMdiArea::subWindowActivated(QMdiSubWindow * _t1)
309{
310 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
311 QMetaObject::activate(this, &staticMetaObject, 0, _a);
312}
313QT_WARNING_POP
314QT_END_MOC_NAMESPACE
315