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