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