1/****************************************************************************
2** Meta object code from reading C++ file 'qtabwidget.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/qtabwidget.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qtabwidget.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_QTabWidget_t {
25 const uint offsetsAndSize[68];
26 char stringdata0[376];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QTabWidget_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QTabWidget_t qt_meta_stringdata_QTabWidget = {
31 {
32QT_MOC_LITERAL(0, 10), // "QTabWidget"
33QT_MOC_LITERAL(11, 14), // "currentChanged"
34QT_MOC_LITERAL(26, 0), // ""
35QT_MOC_LITERAL(27, 5), // "index"
36QT_MOC_LITERAL(33, 17), // "tabCloseRequested"
37QT_MOC_LITERAL(51, 13), // "tabBarClicked"
38QT_MOC_LITERAL(65, 19), // "tabBarDoubleClicked"
39QT_MOC_LITERAL(85, 15), // "setCurrentIndex"
40QT_MOC_LITERAL(101, 16), // "setCurrentWidget"
41QT_MOC_LITERAL(118, 8), // "QWidget*"
42QT_MOC_LITERAL(127, 6), // "widget"
43QT_MOC_LITERAL(134, 10), // "_q_showTab"
44QT_MOC_LITERAL(145, 12), // "_q_removeTab"
45QT_MOC_LITERAL(158, 11), // "_q_tabMoved"
46QT_MOC_LITERAL(170, 11), // "tabPosition"
47QT_MOC_LITERAL(182, 11), // "TabPosition"
48QT_MOC_LITERAL(194, 8), // "tabShape"
49QT_MOC_LITERAL(203, 8), // "TabShape"
50QT_MOC_LITERAL(212, 12), // "currentIndex"
51QT_MOC_LITERAL(225, 5), // "count"
52QT_MOC_LITERAL(231, 8), // "iconSize"
53QT_MOC_LITERAL(240, 9), // "elideMode"
54QT_MOC_LITERAL(250, 17), // "Qt::TextElideMode"
55QT_MOC_LITERAL(268, 17), // "usesScrollButtons"
56QT_MOC_LITERAL(286, 12), // "documentMode"
57QT_MOC_LITERAL(299, 12), // "tabsClosable"
58QT_MOC_LITERAL(312, 7), // "movable"
59QT_MOC_LITERAL(320, 14), // "tabBarAutoHide"
60QT_MOC_LITERAL(335, 5), // "North"
61QT_MOC_LITERAL(341, 5), // "South"
62QT_MOC_LITERAL(347, 4), // "West"
63QT_MOC_LITERAL(352, 4), // "East"
64QT_MOC_LITERAL(357, 7), // "Rounded"
65QT_MOC_LITERAL(365, 10) // "Triangular"
66
67 },
68 "QTabWidget\0currentChanged\0\0index\0"
69 "tabCloseRequested\0tabBarClicked\0"
70 "tabBarDoubleClicked\0setCurrentIndex\0"
71 "setCurrentWidget\0QWidget*\0widget\0"
72 "_q_showTab\0_q_removeTab\0_q_tabMoved\0"
73 "tabPosition\0TabPosition\0tabShape\0"
74 "TabShape\0currentIndex\0count\0iconSize\0"
75 "elideMode\0Qt::TextElideMode\0"
76 "usesScrollButtons\0documentMode\0"
77 "tabsClosable\0movable\0tabBarAutoHide\0"
78 "North\0South\0West\0East\0Rounded\0Triangular"
79};
80#undef QT_MOC_LITERAL
81
82static const uint qt_meta_data_QTabWidget[] = {
83
84 // content:
85 9, // revision
86 0, // classname
87 0, 0, // classinfo
88 9, 14, // methods
89 11, 97, // properties
90 2, 152, // enums/sets
91 0, 0, // constructors
92 0, // flags
93 4, // signalCount
94
95 // signals: name, argc, parameters, tag, flags, initial metatype offsets
96 1, 1, 68, 2, 0x06, 11 /* Public */,
97 4, 1, 71, 2, 0x06, 13 /* Public */,
98 5, 1, 74, 2, 0x06, 15 /* Public */,
99 6, 1, 77, 2, 0x06, 17 /* Public */,
100
101 // slots: name, argc, parameters, tag, flags, initial metatype offsets
102 7, 1, 80, 2, 0x0a, 19 /* Public */,
103 8, 1, 83, 2, 0x0a, 21 /* Public */,
104 11, 1, 86, 2, 0x08, 23 /* Private */,
105 12, 1, 89, 2, 0x08, 25 /* Private */,
106 13, 2, 92, 2, 0x08, 27 /* Private */,
107
108 // signals: parameters
109 QMetaType::Void, QMetaType::Int, 3,
110 QMetaType::Void, QMetaType::Int, 3,
111 QMetaType::Void, QMetaType::Int, 3,
112 QMetaType::Void, QMetaType::Int, 3,
113
114 // slots: parameters
115 QMetaType::Void, QMetaType::Int, 3,
116 QMetaType::Void, 0x80000000 | 9, 10,
117 QMetaType::Void, QMetaType::Int, 2,
118 QMetaType::Void, QMetaType::Int, 2,
119 QMetaType::Void, QMetaType::Int, QMetaType::Int, 2, 2,
120
121 // properties: name, type, flags
122 14, 0x80000000 | 15, 0x0001510b, uint(-1), 0,
123 16, 0x80000000 | 17, 0x0001510b, uint(-1), 0,
124 18, QMetaType::Int, 0x00015103, uint(0), 0,
125 19, QMetaType::Int, 0x00015001, uint(-1), 0,
126 20, QMetaType::QSize, 0x00015103, uint(-1), 0,
127 21, 0x80000000 | 22, 0x0001510b, uint(-1), 0,
128 23, QMetaType::Bool, 0x00015103, uint(-1), 0,
129 24, QMetaType::Bool, 0x00015103, uint(-1), 0,
130 25, QMetaType::Bool, 0x00015103, uint(-1), 0,
131 26, QMetaType::Bool, 0x00015103, uint(-1), 0,
132 27, QMetaType::Bool, 0x00015103, uint(-1), 0,
133
134 // enums: name, alias, flags, count, data
135 15, 15, 0x0, 4, 162,
136 17, 17, 0x0, 2, 170,
137
138 // enum data: key, value
139 28, uint(QTabWidget::North),
140 29, uint(QTabWidget::South),
141 30, uint(QTabWidget::West),
142 31, uint(QTabWidget::East),
143 32, uint(QTabWidget::Rounded),
144 33, uint(QTabWidget::Triangular),
145
146 0 // eod
147};
148
149void QTabWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
150{
151 if (_c == QMetaObject::InvokeMetaMethod) {
152 Q_ASSERT(staticMetaObject.cast(_o));
153 auto *_t = static_cast<QTabWidget *>(_o);
154 Q_UNUSED(_t)
155 switch (_id) {
156 case 0: _t->currentChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
157 case 1: _t->tabCloseRequested((*reinterpret_cast< int(*)>(_a[1]))); break;
158 case 2: _t->tabBarClicked((*reinterpret_cast< int(*)>(_a[1]))); break;
159 case 3: _t->tabBarDoubleClicked((*reinterpret_cast< int(*)>(_a[1]))); break;
160 case 4: _t->setCurrentIndex((*reinterpret_cast< int(*)>(_a[1]))); break;
161 case 5: _t->setCurrentWidget((*reinterpret_cast< QWidget*(*)>(_a[1]))); break;
162 case 6: _t->d_func()->_q_showTab((*reinterpret_cast< int(*)>(_a[1]))); break;
163 case 7: _t->d_func()->_q_removeTab((*reinterpret_cast< int(*)>(_a[1]))); break;
164 case 8: _t->d_func()->_q_tabMoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
165 default: ;
166 }
167 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
168 switch (_id) {
169 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
170 case 5:
171 switch (*reinterpret_cast<int*>(_a[1])) {
172 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
173 case 0:
174 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QWidget* >(); break;
175 }
176 break;
177 }
178 } else if (_c == QMetaObject::IndexOfMethod) {
179 int *result = reinterpret_cast<int *>(_a[0]);
180 {
181 using _t = void (QTabWidget::*)(int );
182 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTabWidget::currentChanged)) {
183 *result = 0;
184 return;
185 }
186 }
187 {
188 using _t = void (QTabWidget::*)(int );
189 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTabWidget::tabCloseRequested)) {
190 *result = 1;
191 return;
192 }
193 }
194 {
195 using _t = void (QTabWidget::*)(int );
196 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTabWidget::tabBarClicked)) {
197 *result = 2;
198 return;
199 }
200 }
201 {
202 using _t = void (QTabWidget::*)(int );
203 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTabWidget::tabBarDoubleClicked)) {
204 *result = 3;
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<QTabWidget *>(_o);
213 Q_UNUSED(_t)
214 void *_v = _a[0];
215 switch (_id) {
216 case 0: *reinterpret_cast< TabPosition*>(_v) = _t->tabPosition(); break;
217 case 1: *reinterpret_cast< TabShape*>(_v) = _t->tabShape(); break;
218 case 2: *reinterpret_cast< int*>(_v) = _t->currentIndex(); break;
219 case 3: *reinterpret_cast< int*>(_v) = _t->count(); break;
220 case 4: *reinterpret_cast< QSize*>(_v) = _t->iconSize(); break;
221 case 5: *reinterpret_cast< Qt::TextElideMode*>(_v) = _t->elideMode(); break;
222 case 6: *reinterpret_cast< bool*>(_v) = _t->usesScrollButtons(); break;
223 case 7: *reinterpret_cast< bool*>(_v) = _t->documentMode(); break;
224 case 8: *reinterpret_cast< bool*>(_v) = _t->tabsClosable(); break;
225 case 9: *reinterpret_cast< bool*>(_v) = _t->isMovable(); break;
226 case 10: *reinterpret_cast< bool*>(_v) = _t->tabBarAutoHide(); break;
227 default: break;
228 }
229 } else if (_c == QMetaObject::WriteProperty) {
230 Q_ASSERT(staticMetaObject.cast(_o));
231 auto *_t = static_cast<QTabWidget *>(_o);
232 Q_UNUSED(_t)
233 void *_v = _a[0];
234 switch (_id) {
235 case 0: _t->setTabPosition(*reinterpret_cast< TabPosition*>(_v)); break;
236 case 1: _t->setTabShape(*reinterpret_cast< TabShape*>(_v)); break;
237 case 2: _t->setCurrentIndex(*reinterpret_cast< int*>(_v)); break;
238 case 4: _t->setIconSize(*reinterpret_cast< QSize*>(_v)); break;
239 case 5: _t->setElideMode(*reinterpret_cast< Qt::TextElideMode*>(_v)); break;
240 case 6: _t->setUsesScrollButtons(*reinterpret_cast< bool*>(_v)); break;
241 case 7: _t->setDocumentMode(*reinterpret_cast< bool*>(_v)); break;
242 case 8: _t->setTabsClosable(*reinterpret_cast< bool*>(_v)); break;
243 case 9: _t->setMovable(*reinterpret_cast< bool*>(_v)); break;
244 case 10: _t->setTabBarAutoHide(*reinterpret_cast< bool*>(_v)); break;
245 default: break;
246 }
247 } else if (_c == QMetaObject::ResetProperty) {
248 } else if (_c == QMetaObject::BindableProperty) {
249 }
250#endif // QT_NO_PROPERTIES
251}
252
253const QMetaObject QTabWidget::staticMetaObject = { {
254 QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
255 qt_meta_stringdata_QTabWidget.offsetsAndSize,
256 qt_meta_data_QTabWidget,
257 qt_static_metacall,
258 nullptr,
259qt_incomplete_metaTypeArray<qt_meta_stringdata_QTabWidget_t
260, QtPrivate::TypeAndForceComplete<TabPosition, std::true_type>, QtPrivate::TypeAndForceComplete<TabShape, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<QSize, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::TextElideMode, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_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<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>
261, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QWidget *, 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 *QTabWidget::metaObject() const
270{
271 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
272}
273
274void *QTabWidget::qt_metacast(const char *_clname)
275{
276 if (!_clname) return nullptr;
277 if (!strcmp(_clname, qt_meta_stringdata_QTabWidget.stringdata0))
278 return static_cast<void*>(this);
279 return QWidget::qt_metacast(_clname);
280}
281
282int QTabWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
283{
284 _id = QWidget::qt_metacall(_c, _id, _a);
285 if (_id < 0)
286 return _id;
287 if (_c == QMetaObject::InvokeMetaMethod) {
288 if (_id < 9)
289 qt_static_metacall(this, _c, _id, _a);
290 _id -= 9;
291 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
292 if (_id < 9)
293 qt_static_metacall(this, _c, _id, _a);
294 _id -= 9;
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 -= 11;
302 }
303#endif // QT_NO_PROPERTIES
304 return _id;
305}
306
307// SIGNAL 0
308void QTabWidget::currentChanged(int _t1)
309{
310 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
311 QMetaObject::activate(this, &staticMetaObject, 0, _a);
312}
313
314// SIGNAL 1
315void QTabWidget::tabCloseRequested(int _t1)
316{
317 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
318 QMetaObject::activate(this, &staticMetaObject, 1, _a);
319}
320
321// SIGNAL 2
322void QTabWidget::tabBarClicked(int _t1)
323{
324 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
325 QMetaObject::activate(this, &staticMetaObject, 2, _a);
326}
327
328// SIGNAL 3
329void QTabWidget::tabBarDoubleClicked(int _t1)
330{
331 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
332 QMetaObject::activate(this, &staticMetaObject, 3, _a);
333}
334QT_WARNING_POP
335QT_END_MOC_NAMESPACE
336