1/****************************************************************************
2** Meta object code from reading C++ file 'qdatawidgetmapper.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 "itemviews/qdatawidgetmapper.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#include <QtCore/QList>
14#if !defined(Q_MOC_OUTPUT_REVISION)
15#error "The header file 'qdatawidgetmapper.h' doesn't include <QObject>."
16#elif Q_MOC_OUTPUT_REVISION != 68
17#error "This file was generated using the moc from 6.0.0. It"
18#error "cannot be used with the include files from this version of Qt."
19#error "(The moc has changed too much.)"
20#endif
21
22QT_BEGIN_MOC_NAMESPACE
23QT_WARNING_PUSH
24QT_WARNING_DISABLE_DEPRECATED
25struct qt_meta_stringdata_QDataWidgetMapper_t {
26 const uint offsetsAndSize[54];
27 char stringdata0[349];
28};
29#define QT_MOC_LITERAL(ofs, len) \
30 uint(offsetof(qt_meta_stringdata_QDataWidgetMapper_t, stringdata0) + ofs), len
31static const qt_meta_stringdata_QDataWidgetMapper_t qt_meta_stringdata_QDataWidgetMapper = {
32 {
33QT_MOC_LITERAL(0, 17), // "QDataWidgetMapper"
34QT_MOC_LITERAL(18, 19), // "currentIndexChanged"
35QT_MOC_LITERAL(38, 0), // ""
36QT_MOC_LITERAL(39, 5), // "index"
37QT_MOC_LITERAL(45, 6), // "revert"
38QT_MOC_LITERAL(52, 6), // "submit"
39QT_MOC_LITERAL(59, 7), // "toFirst"
40QT_MOC_LITERAL(67, 6), // "toLast"
41QT_MOC_LITERAL(74, 6), // "toNext"
42QT_MOC_LITERAL(81, 10), // "toPrevious"
43QT_MOC_LITERAL(92, 15), // "setCurrentIndex"
44QT_MOC_LITERAL(108, 20), // "setCurrentModelIndex"
45QT_MOC_LITERAL(129, 11), // "QModelIndex"
46QT_MOC_LITERAL(141, 14), // "_q_dataChanged"
47QT_MOC_LITERAL(156, 10), // "QList<int>"
48QT_MOC_LITERAL(167, 13), // "_q_commitData"
49QT_MOC_LITERAL(181, 8), // "QWidget*"
50QT_MOC_LITERAL(190, 14), // "_q_closeEditor"
51QT_MOC_LITERAL(205, 34), // "QAbstractItemDelegate::EndEdi..."
52QT_MOC_LITERAL(240, 17), // "_q_modelDestroyed"
53QT_MOC_LITERAL(258, 12), // "currentIndex"
54QT_MOC_LITERAL(271, 11), // "orientation"
55QT_MOC_LITERAL(283, 15), // "Qt::Orientation"
56QT_MOC_LITERAL(299, 12), // "submitPolicy"
57QT_MOC_LITERAL(312, 12), // "SubmitPolicy"
58QT_MOC_LITERAL(325, 10), // "AutoSubmit"
59QT_MOC_LITERAL(336, 12) // "ManualSubmit"
60
61 },
62 "QDataWidgetMapper\0currentIndexChanged\0"
63 "\0index\0revert\0submit\0toFirst\0toLast\0"
64 "toNext\0toPrevious\0setCurrentIndex\0"
65 "setCurrentModelIndex\0QModelIndex\0"
66 "_q_dataChanged\0QList<int>\0_q_commitData\0"
67 "QWidget*\0_q_closeEditor\0"
68 "QAbstractItemDelegate::EndEditHint\0"
69 "_q_modelDestroyed\0currentIndex\0"
70 "orientation\0Qt::Orientation\0submitPolicy\0"
71 "SubmitPolicy\0AutoSubmit\0ManualSubmit"
72};
73#undef QT_MOC_LITERAL
74
75static const uint qt_meta_data_QDataWidgetMapper[] = {
76
77 // content:
78 9, // revision
79 0, // classname
80 0, 0, // classinfo
81 13, 14, // methods
82 3, 123, // properties
83 1, 138, // enums/sets
84 0, 0, // constructors
85 0, // flags
86 1, // signalCount
87
88 // signals: name, argc, parameters, tag, flags, initial metatype offsets
89 1, 1, 92, 2, 0x06, 3 /* Public */,
90
91 // slots: name, argc, parameters, tag, flags, initial metatype offsets
92 4, 0, 95, 2, 0x0a, 5 /* Public */,
93 5, 0, 96, 2, 0x0a, 6 /* Public */,
94 6, 0, 97, 2, 0x0a, 7 /* Public */,
95 7, 0, 98, 2, 0x0a, 8 /* Public */,
96 8, 0, 99, 2, 0x0a, 9 /* Public */,
97 9, 0, 100, 2, 0x0a, 10 /* Public */,
98 10, 1, 101, 2, 0x0a, 11 /* Public */,
99 11, 1, 104, 2, 0x0a, 13 /* Public */,
100 13, 3, 107, 2, 0x08, 15 /* Private */,
101 15, 1, 114, 2, 0x08, 19 /* Private */,
102 17, 2, 117, 2, 0x08, 21 /* Private */,
103 19, 0, 122, 2, 0x08, 24 /* Private */,
104
105 // signals: parameters
106 QMetaType::Void, QMetaType::Int, 3,
107
108 // slots: parameters
109 QMetaType::Void,
110 QMetaType::Bool,
111 QMetaType::Void,
112 QMetaType::Void,
113 QMetaType::Void,
114 QMetaType::Void,
115 QMetaType::Void, QMetaType::Int, 3,
116 QMetaType::Void, 0x80000000 | 12, 3,
117 QMetaType::Void, 0x80000000 | 12, 0x80000000 | 12, 0x80000000 | 14, 2, 2, 2,
118 QMetaType::Void, 0x80000000 | 16, 2,
119 QMetaType::Void, 0x80000000 | 16, 0x80000000 | 18, 2, 2,
120 QMetaType::Void,
121
122 // properties: name, type, flags
123 20, QMetaType::Int, 0x00015103, uint(0), 0,
124 21, 0x80000000 | 22, 0x0001510b, uint(-1), 0,
125 23, 0x80000000 | 24, 0x0001510b, uint(-1), 0,
126
127 // enums: name, alias, flags, count, data
128 24, 24, 0x0, 2, 143,
129
130 // enum data: key, value
131 25, uint(QDataWidgetMapper::AutoSubmit),
132 26, uint(QDataWidgetMapper::ManualSubmit),
133
134 0 // eod
135};
136
137void QDataWidgetMapper::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<QDataWidgetMapper *>(_o);
142 Q_UNUSED(_t)
143 switch (_id) {
144 case 0: _t->currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
145 case 1: _t->revert(); break;
146 case 2: { bool _r = _t->submit();
147 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
148 case 3: _t->toFirst(); break;
149 case 4: _t->toLast(); break;
150 case 5: _t->toNext(); break;
151 case 6: _t->toPrevious(); break;
152 case 7: _t->setCurrentIndex((*reinterpret_cast< int(*)>(_a[1]))); break;
153 case 8: _t->setCurrentModelIndex((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
154 case 9: _t->d_func()->_q_dataChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2])),(*reinterpret_cast< const QList<int>(*)>(_a[3]))); break;
155 case 10: _t->d_func()->_q_commitData((*reinterpret_cast< QWidget*(*)>(_a[1]))); break;
156 case 11: _t->d_func()->_q_closeEditor((*reinterpret_cast< QWidget*(*)>(_a[1])),(*reinterpret_cast< QAbstractItemDelegate::EndEditHint(*)>(_a[2]))); break;
157 case 12: _t->d_func()->_q_modelDestroyed(); break;
158 default: ;
159 }
160 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
161 switch (_id) {
162 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
163 case 9:
164 switch (*reinterpret_cast<int*>(_a[1])) {
165 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
166 case 2:
167 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<int> >(); break;
168 }
169 break;
170 }
171 } else if (_c == QMetaObject::IndexOfMethod) {
172 int *result = reinterpret_cast<int *>(_a[0]);
173 {
174 using _t = void (QDataWidgetMapper::*)(int );
175 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDataWidgetMapper::currentIndexChanged)) {
176 *result = 0;
177 return;
178 }
179 }
180 }
181#ifndef QT_NO_PROPERTIES
182 else if (_c == QMetaObject::ReadProperty) {
183 Q_ASSERT(staticMetaObject.cast(_o));
184 auto *_t = static_cast<QDataWidgetMapper *>(_o);
185 Q_UNUSED(_t)
186 void *_v = _a[0];
187 switch (_id) {
188 case 0: *reinterpret_cast< int*>(_v) = _t->currentIndex(); break;
189 case 1: *reinterpret_cast< Qt::Orientation*>(_v) = _t->orientation(); break;
190 case 2: *reinterpret_cast< SubmitPolicy*>(_v) = _t->submitPolicy(); break;
191 default: break;
192 }
193 } else if (_c == QMetaObject::WriteProperty) {
194 Q_ASSERT(staticMetaObject.cast(_o));
195 auto *_t = static_cast<QDataWidgetMapper *>(_o);
196 Q_UNUSED(_t)
197 void *_v = _a[0];
198 switch (_id) {
199 case 0: _t->setCurrentIndex(*reinterpret_cast< int*>(_v)); break;
200 case 1: _t->setOrientation(*reinterpret_cast< Qt::Orientation*>(_v)); break;
201 case 2: _t->setSubmitPolicy(*reinterpret_cast< SubmitPolicy*>(_v)); break;
202 default: break;
203 }
204 } else if (_c == QMetaObject::ResetProperty) {
205 } else if (_c == QMetaObject::BindableProperty) {
206 }
207#endif // QT_NO_PROPERTIES
208}
209
210const QMetaObject QDataWidgetMapper::staticMetaObject = { {
211 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
212 qt_meta_stringdata_QDataWidgetMapper.offsetsAndSize,
213 qt_meta_data_QDataWidgetMapper,
214 qt_static_metacall,
215 nullptr,
216qt_incomplete_metaTypeArray<qt_meta_stringdata_QDataWidgetMapper_t
217, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::Orientation, std::true_type>, QtPrivate::TypeAndForceComplete<SubmitPolicy, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>
218, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<const QList<int> &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QWidget *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QWidget *, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractItemDelegate::EndEditHint, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
219
220
221>,
222 nullptr
223} };
224
225
226const QMetaObject *QDataWidgetMapper::metaObject() const
227{
228 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
229}
230
231void *QDataWidgetMapper::qt_metacast(const char *_clname)
232{
233 if (!_clname) return nullptr;
234 if (!strcmp(_clname, qt_meta_stringdata_QDataWidgetMapper.stringdata0))
235 return static_cast<void*>(this);
236 return QObject::qt_metacast(_clname);
237}
238
239int QDataWidgetMapper::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
240{
241 _id = QObject::qt_metacall(_c, _id, _a);
242 if (_id < 0)
243 return _id;
244 if (_c == QMetaObject::InvokeMetaMethod) {
245 if (_id < 13)
246 qt_static_metacall(this, _c, _id, _a);
247 _id -= 13;
248 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
249 if (_id < 13)
250 qt_static_metacall(this, _c, _id, _a);
251 _id -= 13;
252 }
253#ifndef QT_NO_PROPERTIES
254 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
255 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
256 || _c == QMetaObject::RegisterPropertyMetaType) {
257 qt_static_metacall(this, _c, _id, _a);
258 _id -= 3;
259 }
260#endif // QT_NO_PROPERTIES
261 return _id;
262}
263
264// SIGNAL 0
265void QDataWidgetMapper::currentIndexChanged(int _t1)
266{
267 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
268 QMetaObject::activate(this, &staticMetaObject, 0, _a);
269}
270QT_WARNING_POP
271QT_END_MOC_NAMESPACE
272