1/****************************************************************************
2** Meta object code from reading C++ file 'qlistwidget.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/qlistwidget.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qlistwidget.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_QListWidget_t {
25 const uint offsetsAndSize[76];
26 char stringdata0[539];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QListWidget_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QListWidget_t qt_meta_stringdata_QListWidget = {
31 {
32QT_MOC_LITERAL(0, 11), // "QListWidget"
33QT_MOC_LITERAL(12, 11), // "itemPressed"
34QT_MOC_LITERAL(24, 0), // ""
35QT_MOC_LITERAL(25, 16), // "QListWidgetItem*"
36QT_MOC_LITERAL(42, 4), // "item"
37QT_MOC_LITERAL(47, 11), // "itemClicked"
38QT_MOC_LITERAL(59, 17), // "itemDoubleClicked"
39QT_MOC_LITERAL(77, 13), // "itemActivated"
40QT_MOC_LITERAL(91, 11), // "itemEntered"
41QT_MOC_LITERAL(103, 11), // "itemChanged"
42QT_MOC_LITERAL(115, 18), // "currentItemChanged"
43QT_MOC_LITERAL(134, 7), // "current"
44QT_MOC_LITERAL(142, 8), // "previous"
45QT_MOC_LITERAL(151, 18), // "currentTextChanged"
46QT_MOC_LITERAL(170, 11), // "currentText"
47QT_MOC_LITERAL(182, 17), // "currentRowChanged"
48QT_MOC_LITERAL(200, 10), // "currentRow"
49QT_MOC_LITERAL(211, 20), // "itemSelectionChanged"
50QT_MOC_LITERAL(232, 12), // "scrollToItem"
51QT_MOC_LITERAL(245, 22), // "const QListWidgetItem*"
52QT_MOC_LITERAL(268, 29), // "QAbstractItemView::ScrollHint"
53QT_MOC_LITERAL(298, 4), // "hint"
54QT_MOC_LITERAL(303, 5), // "clear"
55QT_MOC_LITERAL(309, 18), // "_q_emitItemPressed"
56QT_MOC_LITERAL(328, 11), // "QModelIndex"
57QT_MOC_LITERAL(340, 5), // "index"
58QT_MOC_LITERAL(346, 18), // "_q_emitItemClicked"
59QT_MOC_LITERAL(365, 24), // "_q_emitItemDoubleClicked"
60QT_MOC_LITERAL(390, 20), // "_q_emitItemActivated"
61QT_MOC_LITERAL(411, 18), // "_q_emitItemEntered"
62QT_MOC_LITERAL(430, 18), // "_q_emitItemChanged"
63QT_MOC_LITERAL(449, 25), // "_q_emitCurrentItemChanged"
64QT_MOC_LITERAL(475, 7), // "_q_sort"
65QT_MOC_LITERAL(483, 14), // "_q_dataChanged"
66QT_MOC_LITERAL(498, 7), // "topLeft"
67QT_MOC_LITERAL(506, 11), // "bottomRight"
68QT_MOC_LITERAL(518, 5), // "count"
69QT_MOC_LITERAL(524, 14) // "sortingEnabled"
70
71 },
72 "QListWidget\0itemPressed\0\0QListWidgetItem*\0"
73 "item\0itemClicked\0itemDoubleClicked\0"
74 "itemActivated\0itemEntered\0itemChanged\0"
75 "currentItemChanged\0current\0previous\0"
76 "currentTextChanged\0currentText\0"
77 "currentRowChanged\0currentRow\0"
78 "itemSelectionChanged\0scrollToItem\0"
79 "const QListWidgetItem*\0"
80 "QAbstractItemView::ScrollHint\0hint\0"
81 "clear\0_q_emitItemPressed\0QModelIndex\0"
82 "index\0_q_emitItemClicked\0"
83 "_q_emitItemDoubleClicked\0_q_emitItemActivated\0"
84 "_q_emitItemEntered\0_q_emitItemChanged\0"
85 "_q_emitCurrentItemChanged\0_q_sort\0"
86 "_q_dataChanged\0topLeft\0bottomRight\0"
87 "count\0sortingEnabled"
88};
89#undef QT_MOC_LITERAL
90
91static const uint qt_meta_data_QListWidget[] = {
92
93 // content:
94 9, // revision
95 0, // classname
96 0, 0, // classinfo
97 22, 14, // methods
98 3, 214, // properties
99 0, 0, // enums/sets
100 0, 0, // constructors
101 0, // flags
102 10, // signalCount
103
104 // signals: name, argc, parameters, tag, flags, initial metatype offsets
105 1, 1, 146, 2, 0x06, 3 /* Public */,
106 5, 1, 149, 2, 0x06, 5 /* Public */,
107 6, 1, 152, 2, 0x06, 7 /* Public */,
108 7, 1, 155, 2, 0x06, 9 /* Public */,
109 8, 1, 158, 2, 0x06, 11 /* Public */,
110 9, 1, 161, 2, 0x06, 13 /* Public */,
111 10, 2, 164, 2, 0x06, 15 /* Public */,
112 13, 1, 169, 2, 0x06, 18 /* Public */,
113 15, 1, 172, 2, 0x06, 20 /* Public */,
114 17, 0, 175, 2, 0x06, 22 /* Public */,
115
116 // slots: name, argc, parameters, tag, flags, initial metatype offsets
117 18, 2, 176, 2, 0x0a, 23 /* Public */,
118 18, 1, 181, 2, 0x2a, 26 /* Public | MethodCloned */,
119 22, 0, 184, 2, 0x0a, 28 /* Public */,
120 23, 1, 185, 2, 0x08, 29 /* Private */,
121 26, 1, 188, 2, 0x08, 31 /* Private */,
122 27, 1, 191, 2, 0x08, 33 /* Private */,
123 28, 1, 194, 2, 0x08, 35 /* Private */,
124 29, 1, 197, 2, 0x08, 37 /* Private */,
125 30, 1, 200, 2, 0x08, 39 /* Private */,
126 31, 2, 203, 2, 0x08, 41 /* Private */,
127 32, 0, 208, 2, 0x08, 44 /* Private */,
128 33, 2, 209, 2, 0x08, 45 /* Private */,
129
130 // signals: parameters
131 QMetaType::Void, 0x80000000 | 3, 4,
132 QMetaType::Void, 0x80000000 | 3, 4,
133 QMetaType::Void, 0x80000000 | 3, 4,
134 QMetaType::Void, 0x80000000 | 3, 4,
135 QMetaType::Void, 0x80000000 | 3, 4,
136 QMetaType::Void, 0x80000000 | 3, 4,
137 QMetaType::Void, 0x80000000 | 3, 0x80000000 | 3, 11, 12,
138 QMetaType::Void, QMetaType::QString, 14,
139 QMetaType::Void, QMetaType::Int, 16,
140 QMetaType::Void,
141
142 // slots: parameters
143 QMetaType::Void, 0x80000000 | 19, 0x80000000 | 20, 4, 21,
144 QMetaType::Void, 0x80000000 | 19, 4,
145 QMetaType::Void,
146 QMetaType::Void, 0x80000000 | 24, 25,
147 QMetaType::Void, 0x80000000 | 24, 25,
148 QMetaType::Void, 0x80000000 | 24, 25,
149 QMetaType::Void, 0x80000000 | 24, 25,
150 QMetaType::Void, 0x80000000 | 24, 25,
151 QMetaType::Void, 0x80000000 | 24, 25,
152 QMetaType::Void, 0x80000000 | 24, 0x80000000 | 24, 12, 11,
153 QMetaType::Void,
154 QMetaType::Void, 0x80000000 | 24, 0x80000000 | 24, 34, 35,
155
156 // properties: name, type, flags
157 36, QMetaType::Int, 0x00015001, uint(-1), 0,
158 16, QMetaType::Int, 0x00115103, uint(8), 0,
159 37, QMetaType::Bool, 0x00015103, uint(-1), 0,
160
161 0 // eod
162};
163
164void QListWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
165{
166 if (_c == QMetaObject::InvokeMetaMethod) {
167 Q_ASSERT(staticMetaObject.cast(_o));
168 auto *_t = static_cast<QListWidget *>(_o);
169 Q_UNUSED(_t)
170 switch (_id) {
171 case 0: _t->itemPressed((*reinterpret_cast< QListWidgetItem*(*)>(_a[1]))); break;
172 case 1: _t->itemClicked((*reinterpret_cast< QListWidgetItem*(*)>(_a[1]))); break;
173 case 2: _t->itemDoubleClicked((*reinterpret_cast< QListWidgetItem*(*)>(_a[1]))); break;
174 case 3: _t->itemActivated((*reinterpret_cast< QListWidgetItem*(*)>(_a[1]))); break;
175 case 4: _t->itemEntered((*reinterpret_cast< QListWidgetItem*(*)>(_a[1]))); break;
176 case 5: _t->itemChanged((*reinterpret_cast< QListWidgetItem*(*)>(_a[1]))); break;
177 case 6: _t->currentItemChanged((*reinterpret_cast< QListWidgetItem*(*)>(_a[1])),(*reinterpret_cast< QListWidgetItem*(*)>(_a[2]))); break;
178 case 7: _t->currentTextChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
179 case 8: _t->currentRowChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
180 case 9: _t->itemSelectionChanged(); break;
181 case 10: _t->scrollToItem((*reinterpret_cast< const QListWidgetItem*(*)>(_a[1])),(*reinterpret_cast< QAbstractItemView::ScrollHint(*)>(_a[2]))); break;
182 case 11: _t->scrollToItem((*reinterpret_cast< const QListWidgetItem*(*)>(_a[1]))); break;
183 case 12: _t->clear(); break;
184 case 13: _t->d_func()->_q_emitItemPressed((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
185 case 14: _t->d_func()->_q_emitItemClicked((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
186 case 15: _t->d_func()->_q_emitItemDoubleClicked((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
187 case 16: _t->d_func()->_q_emitItemActivated((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
188 case 17: _t->d_func()->_q_emitItemEntered((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
189 case 18: _t->d_func()->_q_emitItemChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
190 case 19: _t->d_func()->_q_emitCurrentItemChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
191 case 20: _t->d_func()->_q_sort(); break;
192 case 21: _t->d_func()->_q_dataChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
193 default: ;
194 }
195 } else if (_c == QMetaObject::IndexOfMethod) {
196 int *result = reinterpret_cast<int *>(_a[0]);
197 {
198 using _t = void (QListWidget::*)(QListWidgetItem * );
199 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QListWidget::itemPressed)) {
200 *result = 0;
201 return;
202 }
203 }
204 {
205 using _t = void (QListWidget::*)(QListWidgetItem * );
206 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QListWidget::itemClicked)) {
207 *result = 1;
208 return;
209 }
210 }
211 {
212 using _t = void (QListWidget::*)(QListWidgetItem * );
213 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QListWidget::itemDoubleClicked)) {
214 *result = 2;
215 return;
216 }
217 }
218 {
219 using _t = void (QListWidget::*)(QListWidgetItem * );
220 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QListWidget::itemActivated)) {
221 *result = 3;
222 return;
223 }
224 }
225 {
226 using _t = void (QListWidget::*)(QListWidgetItem * );
227 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QListWidget::itemEntered)) {
228 *result = 4;
229 return;
230 }
231 }
232 {
233 using _t = void (QListWidget::*)(QListWidgetItem * );
234 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QListWidget::itemChanged)) {
235 *result = 5;
236 return;
237 }
238 }
239 {
240 using _t = void (QListWidget::*)(QListWidgetItem * , QListWidgetItem * );
241 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QListWidget::currentItemChanged)) {
242 *result = 6;
243 return;
244 }
245 }
246 {
247 using _t = void (QListWidget::*)(const QString & );
248 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QListWidget::currentTextChanged)) {
249 *result = 7;
250 return;
251 }
252 }
253 {
254 using _t = void (QListWidget::*)(int );
255 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QListWidget::currentRowChanged)) {
256 *result = 8;
257 return;
258 }
259 }
260 {
261 using _t = void (QListWidget::*)();
262 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QListWidget::itemSelectionChanged)) {
263 *result = 9;
264 return;
265 }
266 }
267 }
268#ifndef QT_NO_PROPERTIES
269 else if (_c == QMetaObject::ReadProperty) {
270 Q_ASSERT(staticMetaObject.cast(_o));
271 auto *_t = static_cast<QListWidget *>(_o);
272 Q_UNUSED(_t)
273 void *_v = _a[0];
274 switch (_id) {
275 case 0: *reinterpret_cast< int*>(_v) = _t->count(); break;
276 case 1: *reinterpret_cast< int*>(_v) = _t->currentRow(); break;
277 case 2: *reinterpret_cast< bool*>(_v) = _t->isSortingEnabled(); break;
278 default: break;
279 }
280 } else if (_c == QMetaObject::WriteProperty) {
281 Q_ASSERT(staticMetaObject.cast(_o));
282 auto *_t = static_cast<QListWidget *>(_o);
283 Q_UNUSED(_t)
284 void *_v = _a[0];
285 switch (_id) {
286 case 1: _t->setCurrentRow(*reinterpret_cast< int*>(_v)); break;
287 case 2: _t->setSortingEnabled(*reinterpret_cast< bool*>(_v)); break;
288 default: break;
289 }
290 } else if (_c == QMetaObject::ResetProperty) {
291 } else if (_c == QMetaObject::BindableProperty) {
292 }
293#endif // QT_NO_PROPERTIES
294}
295
296const QMetaObject QListWidget::staticMetaObject = { {
297 QMetaObject::SuperData::link<QListView::staticMetaObject>(),
298 qt_meta_stringdata_QListWidget.offsetsAndSize,
299 qt_meta_data_QListWidget,
300 qt_static_metacall,
301 nullptr,
302qt_incomplete_metaTypeArray<qt_meta_stringdata_QListWidget_t
303, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QListWidgetItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QListWidgetItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QListWidgetItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QListWidgetItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QListWidgetItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QListWidgetItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QListWidgetItem *, std::false_type>, QtPrivate::TypeAndForceComplete<QListWidgetItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
304, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QListWidgetItem *, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractItemView::ScrollHint, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QListWidgetItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, 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<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<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<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<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>
305
306
307>,
308 nullptr
309} };
310
311
312const QMetaObject *QListWidget::metaObject() const
313{
314 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
315}
316
317void *QListWidget::qt_metacast(const char *_clname)
318{
319 if (!_clname) return nullptr;
320 if (!strcmp(_clname, qt_meta_stringdata_QListWidget.stringdata0))
321 return static_cast<void*>(this);
322 return QListView::qt_metacast(_clname);
323}
324
325int QListWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
326{
327 _id = QListView::qt_metacall(_c, _id, _a);
328 if (_id < 0)
329 return _id;
330 if (_c == QMetaObject::InvokeMetaMethod) {
331 if (_id < 22)
332 qt_static_metacall(this, _c, _id, _a);
333 _id -= 22;
334 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
335 if (_id < 22)
336 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
337 _id -= 22;
338 }
339#ifndef QT_NO_PROPERTIES
340 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
341 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
342 || _c == QMetaObject::RegisterPropertyMetaType) {
343 qt_static_metacall(this, _c, _id, _a);
344 _id -= 3;
345 }
346#endif // QT_NO_PROPERTIES
347 return _id;
348}
349
350// SIGNAL 0
351void QListWidget::itemPressed(QListWidgetItem * _t1)
352{
353 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
354 QMetaObject::activate(this, &staticMetaObject, 0, _a);
355}
356
357// SIGNAL 1
358void QListWidget::itemClicked(QListWidgetItem * _t1)
359{
360 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
361 QMetaObject::activate(this, &staticMetaObject, 1, _a);
362}
363
364// SIGNAL 2
365void QListWidget::itemDoubleClicked(QListWidgetItem * _t1)
366{
367 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
368 QMetaObject::activate(this, &staticMetaObject, 2, _a);
369}
370
371// SIGNAL 3
372void QListWidget::itemActivated(QListWidgetItem * _t1)
373{
374 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
375 QMetaObject::activate(this, &staticMetaObject, 3, _a);
376}
377
378// SIGNAL 4
379void QListWidget::itemEntered(QListWidgetItem * _t1)
380{
381 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
382 QMetaObject::activate(this, &staticMetaObject, 4, _a);
383}
384
385// SIGNAL 5
386void QListWidget::itemChanged(QListWidgetItem * _t1)
387{
388 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
389 QMetaObject::activate(this, &staticMetaObject, 5, _a);
390}
391
392// SIGNAL 6
393void QListWidget::currentItemChanged(QListWidgetItem * _t1, QListWidgetItem * _t2)
394{
395 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
396 QMetaObject::activate(this, &staticMetaObject, 6, _a);
397}
398
399// SIGNAL 7
400void QListWidget::currentTextChanged(const QString & _t1)
401{
402 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
403 QMetaObject::activate(this, &staticMetaObject, 7, _a);
404}
405
406// SIGNAL 8
407void QListWidget::currentRowChanged(int _t1)
408{
409 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
410 QMetaObject::activate(this, &staticMetaObject, 8, _a);
411}
412
413// SIGNAL 9
414void QListWidget::itemSelectionChanged()
415{
416 QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
417}
418QT_WARNING_POP
419QT_END_MOC_NAMESPACE
420