1/****************************************************************************
2** Meta object code from reading C++ file 'diagramscene.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 "diagramscene.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'diagramscene.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_DiagramScene_t {
25 const uint offsetsAndSize[34];
26 char stringdata0[198];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_DiagramScene_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_DiagramScene_t qt_meta_stringdata_DiagramScene = {
31 {
32QT_MOC_LITERAL(0, 12), // "DiagramScene"
33QT_MOC_LITERAL(13, 12), // "itemInserted"
34QT_MOC_LITERAL(26, 0), // ""
35QT_MOC_LITERAL(27, 12), // "DiagramItem*"
36QT_MOC_LITERAL(40, 4), // "item"
37QT_MOC_LITERAL(45, 12), // "textInserted"
38QT_MOC_LITERAL(58, 18), // "QGraphicsTextItem*"
39QT_MOC_LITERAL(77, 12), // "itemSelected"
40QT_MOC_LITERAL(90, 14), // "QGraphicsItem*"
41QT_MOC_LITERAL(105, 7), // "setMode"
42QT_MOC_LITERAL(113, 4), // "Mode"
43QT_MOC_LITERAL(118, 4), // "mode"
44QT_MOC_LITERAL(123, 11), // "setItemType"
45QT_MOC_LITERAL(135, 24), // "DiagramItem::DiagramType"
46QT_MOC_LITERAL(160, 4), // "type"
47QT_MOC_LITERAL(165, 15), // "editorLostFocus"
48QT_MOC_LITERAL(181, 16) // "DiagramTextItem*"
49
50 },
51 "DiagramScene\0itemInserted\0\0DiagramItem*\0"
52 "item\0textInserted\0QGraphicsTextItem*\0"
53 "itemSelected\0QGraphicsItem*\0setMode\0"
54 "Mode\0mode\0setItemType\0DiagramItem::DiagramType\0"
55 "type\0editorLostFocus\0DiagramTextItem*"
56};
57#undef QT_MOC_LITERAL
58
59static const uint qt_meta_data_DiagramScene[] = {
60
61 // content:
62 9, // revision
63 0, // classname
64 0, 0, // classinfo
65 6, 14, // methods
66 0, 0, // properties
67 0, 0, // enums/sets
68 0, 0, // constructors
69 0, // flags
70 3, // signalCount
71
72 // signals: name, argc, parameters, tag, flags, initial metatype offsets
73 1, 1, 50, 2, 0x06, 0 /* Public */,
74 5, 1, 53, 2, 0x06, 2 /* Public */,
75 7, 1, 56, 2, 0x06, 4 /* Public */,
76
77 // slots: name, argc, parameters, tag, flags, initial metatype offsets
78 9, 1, 59, 2, 0x0a, 6 /* Public */,
79 12, 1, 62, 2, 0x0a, 8 /* Public */,
80 15, 1, 65, 2, 0x0a, 10 /* Public */,
81
82 // signals: parameters
83 QMetaType::Void, 0x80000000 | 3, 4,
84 QMetaType::Void, 0x80000000 | 6, 4,
85 QMetaType::Void, 0x80000000 | 8, 4,
86
87 // slots: parameters
88 QMetaType::Void, 0x80000000 | 10, 11,
89 QMetaType::Void, 0x80000000 | 13, 14,
90 QMetaType::Void, 0x80000000 | 16, 4,
91
92 0 // eod
93};
94
95void DiagramScene::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
96{
97 if (_c == QMetaObject::InvokeMetaMethod) {
98 Q_ASSERT(staticMetaObject.cast(_o));
99 auto *_t = static_cast<DiagramScene *>(_o);
100 Q_UNUSED(_t)
101 switch (_id) {
102 case 0: _t->itemInserted((*reinterpret_cast< DiagramItem*(*)>(_a[1]))); break;
103 case 1: _t->textInserted((*reinterpret_cast< QGraphicsTextItem*(*)>(_a[1]))); break;
104 case 2: _t->itemSelected((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break;
105 case 3: _t->setMode((*reinterpret_cast< Mode(*)>(_a[1]))); break;
106 case 4: _t->setItemType((*reinterpret_cast< DiagramItem::DiagramType(*)>(_a[1]))); break;
107 case 5: _t->editorLostFocus((*reinterpret_cast< DiagramTextItem*(*)>(_a[1]))); break;
108 default: ;
109 }
110 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
111 switch (_id) {
112 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
113 case 1:
114 switch (*reinterpret_cast<int*>(_a[1])) {
115 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
116 case 0:
117 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QGraphicsTextItem* >(); break;
118 }
119 break;
120 case 2:
121 switch (*reinterpret_cast<int*>(_a[1])) {
122 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
123 case 0:
124 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QGraphicsItem* >(); break;
125 }
126 break;
127 case 5:
128 switch (*reinterpret_cast<int*>(_a[1])) {
129 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
130 case 0:
131 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< DiagramTextItem* >(); break;
132 }
133 break;
134 }
135 } else if (_c == QMetaObject::IndexOfMethod) {
136 int *result = reinterpret_cast<int *>(_a[0]);
137 {
138 using _t = void (DiagramScene::*)(DiagramItem * );
139 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DiagramScene::itemInserted)) {
140 *result = 0;
141 return;
142 }
143 }
144 {
145 using _t = void (DiagramScene::*)(QGraphicsTextItem * );
146 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DiagramScene::textInserted)) {
147 *result = 1;
148 return;
149 }
150 }
151 {
152 using _t = void (DiagramScene::*)(QGraphicsItem * );
153 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DiagramScene::itemSelected)) {
154 *result = 2;
155 return;
156 }
157 }
158 }
159}
160
161const QMetaObject DiagramScene::staticMetaObject = { {
162 QMetaObject::SuperData::link<QGraphicsScene::staticMetaObject>(),
163 qt_meta_stringdata_DiagramScene.offsetsAndSize,
164 qt_meta_data_DiagramScene,
165 qt_static_metacall,
166 nullptr,
167qt_incomplete_metaTypeArray<qt_meta_stringdata_DiagramScene_t
168, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<DiagramItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QGraphicsTextItem *, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QGraphicsItem *, std::false_type>
169, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Mode, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<DiagramItem::DiagramType, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<DiagramTextItem *, std::false_type>
170
171
172>,
173 nullptr
174} };
175
176
177const QMetaObject *DiagramScene::metaObject() const
178{
179 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
180}
181
182void *DiagramScene::qt_metacast(const char *_clname)
183{
184 if (!_clname) return nullptr;
185 if (!strcmp(_clname, qt_meta_stringdata_DiagramScene.stringdata0))
186 return static_cast<void*>(this);
187 return QGraphicsScene::qt_metacast(_clname);
188}
189
190int DiagramScene::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
191{
192 _id = QGraphicsScene::qt_metacall(_c, _id, _a);
193 if (_id < 0)
194 return _id;
195 if (_c == QMetaObject::InvokeMetaMethod) {
196 if (_id < 6)
197 qt_static_metacall(this, _c, _id, _a);
198 _id -= 6;
199 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
200 if (_id < 6)
201 qt_static_metacall(this, _c, _id, _a);
202 _id -= 6;
203 }
204 return _id;
205}
206
207// SIGNAL 0
208void DiagramScene::itemInserted(DiagramItem * _t1)
209{
210 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
211 QMetaObject::activate(this, &staticMetaObject, 0, _a);
212}
213
214// SIGNAL 1
215void DiagramScene::textInserted(QGraphicsTextItem * _t1)
216{
217 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
218 QMetaObject::activate(this, &staticMetaObject, 1, _a);
219}
220
221// SIGNAL 2
222void DiagramScene::itemSelected(QGraphicsItem * _t1)
223{
224 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
225 QMetaObject::activate(this, &staticMetaObject, 2, _a);
226}
227QT_WARNING_POP
228QT_END_MOC_NAMESPACE
229