1/****************************************************************************
2** Meta object code from reading C++ file 'qundoview.cpp'
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 <QtCore/qbytearray.h>
11#include <QtCore/qmetatype.h>
12#if !defined(Q_MOC_OUTPUT_REVISION)
13#error "The header file 'qundoview.cpp' doesn't include <QObject>."
14#elif Q_MOC_OUTPUT_REVISION != 68
15#error "This file was generated using the moc from 6.0.0. It"
16#error "cannot be used with the include files from this version of Qt."
17#error "(The moc has changed too much.)"
18#endif
19
20QT_BEGIN_MOC_NAMESPACE
21QT_WARNING_PUSH
22QT_WARNING_DISABLE_DEPRECATED
23struct qt_meta_stringdata_QUndoModel_t {
24 const uint offsetsAndSize[22];
25 char stringdata0[110];
26};
27#define QT_MOC_LITERAL(ofs, len) \
28 uint(offsetof(qt_meta_stringdata_QUndoModel_t, stringdata0) + ofs), len
29static const qt_meta_stringdata_QUndoModel_t qt_meta_stringdata_QUndoModel = {
30 {
31QT_MOC_LITERAL(0, 10), // "QUndoModel"
32QT_MOC_LITERAL(11, 8), // "setStack"
33QT_MOC_LITERAL(20, 0), // ""
34QT_MOC_LITERAL(21, 11), // "QUndoStack*"
35QT_MOC_LITERAL(33, 5), // "stack"
36QT_MOC_LITERAL(39, 12), // "stackChanged"
37QT_MOC_LITERAL(52, 14), // "stackDestroyed"
38QT_MOC_LITERAL(67, 3), // "obj"
39QT_MOC_LITERAL(71, 20), // "setStackCurrentIndex"
40QT_MOC_LITERAL(92, 11), // "QModelIndex"
41QT_MOC_LITERAL(104, 5) // "index"
42
43 },
44 "QUndoModel\0setStack\0\0QUndoStack*\0stack\0"
45 "stackChanged\0stackDestroyed\0obj\0"
46 "setStackCurrentIndex\0QModelIndex\0index"
47};
48#undef QT_MOC_LITERAL
49
50static const uint qt_meta_data_QUndoModel[] = {
51
52 // content:
53 9, // revision
54 0, // classname
55 0, 0, // classinfo
56 4, 14, // methods
57 0, 0, // properties
58 0, 0, // enums/sets
59 0, 0, // constructors
60 0, // flags
61 0, // signalCount
62
63 // slots: name, argc, parameters, tag, flags, initial metatype offsets
64 1, 1, 38, 2, 0x0a, 0 /* Public */,
65 5, 0, 41, 2, 0x08, 2 /* Private */,
66 6, 1, 42, 2, 0x08, 3 /* Private */,
67 8, 1, 45, 2, 0x08, 5 /* Private */,
68
69 // slots: parameters
70 QMetaType::Void, 0x80000000 | 3, 4,
71 QMetaType::Void,
72 QMetaType::Void, QMetaType::QObjectStar, 7,
73 QMetaType::Void, 0x80000000 | 9, 10,
74
75 0 // eod
76};
77
78void QUndoModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
79{
80 if (_c == QMetaObject::InvokeMetaMethod) {
81 Q_ASSERT(staticMetaObject.cast(_o));
82 auto *_t = static_cast<QUndoModel *>(_o);
83 Q_UNUSED(_t)
84 switch (_id) {
85 case 0: _t->setStack((*reinterpret_cast< QUndoStack*(*)>(_a[1]))); break;
86 case 1: _t->stackChanged(); break;
87 case 2: _t->stackDestroyed((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
88 case 3: _t->setStackCurrentIndex((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
89 default: ;
90 }
91 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
92 switch (_id) {
93 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
94 case 0:
95 switch (*reinterpret_cast<int*>(_a[1])) {
96 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
97 case 0:
98 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QUndoStack* >(); break;
99 }
100 break;
101 }
102 }
103}
104
105const QMetaObject QUndoModel::staticMetaObject = { {
106 QMetaObject::SuperData::link<QAbstractItemModel::staticMetaObject>(),
107 qt_meta_stringdata_QUndoModel.offsetsAndSize,
108 qt_meta_data_QUndoModel,
109 qt_static_metacall,
110 nullptr,
111qt_incomplete_metaTypeArray<qt_meta_stringdata_QUndoModel_t
112
113, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QUndoStack *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QObject *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QModelIndex &, std::false_type>
114
115
116>,
117 nullptr
118} };
119
120
121const QMetaObject *QUndoModel::metaObject() const
122{
123 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
124}
125
126void *QUndoModel::qt_metacast(const char *_clname)
127{
128 if (!_clname) return nullptr;
129 if (!strcmp(_clname, qt_meta_stringdata_QUndoModel.stringdata0))
130 return static_cast<void*>(this);
131 return QAbstractItemModel::qt_metacast(_clname);
132}
133
134int QUndoModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
135{
136 _id = QAbstractItemModel::qt_metacall(_c, _id, _a);
137 if (_id < 0)
138 return _id;
139 if (_c == QMetaObject::InvokeMetaMethod) {
140 if (_id < 4)
141 qt_static_metacall(this, _c, _id, _a);
142 _id -= 4;
143 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
144 if (_id < 4)
145 qt_static_metacall(this, _c, _id, _a);
146 _id -= 4;
147 }
148 return _id;
149}
150QT_WARNING_POP
151QT_END_MOC_NAMESPACE
152