1/****************************************************************************
2** Meta object code from reading C++ file 'qtoolbar.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/qtoolbar.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qtoolbar.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_QToolBar_t {
25 const uint offsetsAndSize[58];
26 char stringdata0[404];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QToolBar_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QToolBar_t qt_meta_stringdata_QToolBar = {
31 {
32QT_MOC_LITERAL(0, 8), // "QToolBar"
33QT_MOC_LITERAL(9, 15), // "actionTriggered"
34QT_MOC_LITERAL(25, 0), // ""
35QT_MOC_LITERAL(26, 8), // "QAction*"
36QT_MOC_LITERAL(35, 6), // "action"
37QT_MOC_LITERAL(42, 14), // "movableChanged"
38QT_MOC_LITERAL(57, 7), // "movable"
39QT_MOC_LITERAL(65, 19), // "allowedAreasChanged"
40QT_MOC_LITERAL(85, 16), // "Qt::ToolBarAreas"
41QT_MOC_LITERAL(102, 12), // "allowedAreas"
42QT_MOC_LITERAL(115, 18), // "orientationChanged"
43QT_MOC_LITERAL(134, 15), // "Qt::Orientation"
44QT_MOC_LITERAL(150, 11), // "orientation"
45QT_MOC_LITERAL(162, 15), // "iconSizeChanged"
46QT_MOC_LITERAL(178, 8), // "iconSize"
47QT_MOC_LITERAL(187, 22), // "toolButtonStyleChanged"
48QT_MOC_LITERAL(210, 19), // "Qt::ToolButtonStyle"
49QT_MOC_LITERAL(230, 15), // "toolButtonStyle"
50QT_MOC_LITERAL(246, 15), // "topLevelChanged"
51QT_MOC_LITERAL(262, 8), // "topLevel"
52QT_MOC_LITERAL(271, 17), // "visibilityChanged"
53QT_MOC_LITERAL(289, 7), // "visible"
54QT_MOC_LITERAL(297, 11), // "setIconSize"
55QT_MOC_LITERAL(309, 18), // "setToolButtonStyle"
56QT_MOC_LITERAL(328, 13), // "_q_toggleView"
57QT_MOC_LITERAL(342, 17), // "_q_updateIconSize"
58QT_MOC_LITERAL(360, 24), // "_q_updateToolButtonStyle"
59QT_MOC_LITERAL(385, 8), // "floating"
60QT_MOC_LITERAL(394, 9) // "floatable"
61
62 },
63 "QToolBar\0actionTriggered\0\0QAction*\0"
64 "action\0movableChanged\0movable\0"
65 "allowedAreasChanged\0Qt::ToolBarAreas\0"
66 "allowedAreas\0orientationChanged\0"
67 "Qt::Orientation\0orientation\0iconSizeChanged\0"
68 "iconSize\0toolButtonStyleChanged\0"
69 "Qt::ToolButtonStyle\0toolButtonStyle\0"
70 "topLevelChanged\0topLevel\0visibilityChanged\0"
71 "visible\0setIconSize\0setToolButtonStyle\0"
72 "_q_toggleView\0_q_updateIconSize\0"
73 "_q_updateToolButtonStyle\0floating\0"
74 "floatable"
75};
76#undef QT_MOC_LITERAL
77
78static const uint qt_meta_data_QToolBar[] = {
79
80 // content:
81 9, // revision
82 0, // classname
83 0, 0, // classinfo
84 13, 14, // methods
85 7, 131, // properties
86 0, 0, // enums/sets
87 0, 0, // constructors
88 0, // flags
89 8, // signalCount
90
91 // signals: name, argc, parameters, tag, flags, initial metatype offsets
92 1, 1, 92, 2, 0x06, 7 /* Public */,
93 5, 1, 95, 2, 0x06, 9 /* Public */,
94 7, 1, 98, 2, 0x06, 11 /* Public */,
95 10, 1, 101, 2, 0x06, 13 /* Public */,
96 13, 1, 104, 2, 0x06, 15 /* Public */,
97 15, 1, 107, 2, 0x06, 17 /* Public */,
98 18, 1, 110, 2, 0x06, 19 /* Public */,
99 20, 1, 113, 2, 0x06, 21 /* Public */,
100
101 // slots: name, argc, parameters, tag, flags, initial metatype offsets
102 22, 1, 116, 2, 0x0a, 23 /* Public */,
103 23, 1, 119, 2, 0x0a, 25 /* Public */,
104 24, 1, 122, 2, 0x08, 27 /* Private */,
105 25, 1, 125, 2, 0x08, 29 /* Private */,
106 26, 1, 128, 2, 0x08, 31 /* Private */,
107
108 // signals: parameters
109 QMetaType::Void, 0x80000000 | 3, 4,
110 QMetaType::Void, QMetaType::Bool, 6,
111 QMetaType::Void, 0x80000000 | 8, 9,
112 QMetaType::Void, 0x80000000 | 11, 12,
113 QMetaType::Void, QMetaType::QSize, 14,
114 QMetaType::Void, 0x80000000 | 16, 17,
115 QMetaType::Void, QMetaType::Bool, 19,
116 QMetaType::Void, QMetaType::Bool, 21,
117
118 // slots: parameters
119 QMetaType::Void, QMetaType::QSize, 14,
120 QMetaType::Void, 0x80000000 | 16, 17,
121 QMetaType::Void, QMetaType::Bool, 2,
122 QMetaType::Void, QMetaType::QSize, 2,
123 QMetaType::Void, 0x80000000 | 16, 2,
124
125 // properties: name, type, flags
126 6, QMetaType::Bool, 0x00015103, uint(1), 0,
127 9, 0x80000000 | 8, 0x0001510b, uint(2), 0,
128 12, 0x80000000 | 11, 0x0001510b, uint(3), 0,
129 14, QMetaType::QSize, 0x00015103, uint(4), 0,
130 17, 0x80000000 | 16, 0x0001510b, uint(5), 0,
131 27, QMetaType::Bool, 0x00015001, uint(-1), 0,
132 28, QMetaType::Bool, 0x00015103, uint(-1), 0,
133
134 0 // eod
135};
136
137void QToolBar::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
138{
139 if (_c == QMetaObject::InvokeMetaMethod) {
140 Q_ASSERT(staticMetaObject.cast(_o));
141 auto *_t = static_cast<QToolBar *>(_o);
142 Q_UNUSED(_t)
143 switch (_id) {
144 case 0: _t->actionTriggered((*reinterpret_cast< QAction*(*)>(_a[1]))); break;
145 case 1: _t->movableChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
146 case 2: _t->allowedAreasChanged((*reinterpret_cast< Qt::ToolBarAreas(*)>(_a[1]))); break;
147 case 3: _t->orientationChanged((*reinterpret_cast< Qt::Orientation(*)>(_a[1]))); break;
148 case 4: _t->iconSizeChanged((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
149 case 5: _t->toolButtonStyleChanged((*reinterpret_cast< Qt::ToolButtonStyle(*)>(_a[1]))); break;
150 case 6: _t->topLevelChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
151 case 7: _t->visibilityChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
152 case 8: _t->setIconSize((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
153 case 9: _t->setToolButtonStyle((*reinterpret_cast< Qt::ToolButtonStyle(*)>(_a[1]))); break;
154 case 10: _t->d_func()->_q_toggleView((*reinterpret_cast< bool(*)>(_a[1]))); break;
155 case 11: _t->d_func()->_q_updateIconSize((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
156 case 12: _t->d_func()->_q_updateToolButtonStyle((*reinterpret_cast< Qt::ToolButtonStyle(*)>(_a[1]))); break;
157 default: ;
158 }
159 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
160 switch (_id) {
161 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
162 case 0:
163 switch (*reinterpret_cast<int*>(_a[1])) {
164 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
165 case 0:
166 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QAction* >(); break;
167 }
168 break;
169 }
170 } else if (_c == QMetaObject::IndexOfMethod) {
171 int *result = reinterpret_cast<int *>(_a[0]);
172 {
173 using _t = void (QToolBar::*)(QAction * );
174 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QToolBar::actionTriggered)) {
175 *result = 0;
176 return;
177 }
178 }
179 {
180 using _t = void (QToolBar::*)(bool );
181 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QToolBar::movableChanged)) {
182 *result = 1;
183 return;
184 }
185 }
186 {
187 using _t = void (QToolBar::*)(Qt::ToolBarAreas );
188 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QToolBar::allowedAreasChanged)) {
189 *result = 2;
190 return;
191 }
192 }
193 {
194 using _t = void (QToolBar::*)(Qt::Orientation );
195 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QToolBar::orientationChanged)) {
196 *result = 3;
197 return;
198 }
199 }
200 {
201 using _t = void (QToolBar::*)(const QSize & );
202 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QToolBar::iconSizeChanged)) {
203 *result = 4;
204 return;
205 }
206 }
207 {
208 using _t = void (QToolBar::*)(Qt::ToolButtonStyle );
209 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QToolBar::toolButtonStyleChanged)) {
210 *result = 5;
211 return;
212 }
213 }
214 {
215 using _t = void (QToolBar::*)(bool );
216 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QToolBar::topLevelChanged)) {
217 *result = 6;
218 return;
219 }
220 }
221 {
222 using _t = void (QToolBar::*)(bool );
223 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QToolBar::visibilityChanged)) {
224 *result = 7;
225 return;
226 }
227 }
228 }
229#ifndef QT_NO_PROPERTIES
230 else if (_c == QMetaObject::ReadProperty) {
231 Q_ASSERT(staticMetaObject.cast(_o));
232 auto *_t = static_cast<QToolBar *>(_o);
233 Q_UNUSED(_t)
234 void *_v = _a[0];
235 switch (_id) {
236 case 0: *reinterpret_cast< bool*>(_v) = _t->isMovable(); break;
237 case 1: *reinterpret_cast< Qt::ToolBarAreas*>(_v) = _t->allowedAreas(); break;
238 case 2: *reinterpret_cast< Qt::Orientation*>(_v) = _t->orientation(); break;
239 case 3: *reinterpret_cast< QSize*>(_v) = _t->iconSize(); break;
240 case 4: *reinterpret_cast< Qt::ToolButtonStyle*>(_v) = _t->toolButtonStyle(); break;
241 case 5: *reinterpret_cast< bool*>(_v) = _t->isFloating(); break;
242 case 6: *reinterpret_cast< bool*>(_v) = _t->isFloatable(); break;
243 default: break;
244 }
245 } else if (_c == QMetaObject::WriteProperty) {
246 Q_ASSERT(staticMetaObject.cast(_o));
247 auto *_t = static_cast<QToolBar *>(_o);
248 Q_UNUSED(_t)
249 void *_v = _a[0];
250 switch (_id) {
251 case 0: _t->setMovable(*reinterpret_cast< bool*>(_v)); break;
252 case 1: _t->setAllowedAreas(*reinterpret_cast< Qt::ToolBarAreas*>(_v)); break;
253 case 2: _t->setOrientation(*reinterpret_cast< Qt::Orientation*>(_v)); break;
254 case 3: _t->setIconSize(*reinterpret_cast< QSize*>(_v)); break;
255 case 4: _t->setToolButtonStyle(*reinterpret_cast< Qt::ToolButtonStyle*>(_v)); break;
256 case 6: _t->setFloatable(*reinterpret_cast< bool*>(_v)); break;
257 default: break;
258 }
259 } else if (_c == QMetaObject::ResetProperty) {
260 } else if (_c == QMetaObject::BindableProperty) {
261 }
262#endif // QT_NO_PROPERTIES
263}
264
265const QMetaObject QToolBar::staticMetaObject = { {
266 QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
267 qt_meta_stringdata_QToolBar.offsetsAndSize,
268 qt_meta_data_QToolBar,
269 qt_static_metacall,
270 nullptr,
271qt_incomplete_metaTypeArray<qt_meta_stringdata_QToolBar_t
272, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::ToolBarAreas, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::Orientation, std::true_type>, 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<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAction *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::ToolBarAreas, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::Orientation, std::false_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<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>
273, 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<bool, std::false_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>
274
275
276>,
277 nullptr
278} };
279
280
281const QMetaObject *QToolBar::metaObject() const
282{
283 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
284}
285
286void *QToolBar::qt_metacast(const char *_clname)
287{
288 if (!_clname) return nullptr;
289 if (!strcmp(_clname, qt_meta_stringdata_QToolBar.stringdata0))
290 return static_cast<void*>(this);
291 return QWidget::qt_metacast(_clname);
292}
293
294int QToolBar::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
295{
296 _id = QWidget::qt_metacall(_c, _id, _a);
297 if (_id < 0)
298 return _id;
299 if (_c == QMetaObject::InvokeMetaMethod) {
300 if (_id < 13)
301 qt_static_metacall(this, _c, _id, _a);
302 _id -= 13;
303 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
304 if (_id < 13)
305 qt_static_metacall(this, _c, _id, _a);
306 _id -= 13;
307 }
308#ifndef QT_NO_PROPERTIES
309 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
310 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
311 || _c == QMetaObject::RegisterPropertyMetaType) {
312 qt_static_metacall(this, _c, _id, _a);
313 _id -= 7;
314 }
315#endif // QT_NO_PROPERTIES
316 return _id;
317}
318
319// SIGNAL 0
320void QToolBar::actionTriggered(QAction * _t1)
321{
322 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
323 QMetaObject::activate(this, &staticMetaObject, 0, _a);
324}
325
326// SIGNAL 1
327void QToolBar::movableChanged(bool _t1)
328{
329 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
330 QMetaObject::activate(this, &staticMetaObject, 1, _a);
331}
332
333// SIGNAL 2
334void QToolBar::allowedAreasChanged(Qt::ToolBarAreas _t1)
335{
336 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
337 QMetaObject::activate(this, &staticMetaObject, 2, _a);
338}
339
340// SIGNAL 3
341void QToolBar::orientationChanged(Qt::Orientation _t1)
342{
343 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
344 QMetaObject::activate(this, &staticMetaObject, 3, _a);
345}
346
347// SIGNAL 4
348void QToolBar::iconSizeChanged(const QSize & _t1)
349{
350 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
351 QMetaObject::activate(this, &staticMetaObject, 4, _a);
352}
353
354// SIGNAL 5
355void QToolBar::toolButtonStyleChanged(Qt::ToolButtonStyle _t1)
356{
357 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
358 QMetaObject::activate(this, &staticMetaObject, 5, _a);
359}
360
361// SIGNAL 6
362void QToolBar::topLevelChanged(bool _t1)
363{
364 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
365 QMetaObject::activate(this, &staticMetaObject, 6, _a);
366}
367
368// SIGNAL 7
369void QToolBar::visibilityChanged(bool _t1)
370{
371 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
372 QMetaObject::activate(this, &staticMetaObject, 7, _a);
373}
374QT_WARNING_POP
375QT_END_MOC_NAMESPACE
376