1/****************************************************************************
2** Meta object code from reading C++ file 'qlistview.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/qlistview.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qlistview.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_QListView_t {
25 const uint offsetsAndSize[72];
26 char stringdata0[354];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QListView_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QListView_t qt_meta_stringdata_QListView = {
31 {
32QT_MOC_LITERAL(0, 9), // "QListView"
33QT_MOC_LITERAL(10, 12), // "indexesMoved"
34QT_MOC_LITERAL(23, 0), // ""
35QT_MOC_LITERAL(24, 15), // "QModelIndexList"
36QT_MOC_LITERAL(40, 7), // "indexes"
37QT_MOC_LITERAL(48, 8), // "movement"
38QT_MOC_LITERAL(57, 8), // "Movement"
39QT_MOC_LITERAL(66, 4), // "flow"
40QT_MOC_LITERAL(71, 4), // "Flow"
41QT_MOC_LITERAL(76, 10), // "isWrapping"
42QT_MOC_LITERAL(87, 10), // "resizeMode"
43QT_MOC_LITERAL(98, 10), // "ResizeMode"
44QT_MOC_LITERAL(109, 10), // "layoutMode"
45QT_MOC_LITERAL(120, 10), // "LayoutMode"
46QT_MOC_LITERAL(131, 7), // "spacing"
47QT_MOC_LITERAL(139, 8), // "gridSize"
48QT_MOC_LITERAL(148, 8), // "viewMode"
49QT_MOC_LITERAL(157, 8), // "ViewMode"
50QT_MOC_LITERAL(166, 11), // "modelColumn"
51QT_MOC_LITERAL(178, 16), // "uniformItemSizes"
52QT_MOC_LITERAL(195, 9), // "batchSize"
53QT_MOC_LITERAL(205, 8), // "wordWrap"
54QT_MOC_LITERAL(214, 20), // "selectionRectVisible"
55QT_MOC_LITERAL(235, 13), // "itemAlignment"
56QT_MOC_LITERAL(249, 13), // "Qt::Alignment"
57QT_MOC_LITERAL(263, 6), // "Static"
58QT_MOC_LITERAL(270, 4), // "Free"
59QT_MOC_LITERAL(275, 4), // "Snap"
60QT_MOC_LITERAL(280, 11), // "LeftToRight"
61QT_MOC_LITERAL(292, 11), // "TopToBottom"
62QT_MOC_LITERAL(304, 5), // "Fixed"
63QT_MOC_LITERAL(310, 6), // "Adjust"
64QT_MOC_LITERAL(317, 10), // "SinglePass"
65QT_MOC_LITERAL(328, 7), // "Batched"
66QT_MOC_LITERAL(336, 8), // "ListMode"
67QT_MOC_LITERAL(345, 8) // "IconMode"
68
69 },
70 "QListView\0indexesMoved\0\0QModelIndexList\0"
71 "indexes\0movement\0Movement\0flow\0Flow\0"
72 "isWrapping\0resizeMode\0ResizeMode\0"
73 "layoutMode\0LayoutMode\0spacing\0gridSize\0"
74 "viewMode\0ViewMode\0modelColumn\0"
75 "uniformItemSizes\0batchSize\0wordWrap\0"
76 "selectionRectVisible\0itemAlignment\0"
77 "Qt::Alignment\0Static\0Free\0Snap\0"
78 "LeftToRight\0TopToBottom\0Fixed\0Adjust\0"
79 "SinglePass\0Batched\0ListMode\0IconMode"
80};
81#undef QT_MOC_LITERAL
82
83static const uint qt_meta_data_QListView[] = {
84
85 // content:
86 9, // revision
87 0, // classname
88 0, 0, // classinfo
89 1, 14, // methods
90 14, 23, // properties
91 5, 93, // enums/sets
92 0, 0, // constructors
93 0, // flags
94 1, // signalCount
95
96 // signals: name, argc, parameters, tag, flags, initial metatype offsets
97 1, 1, 20, 2, 0x06, 14 /* Public */,
98
99 // signals: parameters
100 QMetaType::Void, 0x80000000 | 3, 4,
101
102 // properties: name, type, flags
103 5, 0x80000000 | 6, 0x0001510b, uint(-1), 0,
104 7, 0x80000000 | 8, 0x0001510b, uint(-1), 0,
105 9, QMetaType::Bool, 0x00015003, uint(-1), 0,
106 10, 0x80000000 | 11, 0x0001510b, uint(-1), 0,
107 12, 0x80000000 | 13, 0x0001510b, uint(-1), 0,
108 14, QMetaType::Int, 0x00015103, uint(-1), 0,
109 15, QMetaType::QSize, 0x00015103, uint(-1), 0,
110 16, 0x80000000 | 17, 0x0001510b, uint(-1), 0,
111 18, QMetaType::Int, 0x00015103, uint(-1), 0,
112 19, QMetaType::Bool, 0x00015103, uint(-1), 0,
113 20, QMetaType::Int, 0x00015103, uint(-1), 0,
114 21, QMetaType::Bool, 0x00015103, uint(-1), 0,
115 22, QMetaType::Bool, 0x00015103, uint(-1), 0,
116 23, 0x80000000 | 24, 0x0001510b, uint(-1), 0,
117
118 // enums: name, alias, flags, count, data
119 6, 6, 0x0, 3, 118,
120 8, 8, 0x0, 2, 124,
121 11, 11, 0x0, 2, 128,
122 13, 13, 0x0, 2, 132,
123 17, 17, 0x0, 2, 136,
124
125 // enum data: key, value
126 25, uint(QListView::Static),
127 26, uint(QListView::Free),
128 27, uint(QListView::Snap),
129 28, uint(QListView::LeftToRight),
130 29, uint(QListView::TopToBottom),
131 30, uint(QListView::Fixed),
132 31, uint(QListView::Adjust),
133 32, uint(QListView::SinglePass),
134 33, uint(QListView::Batched),
135 34, uint(QListView::ListMode),
136 35, uint(QListView::IconMode),
137
138 0 // eod
139};
140
141void QListView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
142{
143 if (_c == QMetaObject::InvokeMetaMethod) {
144 Q_ASSERT(staticMetaObject.cast(_o));
145 auto *_t = static_cast<QListView *>(_o);
146 Q_UNUSED(_t)
147 switch (_id) {
148 case 0: _t->indexesMoved((*reinterpret_cast< const QModelIndexList(*)>(_a[1]))); break;
149 default: ;
150 }
151 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
152 switch (_id) {
153 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
154 case 0:
155 switch (*reinterpret_cast<int*>(_a[1])) {
156 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
157 case 0:
158 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QModelIndexList >(); break;
159 }
160 break;
161 }
162 } else if (_c == QMetaObject::IndexOfMethod) {
163 int *result = reinterpret_cast<int *>(_a[0]);
164 {
165 using _t = void (QListView::*)(const QModelIndexList & );
166 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QListView::indexesMoved)) {
167 *result = 0;
168 return;
169 }
170 }
171 }
172#ifndef QT_NO_PROPERTIES
173 else if (_c == QMetaObject::ReadProperty) {
174 Q_ASSERT(staticMetaObject.cast(_o));
175 auto *_t = static_cast<QListView *>(_o);
176 Q_UNUSED(_t)
177 void *_v = _a[0];
178 switch (_id) {
179 case 0: *reinterpret_cast< Movement*>(_v) = _t->movement(); break;
180 case 1: *reinterpret_cast< Flow*>(_v) = _t->flow(); break;
181 case 2: *reinterpret_cast< bool*>(_v) = _t->isWrapping(); break;
182 case 3: *reinterpret_cast< ResizeMode*>(_v) = _t->resizeMode(); break;
183 case 4: *reinterpret_cast< LayoutMode*>(_v) = _t->layoutMode(); break;
184 case 5: *reinterpret_cast< int*>(_v) = _t->spacing(); break;
185 case 6: *reinterpret_cast< QSize*>(_v) = _t->gridSize(); break;
186 case 7: *reinterpret_cast< ViewMode*>(_v) = _t->viewMode(); break;
187 case 8: *reinterpret_cast< int*>(_v) = _t->modelColumn(); break;
188 case 9: *reinterpret_cast< bool*>(_v) = _t->uniformItemSizes(); break;
189 case 10: *reinterpret_cast< int*>(_v) = _t->batchSize(); break;
190 case 11: *reinterpret_cast< bool*>(_v) = _t->wordWrap(); break;
191 case 12: *reinterpret_cast< bool*>(_v) = _t->isSelectionRectVisible(); break;
192 case 13: *reinterpret_cast< Qt::Alignment*>(_v) = _t->itemAlignment(); break;
193 default: break;
194 }
195 } else if (_c == QMetaObject::WriteProperty) {
196 Q_ASSERT(staticMetaObject.cast(_o));
197 auto *_t = static_cast<QListView *>(_o);
198 Q_UNUSED(_t)
199 void *_v = _a[0];
200 switch (_id) {
201 case 0: _t->setMovement(*reinterpret_cast< Movement*>(_v)); break;
202 case 1: _t->setFlow(*reinterpret_cast< Flow*>(_v)); break;
203 case 2: _t->setWrapping(*reinterpret_cast< bool*>(_v)); break;
204 case 3: _t->setResizeMode(*reinterpret_cast< ResizeMode*>(_v)); break;
205 case 4: _t->setLayoutMode(*reinterpret_cast< LayoutMode*>(_v)); break;
206 case 5: _t->setSpacing(*reinterpret_cast< int*>(_v)); break;
207 case 6: _t->setGridSize(*reinterpret_cast< QSize*>(_v)); break;
208 case 7: _t->setViewMode(*reinterpret_cast< ViewMode*>(_v)); break;
209 case 8: _t->setModelColumn(*reinterpret_cast< int*>(_v)); break;
210 case 9: _t->setUniformItemSizes(*reinterpret_cast< bool*>(_v)); break;
211 case 10: _t->setBatchSize(*reinterpret_cast< int*>(_v)); break;
212 case 11: _t->setWordWrap(*reinterpret_cast< bool*>(_v)); break;
213 case 12: _t->setSelectionRectVisible(*reinterpret_cast< bool*>(_v)); break;
214 case 13: _t->setItemAlignment(*reinterpret_cast< Qt::Alignment*>(_v)); break;
215 default: break;
216 }
217 } else if (_c == QMetaObject::ResetProperty) {
218 } else if (_c == QMetaObject::BindableProperty) {
219 }
220#endif // QT_NO_PROPERTIES
221}
222
223const QMetaObject QListView::staticMetaObject = { {
224 QMetaObject::SuperData::link<QAbstractItemView::staticMetaObject>(),
225 qt_meta_stringdata_QListView.offsetsAndSize,
226 qt_meta_data_QListView,
227 qt_static_metacall,
228 nullptr,
229qt_incomplete_metaTypeArray<qt_meta_stringdata_QListView_t
230, QtPrivate::TypeAndForceComplete<Movement, std::true_type>, QtPrivate::TypeAndForceComplete<Flow, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<ResizeMode, std::true_type>, QtPrivate::TypeAndForceComplete<LayoutMode, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<QSize, std::true_type>, QtPrivate::TypeAndForceComplete<ViewMode, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::Alignment, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndexList &, std::false_type>
231
232
233
234>,
235 nullptr
236} };
237
238
239const QMetaObject *QListView::metaObject() const
240{
241 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
242}
243
244void *QListView::qt_metacast(const char *_clname)
245{
246 if (!_clname) return nullptr;
247 if (!strcmp(_clname, qt_meta_stringdata_QListView.stringdata0))
248 return static_cast<void*>(this);
249 return QAbstractItemView::qt_metacast(_clname);
250}
251
252int QListView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
253{
254 _id = QAbstractItemView::qt_metacall(_c, _id, _a);
255 if (_id < 0)
256 return _id;
257 if (_c == QMetaObject::InvokeMetaMethod) {
258 if (_id < 1)
259 qt_static_metacall(this, _c, _id, _a);
260 _id -= 1;
261 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
262 if (_id < 1)
263 qt_static_metacall(this, _c, _id, _a);
264 _id -= 1;
265 }
266#ifndef QT_NO_PROPERTIES
267 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
268 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
269 || _c == QMetaObject::RegisterPropertyMetaType) {
270 qt_static_metacall(this, _c, _id, _a);
271 _id -= 14;
272 }
273#endif // QT_NO_PROPERTIES
274 return _id;
275}
276
277// SIGNAL 0
278void QListView::indexesMoved(const QModelIndexList & _t1)
279{
280 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
281 QMetaObject::activate(this, &staticMetaObject, 0, _a);
282}
283QT_WARNING_POP
284QT_END_MOC_NAMESPACE
285