1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qundoview.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 "util/qundoview.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qundoview.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 | |
21 | QT_BEGIN_MOC_NAMESPACE |
22 | QT_WARNING_PUSH |
23 | QT_WARNING_DISABLE_DEPRECATED |
24 | struct qt_meta_stringdata_QUndoView_t { |
25 | const uint offsetsAndSize[20]; |
26 | char stringdata0[86]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QUndoView_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QUndoView_t qt_meta_stringdata_QUndoView = { |
31 | { |
32 | QT_MOC_LITERAL(0, 9), // "QUndoView" |
33 | QT_MOC_LITERAL(10, 8), // "setStack" |
34 | QT_MOC_LITERAL(19, 0), // "" |
35 | QT_MOC_LITERAL(20, 11), // "QUndoStack*" |
36 | QT_MOC_LITERAL(32, 5), // "stack" |
37 | QT_MOC_LITERAL(38, 8), // "setGroup" |
38 | QT_MOC_LITERAL(47, 11), // "QUndoGroup*" |
39 | QT_MOC_LITERAL(59, 5), // "group" |
40 | QT_MOC_LITERAL(65, 10), // "emptyLabel" |
41 | QT_MOC_LITERAL(76, 9) // "cleanIcon" |
42 | |
43 | }, |
44 | "QUndoView\0setStack\0\0QUndoStack*\0stack\0" |
45 | "setGroup\0QUndoGroup*\0group\0emptyLabel\0" |
46 | "cleanIcon" |
47 | }; |
48 | #undef QT_MOC_LITERAL |
49 | |
50 | static const uint qt_meta_data_QUndoView[] = { |
51 | |
52 | // content: |
53 | 9, // revision |
54 | 0, // classname |
55 | 0, 0, // classinfo |
56 | 2, 14, // methods |
57 | 2, 32, // 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, 26, 2, 0x0a, 2 /* Public */, |
65 | 5, 1, 29, 2, 0x0a, 4 /* Public */, |
66 | |
67 | // slots: parameters |
68 | QMetaType::Void, 0x80000000 | 3, 4, |
69 | QMetaType::Void, 0x80000000 | 6, 7, |
70 | |
71 | // properties: name, type, flags |
72 | 8, QMetaType::QString, 0x00015103, uint(-1), 0, |
73 | 9, QMetaType::QIcon, 0x00015103, uint(-1), 0, |
74 | |
75 | 0 // eod |
76 | }; |
77 | |
78 | void QUndoView::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<QUndoView *>(_o); |
83 | Q_UNUSED(_t) |
84 | switch (_id) { |
85 | case 0: _t->setStack((*reinterpret_cast< QUndoStack*(*)>(_a[1]))); break; |
86 | case 1: _t->setGroup((*reinterpret_cast< QUndoGroup*(*)>(_a[1]))); break; |
87 | default: ; |
88 | } |
89 | } |
90 | #ifndef QT_NO_PROPERTIES |
91 | else if (_c == QMetaObject::ReadProperty) { |
92 | Q_ASSERT(staticMetaObject.cast(_o)); |
93 | auto *_t = static_cast<QUndoView *>(_o); |
94 | Q_UNUSED(_t) |
95 | void *_v = _a[0]; |
96 | switch (_id) { |
97 | case 0: *reinterpret_cast< QString*>(_v) = _t->emptyLabel(); break; |
98 | case 1: *reinterpret_cast< QIcon*>(_v) = _t->cleanIcon(); break; |
99 | default: break; |
100 | } |
101 | } else if (_c == QMetaObject::WriteProperty) { |
102 | Q_ASSERT(staticMetaObject.cast(_o)); |
103 | auto *_t = static_cast<QUndoView *>(_o); |
104 | Q_UNUSED(_t) |
105 | void *_v = _a[0]; |
106 | switch (_id) { |
107 | case 0: _t->setEmptyLabel(*reinterpret_cast< QString*>(_v)); break; |
108 | case 1: _t->setCleanIcon(*reinterpret_cast< QIcon*>(_v)); break; |
109 | default: break; |
110 | } |
111 | } else if (_c == QMetaObject::ResetProperty) { |
112 | } else if (_c == QMetaObject::BindableProperty) { |
113 | } |
114 | #endif // QT_NO_PROPERTIES |
115 | } |
116 | |
117 | const QMetaObject QUndoView::staticMetaObject = { { |
118 | QMetaObject::SuperData::link<QListView::staticMetaObject>(), |
119 | qt_meta_stringdata_QUndoView.offsetsAndSize, |
120 | qt_meta_data_QUndoView, |
121 | qt_static_metacall, |
122 | nullptr, |
123 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QUndoView_t |
124 | , QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QIcon, std::true_type> |
125 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QUndoStack *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QUndoGroup *, std::false_type> |
126 | |
127 | |
128 | >, |
129 | nullptr |
130 | } }; |
131 | |
132 | |
133 | const QMetaObject *QUndoView::metaObject() const |
134 | { |
135 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
136 | } |
137 | |
138 | void *QUndoView::qt_metacast(const char *_clname) |
139 | { |
140 | if (!_clname) return nullptr; |
141 | if (!strcmp(_clname, qt_meta_stringdata_QUndoView.stringdata0)) |
142 | return static_cast<void*>(this); |
143 | return QListView::qt_metacast(_clname); |
144 | } |
145 | |
146 | int QUndoView::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
147 | { |
148 | _id = QListView::qt_metacall(_c, _id, _a); |
149 | if (_id < 0) |
150 | return _id; |
151 | if (_c == QMetaObject::InvokeMetaMethod) { |
152 | if (_id < 2) |
153 | qt_static_metacall(this, _c, _id, _a); |
154 | _id -= 2; |
155 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
156 | if (_id < 2) |
157 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
158 | _id -= 2; |
159 | } |
160 | #ifndef QT_NO_PROPERTIES |
161 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
162 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
163 | || _c == QMetaObject::RegisterPropertyMetaType) { |
164 | qt_static_metacall(this, _c, _id, _a); |
165 | _id -= 2; |
166 | } |
167 | #endif // QT_NO_PROPERTIES |
168 | return _id; |
169 | } |
170 | QT_WARNING_POP |
171 | QT_END_MOC_NAMESPACE |
172 | |