1/****************************************************************************
2** Meta object code from reading C++ file 'qtoolbox.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/qtoolbox.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qtoolbox.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_QToolBox_t {
25 const uint offsetsAndSize[24];
26 char stringdata0[135];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QToolBox_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QToolBox_t qt_meta_stringdata_QToolBox = {
31 {
32QT_MOC_LITERAL(0, 8), // "QToolBox"
33QT_MOC_LITERAL(9, 14), // "currentChanged"
34QT_MOC_LITERAL(24, 0), // ""
35QT_MOC_LITERAL(25, 5), // "index"
36QT_MOC_LITERAL(31, 15), // "setCurrentIndex"
37QT_MOC_LITERAL(47, 16), // "setCurrentWidget"
38QT_MOC_LITERAL(64, 8), // "QWidget*"
39QT_MOC_LITERAL(73, 6), // "widget"
40QT_MOC_LITERAL(80, 16), // "_q_buttonClicked"
41QT_MOC_LITERAL(97, 18), // "_q_widgetDestroyed"
42QT_MOC_LITERAL(116, 12), // "currentIndex"
43QT_MOC_LITERAL(129, 5) // "count"
44
45 },
46 "QToolBox\0currentChanged\0\0index\0"
47 "setCurrentIndex\0setCurrentWidget\0"
48 "QWidget*\0widget\0_q_buttonClicked\0"
49 "_q_widgetDestroyed\0currentIndex\0count"
50};
51#undef QT_MOC_LITERAL
52
53static const uint qt_meta_data_QToolBox[] = {
54
55 // content:
56 9, // revision
57 0, // classname
58 0, 0, // classinfo
59 5, 14, // methods
60 2, 57, // properties
61 0, 0, // enums/sets
62 0, 0, // constructors
63 0, // flags
64 1, // signalCount
65
66 // signals: name, argc, parameters, tag, flags, initial metatype offsets
67 1, 1, 44, 2, 0x06, 2 /* Public */,
68
69 // slots: name, argc, parameters, tag, flags, initial metatype offsets
70 4, 1, 47, 2, 0x0a, 4 /* Public */,
71 5, 1, 50, 2, 0x0a, 6 /* Public */,
72 8, 0, 53, 2, 0x08, 8 /* Private */,
73 9, 1, 54, 2, 0x08, 9 /* Private */,
74
75 // signals: parameters
76 QMetaType::Void, QMetaType::Int, 3,
77
78 // slots: parameters
79 QMetaType::Void, QMetaType::Int, 3,
80 QMetaType::Void, 0x80000000 | 6, 7,
81 QMetaType::Void,
82 QMetaType::Void, QMetaType::QObjectStar, 2,
83
84 // properties: name, type, flags
85 10, QMetaType::Int, 0x00015103, uint(0), 0,
86 11, QMetaType::Int, 0x00015001, uint(-1), 0,
87
88 0 // eod
89};
90
91void QToolBox::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
92{
93 if (_c == QMetaObject::InvokeMetaMethod) {
94 Q_ASSERT(staticMetaObject.cast(_o));
95 auto *_t = static_cast<QToolBox *>(_o);
96 Q_UNUSED(_t)
97 switch (_id) {
98 case 0: _t->currentChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
99 case 1: _t->setCurrentIndex((*reinterpret_cast< int(*)>(_a[1]))); break;
100 case 2: _t->setCurrentWidget((*reinterpret_cast< QWidget*(*)>(_a[1]))); break;
101 case 3: _t->d_func()->_q_buttonClicked(); break;
102 case 4: _t->d_func()->_q_widgetDestroyed((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
103 default: ;
104 }
105 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
106 switch (_id) {
107 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
108 case 2:
109 switch (*reinterpret_cast<int*>(_a[1])) {
110 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
111 case 0:
112 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QWidget* >(); break;
113 }
114 break;
115 }
116 } else if (_c == QMetaObject::IndexOfMethod) {
117 int *result = reinterpret_cast<int *>(_a[0]);
118 {
119 using _t = void (QToolBox::*)(int );
120 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QToolBox::currentChanged)) {
121 *result = 0;
122 return;
123 }
124 }
125 }
126#ifndef QT_NO_PROPERTIES
127 else if (_c == QMetaObject::ReadProperty) {
128 Q_ASSERT(staticMetaObject.cast(_o));
129 auto *_t = static_cast<QToolBox *>(_o);
130 Q_UNUSED(_t)
131 void *_v = _a[0];
132 switch (_id) {
133 case 0: *reinterpret_cast< int*>(_v) = _t->currentIndex(); break;
134 case 1: *reinterpret_cast< int*>(_v) = _t->count(); break;
135 default: break;
136 }
137 } else if (_c == QMetaObject::WriteProperty) {
138 Q_ASSERT(staticMetaObject.cast(_o));
139 auto *_t = static_cast<QToolBox *>(_o);
140 Q_UNUSED(_t)
141 void *_v = _a[0];
142 switch (_id) {
143 case 0: _t->setCurrentIndex(*reinterpret_cast< int*>(_v)); break;
144 default: break;
145 }
146 } else if (_c == QMetaObject::ResetProperty) {
147 } else if (_c == QMetaObject::BindableProperty) {
148 }
149#endif // QT_NO_PROPERTIES
150}
151
152const QMetaObject QToolBox::staticMetaObject = { {
153 QMetaObject::SuperData::link<QFrame::staticMetaObject>(),
154 qt_meta_stringdata_QToolBox.offsetsAndSize,
155 qt_meta_data_QToolBox,
156 qt_static_metacall,
157 nullptr,
158qt_incomplete_metaTypeArray<qt_meta_stringdata_QToolBox_t
159, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>
160, 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<void, std::false_type>, QtPrivate::TypeAndForceComplete<QObject *, std::false_type>
161
162
163>,
164 nullptr
165} };
166
167
168const QMetaObject *QToolBox::metaObject() const
169{
170 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
171}
172
173void *QToolBox::qt_metacast(const char *_clname)
174{
175 if (!_clname) return nullptr;
176 if (!strcmp(_clname, qt_meta_stringdata_QToolBox.stringdata0))
177 return static_cast<void*>(this);
178 return QFrame::qt_metacast(_clname);
179}
180
181int QToolBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
182{
183 _id = QFrame::qt_metacall(_c, _id, _a);
184 if (_id < 0)
185 return _id;
186 if (_c == QMetaObject::InvokeMetaMethod) {
187 if (_id < 5)
188 qt_static_metacall(this, _c, _id, _a);
189 _id -= 5;
190 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
191 if (_id < 5)
192 qt_static_metacall(this, _c, _id, _a);
193 _id -= 5;
194 }
195#ifndef QT_NO_PROPERTIES
196 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
197 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
198 || _c == QMetaObject::RegisterPropertyMetaType) {
199 qt_static_metacall(this, _c, _id, _a);
200 _id -= 2;
201 }
202#endif // QT_NO_PROPERTIES
203 return _id;
204}
205
206// SIGNAL 0
207void QToolBox::currentChanged(int _t1)
208{
209 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
210 QMetaObject::activate(this, &staticMetaObject, 0, _a);
211}
212QT_WARNING_POP
213QT_END_MOC_NAMESPACE
214