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