1/****************************************************************************
2** Meta object code from reading C++ file 'qitemselectionmodel.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/qitemselectionmodel.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 'qitemselectionmodel.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_QItemSelectionModel_t {
26 const uint offsetsAndSize[124];
27 char stringdata0[876];
28};
29#define QT_MOC_LITERAL(ofs, len) \
30 uint(offsetof(qt_meta_stringdata_QItemSelectionModel_t, stringdata0) + ofs), len
31static const qt_meta_stringdata_QItemSelectionModel_t qt_meta_stringdata_QItemSelectionModel = {
32 {
33QT_MOC_LITERAL(0, 19), // "QItemSelectionModel"
34QT_MOC_LITERAL(20, 16), // "selectionChanged"
35QT_MOC_LITERAL(37, 0), // ""
36QT_MOC_LITERAL(38, 14), // "QItemSelection"
37QT_MOC_LITERAL(53, 8), // "selected"
38QT_MOC_LITERAL(62, 10), // "deselected"
39QT_MOC_LITERAL(73, 14), // "currentChanged"
40QT_MOC_LITERAL(88, 11), // "QModelIndex"
41QT_MOC_LITERAL(100, 7), // "current"
42QT_MOC_LITERAL(108, 8), // "previous"
43QT_MOC_LITERAL(117, 17), // "currentRowChanged"
44QT_MOC_LITERAL(135, 20), // "currentColumnChanged"
45QT_MOC_LITERAL(156, 12), // "modelChanged"
46QT_MOC_LITERAL(169, 19), // "QAbstractItemModel*"
47QT_MOC_LITERAL(189, 5), // "model"
48QT_MOC_LITERAL(195, 15), // "setCurrentIndex"
49QT_MOC_LITERAL(211, 5), // "index"
50QT_MOC_LITERAL(217, 35), // "QItemSelectionModel::Selectio..."
51QT_MOC_LITERAL(253, 7), // "command"
52QT_MOC_LITERAL(261, 6), // "select"
53QT_MOC_LITERAL(268, 9), // "selection"
54QT_MOC_LITERAL(278, 5), // "clear"
55QT_MOC_LITERAL(284, 5), // "reset"
56QT_MOC_LITERAL(290, 14), // "clearSelection"
57QT_MOC_LITERAL(305, 17), // "clearCurrentIndex"
58QT_MOC_LITERAL(323, 26), // "_q_columnsAboutToBeRemoved"
59QT_MOC_LITERAL(350, 23), // "_q_rowsAboutToBeRemoved"
60QT_MOC_LITERAL(374, 27), // "_q_columnsAboutToBeInserted"
61QT_MOC_LITERAL(402, 24), // "_q_rowsAboutToBeInserted"
62QT_MOC_LITERAL(427, 25), // "_q_layoutAboutToBeChanged"
63QT_MOC_LITERAL(453, 28), // "QList<QPersistentModelIndex>"
64QT_MOC_LITERAL(482, 7), // "parents"
65QT_MOC_LITERAL(490, 36), // "QAbstractItemModel::LayoutCha..."
66QT_MOC_LITERAL(527, 4), // "hint"
67QT_MOC_LITERAL(532, 16), // "_q_layoutChanged"
68QT_MOC_LITERAL(549, 10), // "isSelected"
69QT_MOC_LITERAL(560, 13), // "isRowSelected"
70QT_MOC_LITERAL(574, 3), // "row"
71QT_MOC_LITERAL(578, 6), // "parent"
72QT_MOC_LITERAL(585, 16), // "isColumnSelected"
73QT_MOC_LITERAL(602, 6), // "column"
74QT_MOC_LITERAL(609, 22), // "rowIntersectsSelection"
75QT_MOC_LITERAL(632, 25), // "columnIntersectsSelection"
76QT_MOC_LITERAL(658, 12), // "selectedRows"
77QT_MOC_LITERAL(671, 15), // "QModelIndexList"
78QT_MOC_LITERAL(687, 15), // "selectedColumns"
79QT_MOC_LITERAL(703, 12), // "hasSelection"
80QT_MOC_LITERAL(716, 12), // "currentIndex"
81QT_MOC_LITERAL(729, 15), // "selectedIndexes"
82QT_MOC_LITERAL(745, 14), // "SelectionFlags"
83QT_MOC_LITERAL(760, 13), // "SelectionFlag"
84QT_MOC_LITERAL(774, 8), // "NoUpdate"
85QT_MOC_LITERAL(783, 5), // "Clear"
86QT_MOC_LITERAL(789, 6), // "Select"
87QT_MOC_LITERAL(796, 8), // "Deselect"
88QT_MOC_LITERAL(805, 6), // "Toggle"
89QT_MOC_LITERAL(812, 7), // "Current"
90QT_MOC_LITERAL(820, 4), // "Rows"
91QT_MOC_LITERAL(825, 7), // "Columns"
92QT_MOC_LITERAL(833, 13), // "SelectCurrent"
93QT_MOC_LITERAL(847, 13), // "ToggleCurrent"
94QT_MOC_LITERAL(861, 14) // "ClearAndSelect"
95
96 },
97 "QItemSelectionModel\0selectionChanged\0"
98 "\0QItemSelection\0selected\0deselected\0"
99 "currentChanged\0QModelIndex\0current\0"
100 "previous\0currentRowChanged\0"
101 "currentColumnChanged\0modelChanged\0"
102 "QAbstractItemModel*\0model\0setCurrentIndex\0"
103 "index\0QItemSelectionModel::SelectionFlags\0"
104 "command\0select\0selection\0clear\0reset\0"
105 "clearSelection\0clearCurrentIndex\0"
106 "_q_columnsAboutToBeRemoved\0"
107 "_q_rowsAboutToBeRemoved\0"
108 "_q_columnsAboutToBeInserted\0"
109 "_q_rowsAboutToBeInserted\0"
110 "_q_layoutAboutToBeChanged\0"
111 "QList<QPersistentModelIndex>\0parents\0"
112 "QAbstractItemModel::LayoutChangeHint\0"
113 "hint\0_q_layoutChanged\0isSelected\0"
114 "isRowSelected\0row\0parent\0isColumnSelected\0"
115 "column\0rowIntersectsSelection\0"
116 "columnIntersectsSelection\0selectedRows\0"
117 "QModelIndexList\0selectedColumns\0"
118 "hasSelection\0currentIndex\0selectedIndexes\0"
119 "SelectionFlags\0SelectionFlag\0NoUpdate\0"
120 "Clear\0Select\0Deselect\0Toggle\0Current\0"
121 "Rows\0Columns\0SelectCurrent\0ToggleCurrent\0"
122 "ClearAndSelect"
123};
124#undef QT_MOC_LITERAL
125
126static const uint qt_meta_data_QItemSelectionModel[] = {
127
128 // content:
129 9, // revision
130 0, // classname
131 0, 0, // classinfo
132 35, 14, // methods
133 5, 355, // properties
134 1, 380, // enums/sets
135 0, 0, // constructors
136 0, // flags
137 5, // signalCount
138
139 // signals: name, argc, parameters, tag, flags, initial metatype offsets
140 1, 2, 224, 2, 0x06, 5 /* Public */,
141 6, 2, 229, 2, 0x06, 8 /* Public */,
142 10, 2, 234, 2, 0x06, 11 /* Public */,
143 11, 2, 239, 2, 0x06, 14 /* Public */,
144 12, 1, 244, 2, 0x06, 17 /* Public */,
145
146 // slots: name, argc, parameters, tag, flags, initial metatype offsets
147 15, 2, 247, 2, 0x0a, 19 /* Public */,
148 19, 2, 252, 2, 0x0a, 22 /* Public */,
149 19, 2, 257, 2, 0x0a, 25 /* Public */,
150 21, 0, 262, 2, 0x0a, 28 /* Public */,
151 22, 0, 263, 2, 0x0a, 29 /* Public */,
152 23, 0, 264, 2, 0x0a, 30 /* Public */,
153 24, 0, 265, 2, 0x0a, 31 /* Public */,
154 25, 3, 266, 2, 0x08, 32 /* Private */,
155 26, 3, 273, 2, 0x08, 36 /* Private */,
156 27, 3, 280, 2, 0x08, 40 /* Private */,
157 28, 3, 287, 2, 0x08, 44 /* Private */,
158 29, 2, 294, 2, 0x08, 48 /* Private */,
159 29, 1, 299, 2, 0x28, 51 /* Private | MethodCloned */,
160 29, 0, 302, 2, 0x28, 53 /* Private | MethodCloned */,
161 34, 2, 303, 2, 0x08, 54 /* Private */,
162 34, 1, 308, 2, 0x28, 57 /* Private | MethodCloned */,
163 34, 0, 311, 2, 0x28, 59 /* Private | MethodCloned */,
164
165 // methods: name, argc, parameters, tag, flags, initial metatype offsets
166 35, 1, 312, 2, 0x02, 60 /* Public */,
167 36, 2, 315, 2, 0x02, 62 /* Public */,
168 36, 1, 320, 2, 0x22, 65 /* Public | MethodCloned */,
169 39, 2, 323, 2, 0x02, 67 /* Public */,
170 39, 1, 328, 2, 0x22, 70 /* Public | MethodCloned */,
171 41, 2, 331, 2, 0x02, 72 /* Public */,
172 41, 1, 336, 2, 0x22, 75 /* Public | MethodCloned */,
173 42, 2, 339, 2, 0x02, 77 /* Public */,
174 42, 1, 344, 2, 0x22, 80 /* Public | MethodCloned */,
175 43, 1, 347, 2, 0x02, 82 /* Public */,
176 43, 0, 350, 2, 0x22, 84 /* Public | MethodCloned */,
177 45, 1, 351, 2, 0x02, 85 /* Public */,
178 45, 0, 354, 2, 0x22, 87 /* Public | MethodCloned */,
179
180 // signals: parameters
181 QMetaType::Void, 0x80000000 | 3, 0x80000000 | 3, 4, 5,
182 QMetaType::Void, 0x80000000 | 7, 0x80000000 | 7, 8, 9,
183 QMetaType::Void, 0x80000000 | 7, 0x80000000 | 7, 8, 9,
184 QMetaType::Void, 0x80000000 | 7, 0x80000000 | 7, 8, 9,
185 QMetaType::Void, 0x80000000 | 13, 14,
186
187 // slots: parameters
188 QMetaType::Void, 0x80000000 | 7, 0x80000000 | 17, 16, 18,
189 QMetaType::Void, 0x80000000 | 7, 0x80000000 | 17, 16, 18,
190 QMetaType::Void, 0x80000000 | 3, 0x80000000 | 17, 20, 18,
191 QMetaType::Void,
192 QMetaType::Void,
193 QMetaType::Void,
194 QMetaType::Void,
195 QMetaType::Void, 0x80000000 | 7, QMetaType::Int, QMetaType::Int, 2, 2, 2,
196 QMetaType::Void, 0x80000000 | 7, QMetaType::Int, QMetaType::Int, 2, 2, 2,
197 QMetaType::Void, 0x80000000 | 7, QMetaType::Int, QMetaType::Int, 2, 2, 2,
198 QMetaType::Void, 0x80000000 | 7, QMetaType::Int, QMetaType::Int, 2, 2, 2,
199 QMetaType::Void, 0x80000000 | 30, 0x80000000 | 32, 31, 33,
200 QMetaType::Void, 0x80000000 | 30, 31,
201 QMetaType::Void,
202 QMetaType::Void, 0x80000000 | 30, 0x80000000 | 32, 31, 33,
203 QMetaType::Void, 0x80000000 | 30, 31,
204 QMetaType::Void,
205
206 // methods: parameters
207 QMetaType::Bool, 0x80000000 | 7, 16,
208 QMetaType::Bool, QMetaType::Int, 0x80000000 | 7, 37, 38,
209 QMetaType::Bool, QMetaType::Int, 37,
210 QMetaType::Bool, QMetaType::Int, 0x80000000 | 7, 40, 38,
211 QMetaType::Bool, QMetaType::Int, 40,
212 QMetaType::Bool, QMetaType::Int, 0x80000000 | 7, 37, 38,
213 QMetaType::Bool, QMetaType::Int, 37,
214 QMetaType::Bool, QMetaType::Int, 0x80000000 | 7, 40, 38,
215 QMetaType::Bool, QMetaType::Int, 40,
216 0x80000000 | 44, QMetaType::Int, 40,
217 0x80000000 | 44,
218 0x80000000 | 44, QMetaType::Int, 37,
219 0x80000000 | 44,
220
221 // properties: name, type, flags
222 14, 0x80000000 | 13, 0x0001510b, uint(4), 0,
223 46, QMetaType::Bool, 0x00004001, uint(0), 0,
224 47, 0x80000000 | 7, 0x00004009, uint(1), 0,
225 20, 0x80000000 | 3, 0x00004009, uint(0), 0,
226 48, 0x80000000 | 44, 0x00004009, uint(0), 0,
227
228 // enums: name, alias, flags, count, data
229 49, 50, 0x1, 11, 385,
230
231 // enum data: key, value
232 51, uint(QItemSelectionModel::NoUpdate),
233 52, uint(QItemSelectionModel::Clear),
234 53, uint(QItemSelectionModel::Select),
235 54, uint(QItemSelectionModel::Deselect),
236 55, uint(QItemSelectionModel::Toggle),
237 56, uint(QItemSelectionModel::Current),
238 57, uint(QItemSelectionModel::Rows),
239 58, uint(QItemSelectionModel::Columns),
240 59, uint(QItemSelectionModel::SelectCurrent),
241 60, uint(QItemSelectionModel::ToggleCurrent),
242 61, uint(QItemSelectionModel::ClearAndSelect),
243
244 0 // eod
245};
246
247void QItemSelectionModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
248{
249 if (_c == QMetaObject::InvokeMetaMethod) {
250 Q_ASSERT(staticMetaObject.cast(_o));
251 auto *_t = static_cast<QItemSelectionModel *>(_o);
252 Q_UNUSED(_t)
253 switch (_id) {
254 case 0: _t->selectionChanged((*reinterpret_cast< const QItemSelection(*)>(_a[1])),(*reinterpret_cast< const QItemSelection(*)>(_a[2]))); break;
255 case 1: _t->currentChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
256 case 2: _t->currentRowChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
257 case 3: _t->currentColumnChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
258 case 4: _t->modelChanged((*reinterpret_cast< QAbstractItemModel*(*)>(_a[1]))); break;
259 case 5: _t->setCurrentIndex((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< QItemSelectionModel::SelectionFlags(*)>(_a[2]))); break;
260 case 6: _t->select((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< QItemSelectionModel::SelectionFlags(*)>(_a[2]))); break;
261 case 7: _t->select((*reinterpret_cast< const QItemSelection(*)>(_a[1])),(*reinterpret_cast< QItemSelectionModel::SelectionFlags(*)>(_a[2]))); break;
262 case 8: _t->clear(); break;
263 case 9: _t->reset(); break;
264 case 10: _t->clearSelection(); break;
265 case 11: _t->clearCurrentIndex(); break;
266 case 12: _t->d_func()->_q_columnsAboutToBeRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
267 case 13: _t->d_func()->_q_rowsAboutToBeRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
268 case 14: _t->d_func()->_q_columnsAboutToBeInserted((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
269 case 15: _t->d_func()->_q_rowsAboutToBeInserted((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
270 case 16: _t->d_func()->_q_layoutAboutToBeChanged((*reinterpret_cast< const QList<QPersistentModelIndex>(*)>(_a[1])),(*reinterpret_cast< QAbstractItemModel::LayoutChangeHint(*)>(_a[2]))); break;
271 case 17: _t->d_func()->_q_layoutAboutToBeChanged((*reinterpret_cast< const QList<QPersistentModelIndex>(*)>(_a[1]))); break;
272 case 18: _t->d_func()->_q_layoutAboutToBeChanged(); break;
273 case 19: _t->d_func()->_q_layoutChanged((*reinterpret_cast< const QList<QPersistentModelIndex>(*)>(_a[1])),(*reinterpret_cast< QAbstractItemModel::LayoutChangeHint(*)>(_a[2]))); break;
274 case 20: _t->d_func()->_q_layoutChanged((*reinterpret_cast< const QList<QPersistentModelIndex>(*)>(_a[1]))); break;
275 case 21: _t->d_func()->_q_layoutChanged(); break;
276 case 22: { bool _r = _t->isSelected((*reinterpret_cast< const QModelIndex(*)>(_a[1])));
277 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
278 case 23: { bool _r = _t->isRowSelected((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2])));
279 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
280 case 24: { bool _r = _t->isRowSelected((*reinterpret_cast< int(*)>(_a[1])));
281 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
282 case 25: { bool _r = _t->isColumnSelected((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2])));
283 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
284 case 26: { bool _r = _t->isColumnSelected((*reinterpret_cast< int(*)>(_a[1])));
285 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
286 case 27: { bool _r = _t->rowIntersectsSelection((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2])));
287 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
288 case 28: { bool _r = _t->rowIntersectsSelection((*reinterpret_cast< int(*)>(_a[1])));
289 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
290 case 29: { bool _r = _t->columnIntersectsSelection((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2])));
291 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
292 case 30: { bool _r = _t->columnIntersectsSelection((*reinterpret_cast< int(*)>(_a[1])));
293 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
294 case 31: { QModelIndexList _r = _t->selectedRows((*reinterpret_cast< int(*)>(_a[1])));
295 if (_a[0]) *reinterpret_cast< QModelIndexList*>(_a[0]) = std::move(_r); } break;
296 case 32: { QModelIndexList _r = _t->selectedRows();
297 if (_a[0]) *reinterpret_cast< QModelIndexList*>(_a[0]) = std::move(_r); } break;
298 case 33: { QModelIndexList _r = _t->selectedColumns((*reinterpret_cast< int(*)>(_a[1])));
299 if (_a[0]) *reinterpret_cast< QModelIndexList*>(_a[0]) = std::move(_r); } break;
300 case 34: { QModelIndexList _r = _t->selectedColumns();
301 if (_a[0]) *reinterpret_cast< QModelIndexList*>(_a[0]) = std::move(_r); } break;
302 default: ;
303 }
304 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
305 switch (_id) {
306 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
307 case 0:
308 switch (*reinterpret_cast<int*>(_a[1])) {
309 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
310 case 1:
311 case 0:
312 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QItemSelection >(); break;
313 }
314 break;
315 case 4:
316 switch (*reinterpret_cast<int*>(_a[1])) {
317 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
318 case 0:
319 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QAbstractItemModel* >(); break;
320 }
321 break;
322 case 7:
323 switch (*reinterpret_cast<int*>(_a[1])) {
324 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
325 case 0:
326 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QItemSelection >(); break;
327 }
328 break;
329 }
330 } else if (_c == QMetaObject::IndexOfMethod) {
331 int *result = reinterpret_cast<int *>(_a[0]);
332 {
333 using _t = void (QItemSelectionModel::*)(const QItemSelection & , const QItemSelection & );
334 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QItemSelectionModel::selectionChanged)) {
335 *result = 0;
336 return;
337 }
338 }
339 {
340 using _t = void (QItemSelectionModel::*)(const QModelIndex & , const QModelIndex & );
341 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QItemSelectionModel::currentChanged)) {
342 *result = 1;
343 return;
344 }
345 }
346 {
347 using _t = void (QItemSelectionModel::*)(const QModelIndex & , const QModelIndex & );
348 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QItemSelectionModel::currentRowChanged)) {
349 *result = 2;
350 return;
351 }
352 }
353 {
354 using _t = void (QItemSelectionModel::*)(const QModelIndex & , const QModelIndex & );
355 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QItemSelectionModel::currentColumnChanged)) {
356 *result = 3;
357 return;
358 }
359 }
360 {
361 using _t = void (QItemSelectionModel::*)(QAbstractItemModel * );
362 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QItemSelectionModel::modelChanged)) {
363 *result = 4;
364 return;
365 }
366 }
367 } else if (_c == QMetaObject::RegisterPropertyMetaType) {
368 switch (_id) {
369 default: *reinterpret_cast<int*>(_a[0]) = -1; break;
370 case 0:
371 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAbstractItemModel* >(); break;
372 case 3:
373 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QItemSelection >(); break;
374 case 4:
375 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QModelIndexList >(); break;
376 }
377 }
378
379#ifndef QT_NO_PROPERTIES
380 else if (_c == QMetaObject::ReadProperty) {
381 Q_ASSERT(staticMetaObject.cast(_o));
382 auto *_t = static_cast<QItemSelectionModel *>(_o);
383 Q_UNUSED(_t)
384 void *_v = _a[0];
385 switch (_id) {
386 case 0: *reinterpret_cast< QAbstractItemModel**>(_v) = _t->model(); break;
387 case 1: *reinterpret_cast< bool*>(_v) = _t->hasSelection(); break;
388 case 2: *reinterpret_cast< QModelIndex*>(_v) = _t->currentIndex(); break;
389 case 3: *reinterpret_cast< QItemSelection*>(_v) = _t->selection(); break;
390 case 4: *reinterpret_cast< QModelIndexList*>(_v) = _t->selectedIndexes(); break;
391 default: break;
392 }
393 } else if (_c == QMetaObject::WriteProperty) {
394 Q_ASSERT(staticMetaObject.cast(_o));
395 auto *_t = static_cast<QItemSelectionModel *>(_o);
396 Q_UNUSED(_t)
397 void *_v = _a[0];
398 switch (_id) {
399 case 0: _t->setModel(*reinterpret_cast< QAbstractItemModel**>(_v)); break;
400 default: break;
401 }
402 } else if (_c == QMetaObject::ResetProperty) {
403 } else if (_c == QMetaObject::BindableProperty) {
404 }
405#endif // QT_NO_PROPERTIES
406}
407
408const QMetaObject QItemSelectionModel::staticMetaObject = { {
409 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
410 qt_meta_stringdata_QItemSelectionModel.offsetsAndSize,
411 qt_meta_data_QItemSelectionModel,
412 qt_static_metacall,
413 nullptr,
414qt_incomplete_metaTypeArray<qt_meta_stringdata_QItemSelectionModel_t
415, QtPrivate::TypeAndForceComplete<QAbstractItemModel*, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QModelIndex, std::true_type>, QtPrivate::TypeAndForceComplete<QItemSelection, std::true_type>, QtPrivate::TypeAndForceComplete<QModelIndexList, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QItemSelection &, std::false_type>, QtPrivate::TypeAndForceComplete<const QItemSelection &, 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<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, 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<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractItemModel *, std::false_type>
416, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<QItemSelectionModel::SelectionFlags, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<QItemSelectionModel::SelectionFlags, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QItemSelection &, std::false_type>, QtPrivate::TypeAndForceComplete<QItemSelectionModel::SelectionFlags, 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<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QList<QPersistentModelIndex> &, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractItemModel::LayoutChangeHint, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QList<QPersistentModelIndex> &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QList<QPersistentModelIndex> &, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractItemModel::LayoutChangeHint, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QList<QPersistentModelIndex> &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
417, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<QModelIndexList, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<QModelIndexList, std::false_type>, QtPrivate::TypeAndForceComplete<QModelIndexList, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<QModelIndexList, std::false_type>
418
419>,
420 nullptr
421} };
422
423
424const QMetaObject *QItemSelectionModel::metaObject() const
425{
426 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
427}
428
429void *QItemSelectionModel::qt_metacast(const char *_clname)
430{
431 if (!_clname) return nullptr;
432 if (!strcmp(_clname, qt_meta_stringdata_QItemSelectionModel.stringdata0))
433 return static_cast<void*>(this);
434 return QObject::qt_metacast(_clname);
435}
436
437int QItemSelectionModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
438{
439 _id = QObject::qt_metacall(_c, _id, _a);
440 if (_id < 0)
441 return _id;
442 if (_c == QMetaObject::InvokeMetaMethod) {
443 if (_id < 35)
444 qt_static_metacall(this, _c, _id, _a);
445 _id -= 35;
446 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
447 if (_id < 35)
448 qt_static_metacall(this, _c, _id, _a);
449 _id -= 35;
450 }
451#ifndef QT_NO_PROPERTIES
452 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
453 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
454 || _c == QMetaObject::RegisterPropertyMetaType) {
455 qt_static_metacall(this, _c, _id, _a);
456 _id -= 5;
457 }
458#endif // QT_NO_PROPERTIES
459 return _id;
460}
461
462// SIGNAL 0
463void QItemSelectionModel::selectionChanged(const QItemSelection & _t1, const QItemSelection & _t2)
464{
465 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
466 QMetaObject::activate(this, &staticMetaObject, 0, _a);
467}
468
469// SIGNAL 1
470void QItemSelectionModel::currentChanged(const QModelIndex & _t1, const QModelIndex & _t2)
471{
472 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
473 QMetaObject::activate(this, &staticMetaObject, 1, _a);
474}
475
476// SIGNAL 2
477void QItemSelectionModel::currentRowChanged(const QModelIndex & _t1, const QModelIndex & _t2)
478{
479 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
480 QMetaObject::activate(this, &staticMetaObject, 2, _a);
481}
482
483// SIGNAL 3
484void QItemSelectionModel::currentColumnChanged(const QModelIndex & _t1, const QModelIndex & _t2)
485{
486 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
487 QMetaObject::activate(this, &staticMetaObject, 3, _a);
488}
489
490// SIGNAL 4
491void QItemSelectionModel::modelChanged(QAbstractItemModel * _t1)
492{
493 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
494 QMetaObject::activate(this, &staticMetaObject, 4, _a);
495}
496QT_WARNING_POP
497QT_END_MOC_NAMESPACE
498