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