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