1/****************************************************************************
2** Meta object code from reading C++ file 'qtreeview.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/qtreeview.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qtreeview.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_QTreeView_t {
25 const uint offsetsAndSize[96];
26 char stringdata0[599];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QTreeView_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QTreeView_t qt_meta_stringdata_QTreeView = {
31 {
32QT_MOC_LITERAL(0, 9), // "QTreeView"
33QT_MOC_LITERAL(10, 8), // "expanded"
34QT_MOC_LITERAL(19, 0), // ""
35QT_MOC_LITERAL(20, 11), // "QModelIndex"
36QT_MOC_LITERAL(32, 5), // "index"
37QT_MOC_LITERAL(38, 9), // "collapsed"
38QT_MOC_LITERAL(48, 10), // "hideColumn"
39QT_MOC_LITERAL(59, 6), // "column"
40QT_MOC_LITERAL(66, 10), // "showColumn"
41QT_MOC_LITERAL(77, 6), // "expand"
42QT_MOC_LITERAL(84, 8), // "collapse"
43QT_MOC_LITERAL(93, 22), // "resizeColumnToContents"
44QT_MOC_LITERAL(116, 12), // "sortByColumn"
45QT_MOC_LITERAL(129, 13), // "Qt::SortOrder"
46QT_MOC_LITERAL(143, 5), // "order"
47QT_MOC_LITERAL(149, 9), // "expandAll"
48QT_MOC_LITERAL(159, 17), // "expandRecursively"
49QT_MOC_LITERAL(177, 5), // "depth"
50QT_MOC_LITERAL(183, 11), // "collapseAll"
51QT_MOC_LITERAL(195, 13), // "expandToDepth"
52QT_MOC_LITERAL(209, 13), // "columnResized"
53QT_MOC_LITERAL(223, 7), // "oldSize"
54QT_MOC_LITERAL(231, 7), // "newSize"
55QT_MOC_LITERAL(239, 18), // "columnCountChanged"
56QT_MOC_LITERAL(258, 8), // "oldCount"
57QT_MOC_LITERAL(267, 8), // "newCount"
58QT_MOC_LITERAL(276, 11), // "columnMoved"
59QT_MOC_LITERAL(288, 8), // "reexpand"
60QT_MOC_LITERAL(297, 11), // "rowsRemoved"
61QT_MOC_LITERAL(309, 6), // "parent"
62QT_MOC_LITERAL(316, 5), // "first"
63QT_MOC_LITERAL(322, 4), // "last"
64QT_MOC_LITERAL(327, 29), // "verticalScrollbarValueChanged"
65QT_MOC_LITERAL(357, 5), // "value"
66QT_MOC_LITERAL(363, 23), // "_q_endAnimatedOperation"
67QT_MOC_LITERAL(387, 22), // "_q_modelAboutToBeReset"
68QT_MOC_LITERAL(410, 23), // "_q_sortIndicatorChanged"
69QT_MOC_LITERAL(434, 15), // "autoExpandDelay"
70QT_MOC_LITERAL(450, 11), // "indentation"
71QT_MOC_LITERAL(462, 15), // "rootIsDecorated"
72QT_MOC_LITERAL(478, 17), // "uniformRowHeights"
73QT_MOC_LITERAL(496, 15), // "itemsExpandable"
74QT_MOC_LITERAL(512, 14), // "sortingEnabled"
75QT_MOC_LITERAL(527, 8), // "animated"
76QT_MOC_LITERAL(536, 19), // "allColumnsShowFocus"
77QT_MOC_LITERAL(556, 8), // "wordWrap"
78QT_MOC_LITERAL(565, 12), // "headerHidden"
79QT_MOC_LITERAL(578, 20) // "expandsOnDoubleClick"
80
81 },
82 "QTreeView\0expanded\0\0QModelIndex\0index\0"
83 "collapsed\0hideColumn\0column\0showColumn\0"
84 "expand\0collapse\0resizeColumnToContents\0"
85 "sortByColumn\0Qt::SortOrder\0order\0"
86 "expandAll\0expandRecursively\0depth\0"
87 "collapseAll\0expandToDepth\0columnResized\0"
88 "oldSize\0newSize\0columnCountChanged\0"
89 "oldCount\0newCount\0columnMoved\0reexpand\0"
90 "rowsRemoved\0parent\0first\0last\0"
91 "verticalScrollbarValueChanged\0value\0"
92 "_q_endAnimatedOperation\0_q_modelAboutToBeReset\0"
93 "_q_sortIndicatorChanged\0autoExpandDelay\0"
94 "indentation\0rootIsDecorated\0"
95 "uniformRowHeights\0itemsExpandable\0"
96 "sortingEnabled\0animated\0allColumnsShowFocus\0"
97 "wordWrap\0headerHidden\0expandsOnDoubleClick"
98};
99#undef QT_MOC_LITERAL
100
101static const uint qt_meta_data_QTreeView[] = {
102
103 // content:
104 9, // revision
105 0, // classname
106 0, 0, // classinfo
107 22, 14, // methods
108 11, 216, // properties
109 0, 0, // enums/sets
110 0, 0, // constructors
111 0, // flags
112 2, // signalCount
113
114 // signals: name, argc, parameters, tag, flags, initial metatype offsets
115 1, 1, 146, 2, 0x06, 11 /* Public */,
116 5, 1, 149, 2, 0x06, 13 /* Public */,
117
118 // slots: name, argc, parameters, tag, flags, initial metatype offsets
119 6, 1, 152, 2, 0x0a, 15 /* Public */,
120 8, 1, 155, 2, 0x0a, 17 /* Public */,
121 9, 1, 158, 2, 0x0a, 19 /* Public */,
122 10, 1, 161, 2, 0x0a, 21 /* Public */,
123 11, 1, 164, 2, 0x0a, 23 /* Public */,
124 12, 2, 167, 2, 0x0a, 25 /* Public */,
125 15, 0, 172, 2, 0x0a, 28 /* Public */,
126 16, 2, 173, 2, 0x0a, 29 /* Public */,
127 16, 1, 178, 2, 0x2a, 32 /* Public | MethodCloned */,
128 18, 0, 181, 2, 0x0a, 34 /* Public */,
129 19, 1, 182, 2, 0x0a, 35 /* Public */,
130 20, 3, 185, 2, 0x09, 37 /* Protected */,
131 23, 2, 192, 2, 0x09, 41 /* Protected */,
132 26, 0, 197, 2, 0x09, 44 /* Protected */,
133 27, 0, 198, 2, 0x09, 45 /* Protected */,
134 28, 3, 199, 2, 0x09, 46 /* Protected */,
135 32, 1, 206, 2, 0x09, 50 /* Protected */,
136 34, 0, 209, 2, 0x08, 52 /* Private */,
137 35, 0, 210, 2, 0x08, 53 /* Private */,
138 36, 2, 211, 2, 0x08, 54 /* Private */,
139
140 // signals: parameters
141 QMetaType::Void, 0x80000000 | 3, 4,
142 QMetaType::Void, 0x80000000 | 3, 4,
143
144 // slots: parameters
145 QMetaType::Void, QMetaType::Int, 7,
146 QMetaType::Void, QMetaType::Int, 7,
147 QMetaType::Void, 0x80000000 | 3, 4,
148 QMetaType::Void, 0x80000000 | 3, 4,
149 QMetaType::Void, QMetaType::Int, 7,
150 QMetaType::Void, QMetaType::Int, 0x80000000 | 13, 7, 14,
151 QMetaType::Void,
152 QMetaType::Void, 0x80000000 | 3, QMetaType::Int, 4, 17,
153 QMetaType::Void, 0x80000000 | 3, 4,
154 QMetaType::Void,
155 QMetaType::Void, QMetaType::Int, 17,
156 QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 7, 21, 22,
157 QMetaType::Void, QMetaType::Int, QMetaType::Int, 24, 25,
158 QMetaType::Void,
159 QMetaType::Void,
160 QMetaType::Void, 0x80000000 | 3, QMetaType::Int, QMetaType::Int, 29, 30, 31,
161 QMetaType::Void, QMetaType::Int, 33,
162 QMetaType::Void,
163 QMetaType::Void,
164 QMetaType::Void, QMetaType::Int, 0x80000000 | 13, 7, 14,
165
166 // properties: name, type, flags
167 37, QMetaType::Int, 0x00015103, uint(-1), 0,
168 38, QMetaType::Int, 0x00015107, uint(-1), 0,
169 39, QMetaType::Bool, 0x00015103, uint(-1), 0,
170 40, QMetaType::Bool, 0x00015103, uint(-1), 0,
171 41, QMetaType::Bool, 0x00015103, uint(-1), 0,
172 42, QMetaType::Bool, 0x00015103, uint(-1), 0,
173 43, QMetaType::Bool, 0x00015103, uint(-1), 0,
174 44, QMetaType::Bool, 0x00015103, uint(-1), 0,
175 45, QMetaType::Bool, 0x00015103, uint(-1), 0,
176 46, QMetaType::Bool, 0x00015103, uint(-1), 0,
177 47, QMetaType::Bool, 0x00015103, uint(-1), 0,
178
179 0 // eod
180};
181
182void QTreeView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
183{
184 if (_c == QMetaObject::InvokeMetaMethod) {
185 Q_ASSERT(staticMetaObject.cast(_o));
186 auto *_t = static_cast<QTreeView *>(_o);
187 Q_UNUSED(_t)
188 switch (_id) {
189 case 0: _t->expanded((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
190 case 1: _t->collapsed((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
191 case 2: _t->hideColumn((*reinterpret_cast< int(*)>(_a[1]))); break;
192 case 3: _t->showColumn((*reinterpret_cast< int(*)>(_a[1]))); break;
193 case 4: _t->expand((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
194 case 5: _t->collapse((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
195 case 6: _t->resizeColumnToContents((*reinterpret_cast< int(*)>(_a[1]))); break;
196 case 7: _t->sortByColumn((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< Qt::SortOrder(*)>(_a[2]))); break;
197 case 8: _t->expandAll(); break;
198 case 9: _t->expandRecursively((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
199 case 10: _t->expandRecursively((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
200 case 11: _t->collapseAll(); break;
201 case 12: _t->expandToDepth((*reinterpret_cast< int(*)>(_a[1]))); break;
202 case 13: _t->columnResized((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
203 case 14: _t->columnCountChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
204 case 15: _t->columnMoved(); break;
205 case 16: _t->reexpand(); break;
206 case 17: _t->rowsRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
207 case 18: _t->verticalScrollbarValueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
208 case 19: _t->d_func()->_q_endAnimatedOperation(); break;
209 case 20: _t->d_func()->_q_modelAboutToBeReset(); break;
210 case 21: _t->d_func()->_q_sortIndicatorChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< Qt::SortOrder(*)>(_a[2]))); break;
211 default: ;
212 }
213 } else if (_c == QMetaObject::IndexOfMethod) {
214 int *result = reinterpret_cast<int *>(_a[0]);
215 {
216 using _t = void (QTreeView::*)(const QModelIndex & );
217 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTreeView::expanded)) {
218 *result = 0;
219 return;
220 }
221 }
222 {
223 using _t = void (QTreeView::*)(const QModelIndex & );
224 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTreeView::collapsed)) {
225 *result = 1;
226 return;
227 }
228 }
229 }
230#ifndef QT_NO_PROPERTIES
231 else if (_c == QMetaObject::ReadProperty) {
232 Q_ASSERT(staticMetaObject.cast(_o));
233 auto *_t = static_cast<QTreeView *>(_o);
234 Q_UNUSED(_t)
235 void *_v = _a[0];
236 switch (_id) {
237 case 0: *reinterpret_cast< int*>(_v) = _t->autoExpandDelay(); break;
238 case 1: *reinterpret_cast< int*>(_v) = _t->indentation(); break;
239 case 2: *reinterpret_cast< bool*>(_v) = _t->rootIsDecorated(); break;
240 case 3: *reinterpret_cast< bool*>(_v) = _t->uniformRowHeights(); break;
241 case 4: *reinterpret_cast< bool*>(_v) = _t->itemsExpandable(); break;
242 case 5: *reinterpret_cast< bool*>(_v) = _t->isSortingEnabled(); break;
243 case 6: *reinterpret_cast< bool*>(_v) = _t->isAnimated(); break;
244 case 7: *reinterpret_cast< bool*>(_v) = _t->allColumnsShowFocus(); break;
245 case 8: *reinterpret_cast< bool*>(_v) = _t->wordWrap(); break;
246 case 9: *reinterpret_cast< bool*>(_v) = _t->isHeaderHidden(); break;
247 case 10: *reinterpret_cast< bool*>(_v) = _t->expandsOnDoubleClick(); break;
248 default: break;
249 }
250 } else if (_c == QMetaObject::WriteProperty) {
251 Q_ASSERT(staticMetaObject.cast(_o));
252 auto *_t = static_cast<QTreeView *>(_o);
253 Q_UNUSED(_t)
254 void *_v = _a[0];
255 switch (_id) {
256 case 0: _t->setAutoExpandDelay(*reinterpret_cast< int*>(_v)); break;
257 case 1: _t->setIndentation(*reinterpret_cast< int*>(_v)); break;
258 case 2: _t->setRootIsDecorated(*reinterpret_cast< bool*>(_v)); break;
259 case 3: _t->setUniformRowHeights(*reinterpret_cast< bool*>(_v)); break;
260 case 4: _t->setItemsExpandable(*reinterpret_cast< bool*>(_v)); break;
261 case 5: _t->setSortingEnabled(*reinterpret_cast< bool*>(_v)); break;
262 case 6: _t->setAnimated(*reinterpret_cast< bool*>(_v)); break;
263 case 7: _t->setAllColumnsShowFocus(*reinterpret_cast< bool*>(_v)); break;
264 case 8: _t->setWordWrap(*reinterpret_cast< bool*>(_v)); break;
265 case 9: _t->setHeaderHidden(*reinterpret_cast< bool*>(_v)); break;
266 case 10: _t->setExpandsOnDoubleClick(*reinterpret_cast< bool*>(_v)); break;
267 default: break;
268 }
269 } else if (_c == QMetaObject::ResetProperty) {
270 Q_ASSERT(staticMetaObject.cast(_o));
271 auto *_t = static_cast<QTreeView *>(_o);
272 Q_UNUSED(_t)
273 switch (_id) {
274 case 1: _t->resetIndentation(); break;
275 default: break;
276 }
277 } else if (_c == QMetaObject::BindableProperty) {
278 }
279#endif // QT_NO_PROPERTIES
280}
281
282const QMetaObject QTreeView::staticMetaObject = { {
283 QMetaObject::SuperData::link<QAbstractItemView::staticMetaObject>(),
284 qt_meta_stringdata_QTreeView.offsetsAndSize,
285 qt_meta_data_QTreeView,
286 qt_static_metacall,
287 nullptr,
288qt_incomplete_metaTypeArray<qt_meta_stringdata_QTreeView_t
289, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_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>
290, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, 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<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::SortOrder, 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<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, 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<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::SortOrder, std::false_type>
291
292
293>,
294 nullptr
295} };
296
297
298const QMetaObject *QTreeView::metaObject() const
299{
300 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
301}
302
303void *QTreeView::qt_metacast(const char *_clname)
304{
305 if (!_clname) return nullptr;
306 if (!strcmp(_clname, qt_meta_stringdata_QTreeView.stringdata0))
307 return static_cast<void*>(this);
308 return QAbstractItemView::qt_metacast(_clname);
309}
310
311int QTreeView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
312{
313 _id = QAbstractItemView::qt_metacall(_c, _id, _a);
314 if (_id < 0)
315 return _id;
316 if (_c == QMetaObject::InvokeMetaMethod) {
317 if (_id < 22)
318 qt_static_metacall(this, _c, _id, _a);
319 _id -= 22;
320 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
321 if (_id < 22)
322 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
323 _id -= 22;
324 }
325#ifndef QT_NO_PROPERTIES
326 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
327 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
328 || _c == QMetaObject::RegisterPropertyMetaType) {
329 qt_static_metacall(this, _c, _id, _a);
330 _id -= 11;
331 }
332#endif // QT_NO_PROPERTIES
333 return _id;
334}
335
336// SIGNAL 0
337void QTreeView::expanded(const QModelIndex & _t1)
338{
339 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
340 QMetaObject::activate(this, &staticMetaObject, 0, _a);
341}
342
343// SIGNAL 1
344void QTreeView::collapsed(const QModelIndex & _t1)
345{
346 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
347 QMetaObject::activate(this, &staticMetaObject, 1, _a);
348}
349QT_WARNING_POP
350QT_END_MOC_NAMESPACE
351